[CentOS] About NAT MAQUERADE

Alain Spineux aspineux at gmail.com
Tue Feb 12 13:23:42 UTC 2008


On Feb 12, 2008 2:15 PM, Roilan Cardoso Sánchez <neptuno_000 at yahoo.es> wrote:
>
> Hello everybody, í'm want to create a maquerade for my lan in the firewall
> server I know i can use:
> iptables -t nat -A POSTROUTING -o external-interface -j  MASQUERADE

just add --source option ( or --destination you didn't specified !) to
the line above.

man iptables will help you

Regards.

PS: To make MASQUERADE works you need to allow forwarding between interface!

>
>
>
> but I want to use this nat only for some IPs
>
> How can i restrict the nat maswuerade for an IP or Ip range?
>
>
>
>
>
> regards Roilan
>
>
>
>  ________________________________
>
> ¿Con Mascota por primera vez? - Sé un mejor Amigo
> Entra en Yahoo! Respuestas.
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>



-- 
Alain Spineux
aspineux gmail com
May the sources be with you



More information about the CentOS mailing list