Re: Two IP add

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

 



On Thu, 2003-06-05 at 11:56, Paulo Andre wrote:
> I would like to do the following:
> 
> Stop MASQUESRADING to two servers say. 10.10.10.5 and 10.10.10.8, how would i 
> do this with a rule.
> 
> iptables -t nat -A POSTROUTING -s x.x.x.x -d ! 'servers ip' -j MASQUERADE 
> now how would i put in two ip address's ?
> 
how about using 3 rules?
iptables -t nat -A POSTROUTING -d server1.ip.address -j return
iptables -t nat -A POSTROUTING -d server2.ip.address -j return
iptables -t nat -A POSTROUTING -s x.x.x.x -j MASQUERADE

Ray

-- 
--
Raymond Leach <raymondl@xxxxxxxxxxxxxxxxxxxxxx>
Network Support Specialist
http://www.knowledgefactory.co.za
"lynx -source http://www.rchq.co.za/raymondl.asc | gpg --import"
Key fingerprint = 7209 A695 9EE0 E971 A9AD  00EE 8757 EE47 F06F FB28
--

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux