code check

This commit is contained in:
Bob Lantz
2017-03-14 15:43:41 -07:00
parent a77ddba607
commit 359b1feb5a
+2 -1
View File
@@ -108,7 +108,8 @@ class NAT( Node ):
self.cmd( 'iptables -A FORWARD',
'-o', self.localIntf, '-d', self.subnet, '-j ACCEPT' )
self.cmd( 'iptables -t nat -A POSTROUTING',
'-s', self.subnet, "'!'", '-d', self.subnet, '-j MASQUERADE' )
'-s', self.subnet, "'!'", '-d', self.subnet,
'-j MASQUERADE' )
# Instruct the kernel to perform forwarding
self.cmd( 'sysctl net.ipv4.ip_forward=1' )