a vpn ip. If called from --up/--down in openvpn, (we have multiple args) $1 is the
tun_dev, and action is from $script_type.
a vpn ip. If called from --up/--down in openvpn, (we have multiple args) $1 is the
tun_dev, and action is from $script_type.
iptcommon="OUTPUT -m tcp -p tcp -m multiport --ports $port -j MARK --set-mark"
iptmod iptables -t mangle $iptables_op $iptcommon 0x1
iptmod iptables -t mangle $iptables_op $iptcommon 0x0 -d 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
iptcommon="OUTPUT -m tcp -p tcp -m multiport --ports $port -j MARK --set-mark"
iptmod iptables -t mangle $iptables_op $iptcommon 0x1
iptmod iptables -t mangle $iptables_op $iptcommon 0x0 -d 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16