[CentOS] How can i share my WAN ip to my LAN?

John R Pierce pierce at hogranch.com
Tue Jan 22 08:42:02 UTC 2008


Tolun ARDAHANLI wrote:
> Hi everybody...
>
> How can I share my WAN ip to my LAN? How can I do that I really dont 
> know...:( I am using linux long time ago but this kind I would like to 
> do newly...
>
> Can anybody help me about IP sharing in Centos?

its known as "IP Masquerade" in Linux, and its controlled primarily with 
iptables(8)

you should read up on iptables and firewall rules to understand how it 
all works

the ip masquerade HOWTO lives here 
http://tldp.org/HOWTO/html_single/IP-Masquerade-HOWTO/

master source of documetation of all this is here -> 
http://www.netfilter.org/documentation/





More information about the CentOS mailing list