4 # =========== tunnel interface handling ====================================
7 - ifconfig "$TUNDEV" inet "$INTERNAL_IP4_ADDRESS" $ifconfig_syntax_ptp "$INTERNAL_IP4_ADDRESS" netmask 255.255.255.255 mtu 1412 up
8 + ifconfig "$TUNDEV" "$INTERNAL_IP4_ADDRESS" $ifconfig_syntax_ptp "$INTERNAL_IP4_ADDRESS" netmask 255.255.255.255 mtu 1412 up
11 destroy_tun_device() {
17 + iptables -A forwarding_rule -o $TUNDEV -j ACCEPT
18 + iptables -A forwarding_rule -i $TUNDEV -j ACCEPT
19 + iptables -t nat -A postrouting_rule -o $TUNDEV -j MASQUERADE
23 + iptables -t nat -D postrouting_rule -o $TUNDEV -j MASQUERADE
24 + iptables -D forwarding_rule -i $TUNDEV -j ACCEPT
25 + iptables -D forwarding_rule -o $TUNDEV -j ACCEPT
30 if [ -z "$reason" ]; then