Linux

From AAP Foundation

Jump to: navigation, search

1. Start by configuring the network card that will be accessed by the AAP.

  1. ifconfig ethX 192.168.1.100

where ethX is the network card.

2. Then configure the NAT as follows:

  1. iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE

where ethX is the network card that the Internet is coming from

  1. echo 1 > /proc/sys/net/ipv4/ip_forward

3. Install dnsmasq and ipmasq using apt-get:

  1. apt-get install dnsmasq ipmasq

4. Restart dnsmasq:

  1. /etc/init.d/dnsmasq restart

5. Reconfigure ipmasq to start after networking has been started:

  1. dpkg-reconfigure ipmasq

6. Repeat steps 1 and 2.

7. Add the line "net.ipv4.ip_forward = 1" to /etc/sysctl.conf

  1. gedit /etc/sysctl.conf

8. Reboot. (Optional)