View previous topic :: View next topic |
Author |
Message |
Crimson Rider Guru
Joined: 23 Jun 2003 Posts: 462 Location: Delft, the Netherlands
|
Posted: Thu Jan 18, 2007 2:06 pm Post subject: Simple forwarding problem |
|
|
Hi, I've got a simple forwarding problem, but I can't get it to work.
I've got 1 server host, with to NICs
eth0 192.168.40.10
eth1 192.168.20.100
This host can ping everything on 192.168.20.0/24 and on 192.168.40.0/24
Now I want to make it so that a client, let's say 192.168.40.12 can ping all on 192.168.20.0/24 as well, but so far, the 192.168.40.12/24 client can only ping 192.168.20.100
Now, how do I get my host to forward all traffice that arrives on 192.168.40.10 that has a destination of 192.168.20.0/24?
I am using iptables but
Code: | iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT |
Does not work _________________ Code, justify, code - Pitr Dubovich |
|
Back to top |
|
|
nielchiano Veteran
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Thu Jan 18, 2007 5:54 pm Post subject: Re: Simple forwarding problem |
|
|
Crimson Rider wrote: | I am using iptables but
Code: | iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT |
Does not work |
or maybe it does, but you forgot to allow the answers to come back? |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Thu Jan 18, 2007 6:50 pm Post subject: |
|
|
Also, is forwarding enabled for the kernel? _________________ Thomas S. Howard |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|