/[sysadmin-cookbook]/recepies/pxe/nat-192.168.2.0-wlan0.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /recepies/pxe/nat-192.168.2.0-wlan0.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 116 - (show annotations)
Sun Jun 21 18:34:00 2009 UTC (14 years, 10 months ago) by dpavlin
File MIME type: application/x-sh
File size: 153 byte(s)
iptables nat from 192.168.2.0/24 to wlan0 with masquarade

1 sudo iptables -t nat -F
2 sudo iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o wlan0 -j MASQUERADE
3 sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26