Home | History | Annotate | Download | only in examples

Lines Matching refs:UPLINK

52     UPLINK=$4
53 # enable NAT/masquarade $GIFNAME -> $UPLINK
55 iptables -t nat -A POSTROUTING -o $UPLINK -j MASQUERADE
56 iptables -A FORWARD -i $UPLINK -o $GIFNAME -m state --state RELATED,ESTABLISHED -j ACCEPT
57 iptables -A FORWARD -i $GIFNAME -o $UPLINK -j ACCEPT
63 UPLINK=$4
64 # disable NAT/masquarade $GIFNAME -> $UPLINK
66 iptables -t nat -D POSTROUTING -o $UPLINK -j MASQUERADE
67 iptables -D FORWARD -i $UPLINK -o $GIFNAME -m state --state RELATED,ESTABLISHED -j ACCEPT
68 iptables -D FORWARD -i $GIFNAME -o $UPLINK -j ACCEPT