blob: 2ca0842b500fe38cf5b53bc19f6b1c81bfd44c54 (
plain)
1
2
3
4
5
6
7
8
9
|
post_install(){
echo "Assuming eth0 is external 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
}
|