/[pxelator]/lib/PXElator/network.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/network.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 143 by dpavlin, Tue Aug 4 17:16:11 2009 UTC revision 144 by dpavlin, Tue Aug 4 18:27:21 2009 UTC
# Line 27  iface tap0 inet static Line 27  iface tap0 inet static
27          address $server::ip          address $server::ip
28          netmask $server::netmask          netmask $server::netmask
29          vde2-switch -          vde2-switch -
30            # setup NAT for vde network
31            post-up sysctl -w net.ipv4.ip_forward=1
32            post-up iptables -t nat -A POSTROUTING -s $server::ip/$server::netmask -o wlan0 -j MASQUERADE
33    
34                  };                  };
35    

Legend:
Removed from v.143  
changed lines
  Added in v.144

  ViewVC Help
Powered by ViewVC 1.1.26