How to create a basic firewall/nat router with arlinux 2.x (2.6 kernel)
Create arlinux-firewall floopys disk or usb method
and Boot the router with arlinux (they need two network cards)
Example of basic network:
internet-------eth0-router-eth1--------LAN
First setup internet interface(eth0) depends on your isp.
# dhcpcd eth0 (for most cablemodems)
# pppoe-setup (for most adsl)
or ifconfig
Check if you have internet
ping google.com
Setup your local network interface(eth1)
# ifconfig eth1 192.168.1.1
or wahtever ip of your network
start iptables firewall and nating in the router:
# sh /root/basic-scripts/firewall-nat-basic-script.sh
Now configure your workstation in the lan and test internet:
change or add a default gateway with the ip of the router
and configure your dns servers
In linux:
# route add default gw 192.168.1.1
# vi /etc/resolv.conf
nameserver 192.168.1.2
In windows check your lan properties for the default gateway
and dns servers.
Now try internet
ping google.com
firefox google.com
If you dont have internet ping first your gateway from workstation
if respons ok the problem sure its in the firewall/iptables rules
and if you have internet on eth1 and lan on eth0 modify the firewall script
and swap this variables:
INTERNET=eth0
INTRANET=eth1
and run the script again for aply the new rules.
Thats all.
Contact and bugs to:
arlinux.distro@gmail.com