RE: IP Forwarding/Masquerade

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

 



To made Maswuerade (NAT) Use:
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to ip_to_NAT

To made forward use:
iptables -t nat -A PREROUTING -p tcp -d ip_to_redirect --dport
port_to_redirect -j DNAT --to ip_redirected:port_redirected

The port redirection is optional.

For more information check:
http://www.netfilter.org/documentation/HOWTO//NAT-HOWTO.html

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx]On Behalf Of Mollatt Ntini
Sent: Thursday, 23 December, 2004 12:54 AM
To: 'General Red Hat Linux discussion list'
Subject: IP Forwarding/Masquerade


Hello everyone

I have googled and googled, but I believe it's the correct search keyword
that I am missing.
What I am about to ask has been discussed on this list, but I just don't
seem to be able to track it down - in the archives, FAQ, sample configs!

I have one of those *stupid* requests again: I need to put an IP Forwarding
or IP Masquerade on a REDHAT 9,
basically what I need is to have my LAN to access any outside network,
whether ping, trace etc, and just leave my WAN network in its current state.
How do I do this.

Please help!


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

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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux