Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple forwarding problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Crimson Rider
Guru
Guru


Joined: 23 Jun 2003
Posts: 462
Location: Delft, the Netherlands

PostPosted: Thu Jan 18, 2007 2:06 pm    Post subject: Simple forwarding problem Reply with quote

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
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Thu Jan 18, 2007 5:54 pm    Post subject: Re: Simple forwarding problem Reply with quote

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
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu Jan 18, 2007 6:50 pm    Post subject: Reply with quote

Also, is forwarding enabled for the kernel?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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