summarylogtreecommitdiffstats
path: root/iptables-fullconenat.install
blob: 59754dc39862a13149884e972a7ef959da367246 (plain)
1
2
3
4
5
6
7
8
9
post_install(){
    echo "Assuming eth0 is WAN interface:"
    echo -e "\tiptables -t nat -A POSTROUTING -o eth0 -j FULLCONENAT #same as MASQUERADE"
    echo -e "\tiptables -t nat -A PREROUTING -i eth0 -j FULLCONENAT  #automatically restore NAT for inbound packets"
}

post_upgrade() {
    post_install
}