Skip to contentSkip to conversation

Can iptables NAT do this?

DISCUSSION Danny Ma 1 participant 1 message Jul 31, 2003

lore
Share & tools
lore

Danny Ma

author
#0 lore raw

Hi,
Here is my network layout:

Internal o-------------------------o
Network eth0 | Firewall/Gateway | eth1
===========>| Linux 2.4.18 |====>ROUTER==> INTERNET

                        o-------------------------o

I'm able to see all the packets from my internal LAN regardless of what their IP configuration is (DHCP, Static ip, etc) on the eth0 PREROUTING table on the Linux Gateway and am trying to figure out what I need to do to the packets so that they will go thru my Linux firewall/Gateway to the internet. I've successfully been able to proxy ARP (spoof) so that all internal machines think that the Linux server is the gateway and they all send their packets to the Linux server but now I need to know what routing changes I need to make on the Linux server so that it can route via NAT all the packets to the internet.

Any help is greatly appreciated.

Danny

Signature · 6 lines
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers