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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080212/67dede07/attachment.html>
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 MASQUERADEjust 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
http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO-5.html 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 > > > > 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.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=XXXXXXXX> > . > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080212/07fc5100/attachment.html>