Page 1 of 1

Can't get NAT to work

Posted: 2012/01/17 21:32:33
by KenHorse
Using CentOS 4.8 because I'm using an older EPIA board.

Anyway, 2 NICS, with eth0 running PPPoE with a DSL modem and eth1 running a static IP. I have 'net access from the CentOS machine no problem but cannot get IP Masquerading/NAT to work. I do run dhcpd on this machine as well and that does work fine with several Windows machines on the LAN.

I have gone over things with a fine tooth comb, tried all the various articles (seemingly everywhere) in setting up a basic iptables configuration

route -n shows
[code]
[root@localhost etc]# route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
[/code][Moderator edit: Added [i]code[/i] tags to preserve formatting.]

Help

Can't get NAT to work

Posted: 2012/01/17 21:40:05
by gerald_clark
You have no gateway defined ( no default route ).

Re: Can't get NAT to work

Posted: 2012/01/18 12:24:42
by pschaff
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

[quote]
KenHorse wrote:
Using CentOS 4.8 because I'm using an older EPIA board.[/quote]

You should at least "yum update" to 4.9 + subsequent errata before [url=http://lists.centos.org/pipermail/centos-announce/2011-December/018285.html]CentOS-4 EOL[/url] and come up with a plan for the after-life.