Change quoting for '!'

This commit is contained in:
Bob Lantz
2015-06-25 15:38:50 -07:00
parent 65a0e5f3b6
commit f7601da006
+1 -1
View File
@@ -110,7 +110,7 @@ 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' )