LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't get Debian routing working! (https://www.linuxquestions.org/questions/linux-networking-3/cant-get-debian-routing-working-141557/)

retiqlum 02-02-2004 06:16 PM

Can't get Debian routing working!
 
I am having a lot of trouble getting routing working on my Debian box.

x86 architecture
no X windows
2 ethernet cards. (both working under linux)
eth0 -> internet
eth1 -> dhcpd (working) for local network.
2.2 kernel

when I try to get ipchains up and running, I get the following message:

'ipchains: Protocol not available'

everything I've read has said to make sure that ipchains is compiled into the kernel. I do not know how to do this, although by default it should be on.

Once this is fixed, the box is completed. Any help would be appreciated.

Thanks,

Retiqlum

nielchiano 02-03-2004 05:48 AM

you don't need ipchains (or the newer/better iptables) in your kernel or modules to do routing.

However, as soon as you want to do more than pure routing (select WHAT to route, i.e. firewalling) you need either iptables or ipchains.
Since you still have an old 2.2 kernel you'll have to go with ipchains.

first make sure that your box is in effect routing the trafic, and not just listening on both eths.
Code:

cat /proc/sys/net/ipv4/ip_forward
if it sais 0, you're not forwarding (routing). to correct this, do
Code:

echo 1 > /proc/sys/net/ipv4/ip_forward
And probably add this to your start-up scripts.

I can't help you with the ipchains setup (since I only know iptables)


All times are GMT -5. The time now is 06:37 PM.