View Single Post

  #2 (permalink)  
Old 11-03-2004
Tauno Voipio
 
Posts: n/a
Default Re: Newbie NAT question

Fernando Vaz wrote:
> Hello folks,
>
> I'm trying to set up a home network, using an older PC as a
> gateway/apache server. The connection between both boxes works fine,
> and the gateway connects to the internet fine (ADSL ppp0 connection, it
> pings out of my net ok). All the NAT modules are loaded, I have cleared
> all firewall rules, but still the machine behind the gateway can't ping
> anywhere past the gateway. ipv4_forward is set to 1. I'll try to draw a
> diagram:
>
>
> | |
> | internet |
> |_____________|
> |
> |
> \/
> -------------------
> |ppp0(valid ip) |
> | /\ |
> | | |
> | \/ |
> |eth0 (ip 0.0.0.0)|
> | /\ |
> | | |
> | \/ |
> |eth1(192.168.0.2)|
> |_________________|
> /\
> |
> \/
> -------------------
> |eth0(192.168.0.5)|
> |gw 192.168.0.2) |
> |_________________|
>
> Is it something to do with my routes? Please help, I've been struggling
> over this for quite a few days, and I'm pretty sure "im missing out on
> something really dumb...


Please post:

- the kernel version (uname -a)

- the output of
ifconfig -a

- the output of
route -n

- the output of
iptables -nvL
or
ipchains -nvL

of the gateway host, so we do not need to guess so much.

Tauno Voipio
tauno voipio (at) iki fi

Reply With Quote