req: ipchains help

cbis

Junior Member
Aug 9, 2001
13
0
0

I have 2 ethernet cards in a linux box and want to set it up as a router. I know how to filter incoming and/or outgoing packets, but how do I get the incoming packets to go out the outgoing interface?

Thanks for any help
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
ip forwarding + masq. Look at linuxdoc.org and linuxnewbie.org for how-to's. Plus try and upgrade to 2.4.x kernel and iptables. Much better :)
 

gaidin123

Senior member
May 5, 2000
962
1
0
Agreed. Upgrade to the 2.4.x (2.4.10 as of today) series of kernels and get yourself the newest version of iptables. It replaced ipchains with the 2.4.x series of kernels.

Check out http://ipmasq.cjb.net for the official IP Masquerading HOWTO. Download it onto one of your machines (they have it in a ton of formats) so that you can refer back to it while offline/configuring. They provide a few examples on rulesets (both ipchains and iptables) too.

Gaidin