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
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 http://es.answers.yahoo.com/info/welcome
On Feb 12, 2008 2:15 PM, Roilan Cardoso Sánchez neptuno_000@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@centos.org http://lists.centos.org/mailman/listinfo/centos
On Feb 12, 2008 2:23 PM, Alain Spineux aspineux@gmail.com wrote:
On Feb 12, 2008 2:15 PM, Roilan Cardoso Sánchez neptuno_000@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!
ops
echo "1" > /proc/sys/net/ipv4/ip_forward
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@centos.org http://lists.centos.org/mailman/listinfo/centos
-- Alain Spineux aspineux gmail com May the sources be with you
http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO-5.html
On Feb 12, 2008 2:15 PM, Roilan Cardoso Sánchez neptuno_000@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
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! Respuestashttp://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=XXXXXXXX .
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos