- /sbin/iptables -N CUSTOMINPUT
- /sbin/iptables -A INPUT -j CUSTOMINPUT
- /sbin/iptables -N GUARDIAN
- /sbin/iptables -A INPUT -j GUARDIAN
- /sbin/iptables -N OVPNBLOCK
- /sbin/iptables -A FORWARD -j OVPNBLOCK
- /sbin/iptables -A FORWARD -j GUARDIAN
- /sbin/iptables -N CUSTOMFORWARD
- /sbin/iptables -A FORWARD -j CUSTOMFORWARD
- /sbin/iptables -N CUSTOMOUTPUT
- /sbin/iptables -A OUTPUT -j OVPNBLOCK
- /sbin/iptables -A OUTPUT -j CUSTOMOUTPUT
- /sbin/iptables -N OUTGOINGFW
- /sbin/iptables -A OUTPUT -j OUTGOINGFW
- /sbin/iptables -t nat -N CUSTOMPREROUTING
- /sbin/iptables -t nat -N OVPNNAT
- /sbin/iptables -t nat -A PREROUTING -j CUSTOMPREROUTING
- /sbin/iptables -t nat -N CUSTOMPOSTROUTING
- /sbin/iptables -t nat -A POSTROUTING -j CUSTOMPOSTROUTING
- /sbin/iptables -t nat -A POSTROUTING -j OVPNNAT
+ iptables -N CUSTOMINPUT
+ iptables -A INPUT -j CUSTOMINPUT
+ iptables -N CUSTOMFORWARD
+ iptables -A FORWARD -j CUSTOMFORWARD
+ iptables -N CUSTOMOUTPUT
+ iptables -A OUTPUT -j CUSTOMOUTPUT
+ iptables -t nat -N CUSTOMPREROUTING
+ iptables -t nat -A PREROUTING -j CUSTOMPREROUTING
+ iptables -t nat -N CUSTOMPOSTROUTING
+ iptables -t nat -A POSTROUTING -j CUSTOMPOSTROUTING
+
+ # Guardian (IPS) chains
+ iptables -N GUARDIAN
+ iptables -A INPUT -j GUARDIAN
+ iptables -A FORWARD -j GUARDIAN
+
+ # Block OpenVPN transfer networks
+ iptables -N OVPNBLOCK
+ iptables -A INPUT -i tun+ -j OVPNBLOCK
+ iptables -A FORWARD -i tun+ -j OVPNBLOCK
+ iptables -A FORWARD -o tun+ -j OVPNBLOCK
+
+ # OpenVPN transfer network translation
+ iptables -t nat -N OVPNNAT
+ iptables -t nat -A POSTROUTING -j OVPNNAT