[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: IP Forwarding with IP tables



You need to add SNAT rules:

/sbin/iptables -t at -A POSTROUTING -o eth1 -s 10.1.1.141 -j SNAT --to x.y.z.141

should do what you want.

On Thu, 13 Oct 2005, Gary Stainburn wrote:

Hi folks.

probably a FAQ but I'm struggling.
I have an internet connection linked to eth1 and a LAN connected to eth0

I want to set up simple 1-to-1 NATing thus:

x.y.z.141   == 10.1.1.141
x.y.z.142   == 10.1.1.142
x.y.z.143   == 10.1.1.143

so that incoming traffic to .141 goes to the right place.  This bit I've
sorted. but the problem I've got is how do I get the outgoing to appear
to come from the correct IP address and not the normal IP addres of
eth1
--
Gary Stainburn

This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request redhat com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


--
Mike Burger
http://www.bubbanfriends.org

Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org

To be notified of updates to the web site, visit http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a message to:

site-update-request bubbanfriends org

with a message of:

subscribe



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]