Linux
From AAP Foundation
1. Start by configuring the network card that will be accessed by the AAP.
- ifconfig ethX 192.168.1.100
where ethX is the network card.
2. Then configure the NAT as follows:
- iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE
where ethX is the network card that the Internet is coming from
- echo 1 > /proc/sys/net/ipv4/ip_forward
3. Install dnsmasq and ipmasq using apt-get:
- apt-get install dnsmasq ipmasq
4. Restart dnsmasq:
- /etc/init.d/dnsmasq restart
5. Reconfigure ipmasq to start after networking has been started:
- dpkg-reconfigure ipmasq
6. Repeat steps 1 and 2.
7. Add the line "net.ipv4.ip_forward = 1" to /etc/sysctl.conf
- gedit /etc/sysctl.conf
8. Reboot. (Optional)
