Can't get NAT to work

Issues related to configuring your network
Posts: 8
Joined: 2012/01/17 21:25:28

Can't get NAT to work

Postby KenHorse » 2012/01/17 21:32:33

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: Select all

[root@localhost etc]# route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 eth1     U     0      0        0 eth1
[Moderator edit: Added code tags to preserve formatting.]


Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Can't get NAT to work

Postby gerald_clark » 2012/01/17 21:40:05

You have no gateway defined ( no default route ).

Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Can't get NAT to work

Postby pschaff » 2012/01/18 12:24:42

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

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

You should at least "yum update" to 4.9 + subsequent errata before CentOS-4 EOL and come up with a plan for the after-life.