PDA

View Full Version : Need help: Iptables on 2 NC on Fedora Core 1


phyzzyx
2004-07-08, 03:42 PM CDT
Please help me
I have two network card.
Fedora Box:
eth0 = 192.168.1.10
eth1 = 172.16.10.10
Gateway = 192.168.1.1

fedora box connected to internet and my problem is, I want to do masquerade so my Win98 (172.16.10.20) box can get connected to internet. Ive done this before with slackware 4 but failed to do on fedora. Im quite outdated. Please help me with this matter. :confused:

Cr0n_J0b
2004-07-09, 02:42 PM CDT
Option 1) Read up on IPtables and implement your own script...

http://iptables-tutorial.frozentux.net/iptables-tutorial.html
http://www.linuxguruz.com/iptables/howto/

Option 2) Go out and look for some scripts that are already made and tweak them to your liking.

Option 3) Get a GUI like Firestarter to do the configuration for you...including NAT(ipmasquerading)...and tweak the created script s you like

http://firestarter.sourceforge.net/

Option 4) get a router $29 to do the NAT for you.

Option 5) use the firewall built in FC2...listed under security in GUI menus...and add the NAT lines to the script it creates..

I chose to use Firestarter, cause I'm not very smart or patient...I read the HowTo's so I could add additional tweaks later...that's it.

My call would be Option 3, then option 1 when you have time. It should take about 5 minutes to setup initially and get NAT working right...assuming no other network issues.
http://firestarter.sourceforge.net/