Revision f7601da0 mininet/nodelib.py

View differences:

mininet/nodelib.py
110 110
        self.cmd( 'iptables -A FORWARD',
111 111
                  '-o', self.localIntf, '-d', self.subnet,'-j ACCEPT' )
112 112
        self.cmd( 'iptables -t nat -A POSTROUTING',
113
                  '-s', self.subnet, '\'!\'', '-d', self.subnet, '-j MASQUERADE' )
113
                  '-s', self.subnet, "'!'", '-d', self.subnet, '-j MASQUERADE' )
114 114

  
115 115
        # Instruct the kernel to perform forwarding
116 116
        self.cmd( 'sysctl net.ipv4.ip_forward=1' )

Also available in: Unified diff