Re: iptable for multiple ip address

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le jeu 12/09/2002 à 21:49, Jose Luis Domingo Lopez a écrit :
 
> iptables -t nat -A POSTROUTING --out-interface $WAN_IF \
>     --jump SNAT --to-source $START_PUB_IP-$END_PUB_IP
> 
> The only limitation I see with this approach is that IP addresses must
> be contiguous, but I think this is a typical scenario, because our ISP
> tend to give addresses in blocks :)

But you can put multiple --to-source so there's no limitation.

--
Eric Leblond
eric@regit.org

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux