PIROVANO



1 Alix Slackware
1.4 Internet-Sharing


chmod +x /etc/rc.d/rc.ip_forward
/etc/rc.d/rc.ip_forward

Note: With this (routing enabled), internal clients can communicate to each other through alix: wlan-clients to intenal ones wired to any eth-iface and wice versa. Yet not to the internet.

put into /etc/rc.d/rc.firewall
iptables -t nat -F
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE #You might replace ppp0 with the Interface wich has Internet-Connection.

/etc/rc.d/rc.firewall

Note: With -A POSTROUTING -o ppp0, everyone connected to your alix, on any correct configured interface eth0, eth1... ath0 having private-IP-Address-Range can connect to the internet.
Example Wlan-clients only are allowed having internet access:
-A POSTROUTING -s 192.168.10.0/24 -o ppp0 -j MASQUERADE.

OR

-A POSTROUTING -o ppp0 -j MASQUERADE
-A FORWARD -i ath0 -o ppp0 -j ACCEPT
-A FORWARD -o ppp0 -j DROP

IMPORTANT: If your internal clients are getting dhcp-ip-address from your alix and/or having alix as dns-server, you might want to do the following:
chmod +x /etc/rc.d/rc.dnsmasq
/etc/rc.d/rc.dnsmasq


Copyright 2009 pirovano.ch. Last modified 2009-08-01 1800 CEST.
E-Mail: pirovano(at)[this-very-domain]