Re: Routing pb on RH 9.0
From: Dave Griffiths (dave_at_daveg.co.uk.nospam)
Date: 10/30/03
- Next message: Vic: "Re: Mixed disk drive types problem"
- Previous message: Dave Griffiths: "Re: Linking files"
- In reply to: fafa: "Routing pb on RH 9.0"
- Next in thread: fafa: "Re: Routing pb on RH 9.0"
- Reply: fafa: "Re: Routing pb on RH 9.0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 15:08:48 +0100
On Thu, 30 Oct 2003 14:15:59 +0100, fafa wrote:
> Hi,
>
> I can't enable IP_FORWARD on a RH 9.0 2.4.20-20.9 #1 kernel. Firewalling
> is disabled, here is my /etc/sysconfig/network file :
>
> NETWORKING=yes
> HOSTNAME=demiurge
> GATEWAY="x.x.x.x"
> GATEWAYDEV="eth2"
> DOMAIN=yy.net
> FORWARD_IPV4="yes"
>
> in /etc/sysctl.conf
> > net.ipv4.ip_forward = 1
>
> /proc/sys/net/ipv4/ip_forward=1
>
> and my routing tables is correct, 2 ethernet interfaces, in can ping
> outside and inside from the LX Gw box. I can ping and access with ssh
> from any client on the LAN to the GW LX box.
>
> Is anybody have an idea ?
>
> Thks
> FAFA
Do you have a fully fledge domain or like most of us use a single public
address for the whole lan when we speak to the outside world, if the
latter is so then you will need to perform IP Masquerading or NATS
translation for the system to work correctly
the follwing is just two lines not three as shown.
iptables --table nat --append POSTROUTING --out-interface eth2 -j
MASQUERADE
iptables --append FORWARD --in-interface ethX -j ACCEPT
Where ethX is the card the lan is connected to. Hope this helps......
-- Have fun DaveG --- Remove the .nospam to email ---
- Next message: Vic: "Re: Mixed disk drive types problem"
- Previous message: Dave Griffiths: "Re: Linking files"
- In reply to: fafa: "Routing pb on RH 9.0"
- Next in thread: fafa: "Re: Routing pb on RH 9.0"
- Reply: fafa: "Re: Routing pb on RH 9.0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|