[CentOS] DHCPd Config

Peter Farrow peter at farrows.org
Tue Jul 5 21:33:25 UTC 2005


 From my firewall script in BASH lines like this is what you should be 
thinking of using:

iptables -t nat -A POSTROUTING --source $LAN_IP_RANGE --out-interface 
$EXT_IFACE -j SNAT --to-source $EXT_IP
 

Lee W wrote:

> Johnny Hughes wrote:
>
> <snip>
>
>> You need to do ip-masquerading to pass traffic thru a linux box as a
>> gateway.  That requires 2 NICs and an iptables script which does
>> masquerading
>>
>> I use this script to setup that kind of box:
>> http://ldp.hughesjr.com/HOWTO/IP-Masquerade-HOWTO/stronger-firewall-examples.html#RC.FIREWALL-2.4.X-STRONGER 
>>
>>  
>>
> Is it absolutely necessary to use IP-Masq / NAT in order to setup 
> Linux as a Router?
>
> I'm trying to setup a few Linux machines (Centos of course) as 
> convential routers as opposed to Gateways so that I can learn more 
> about routing between them on various Subnets.
> All the How-To's I've found talk about Masq, I would appreciate if 
> anyone can point me in the direction of a convential Linux router howto.
>
> Thanks in advance
>
> Regards
>
> Lee
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos





More information about the CentOS mailing list