Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linux as firewall server

Status
Not open for further replies.

jakhan

IS-IT--Management
Jul 22, 2000
75
dear folks

i would like to know basic steps in making linux as a firewall server, please mention how do i map ports to IP addresses. also tell how to implement NAT.

thanks

Jahangir
 
Hi

If u r configuring linux as a firewall then following are the commands considering as eth0 is your linux server's NIC for incoming while eth1 is outgoing

# iptables -t nat -F POSTROUTING
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# echo "0">/proc/sys/net/ipv4/ip_forward


santosh


 
Might I suggest
Its a super little firewall that is Linux based. I have installed mine on an old pc that I had lying around the house. I have it running on an old 486 (the minimal install is about 40mb hard drive 8mb ram or something similar).

I found that trying to impliment security on Linux is a very difficult task and one that can cause a multitude of problems.

Smoothwall is free, so the only cost is the box and 3 network cards. I have four machines hooked into my hub which points to my firewall. With the recent hit of viruses etc, I have as yet no impact (touch wood).

It has as much security that you will ever need and more importantly has very clear install/step by step based guides.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top