Can't get NAT to work

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

Can't get NAT to work

Post by 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
[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
[/code][Moderator edit: Added [i]code[/i] tags to preserve formatting.]


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

Can't get NAT to work

Post by 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

Post by 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.[/quote]

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

Post Reply

Return to “CentOS 4 - Networking Support”