Making a Linux box as Simple router and Firewall

 Scenario:1 One Linux Box as a firewall having 2 Lan cards or 1 lan card and one internet modem connection.2. eth0 –> Connected to Broadband. IP is 192.168.1.2  in case of dialup it can be “ppp0”3. eth1 –> Connected to Local LAN IP is 192.168.2.1Note: In case of broadband your default gateway should be IP…

Port forwarding in Linux with Iptables

I have one Linux Machine. It has 2 interfaces. eth0 will have Live IP and which will be accessible across the internet. eth1 will have internal IP and can only be connected across LAN.Here I want to forward all request which come to my internetIP should get forwarded to my internal web server. To do…