From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dharmendra.T" Subject: Re: Two IP add Date: 05 Jun 2003 17:08:33 +0530 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1054813152.1206.9.camel@india> References: <200306051156.45624.pandre@darkstar.nom.za> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-3igxPkK4+O2r5JMBd4lC" Return-path: In-Reply-To: <200306051156.45624.pandre@darkstar.nom.za> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: Paulo Andre Cc: netfilter --=-3igxPkK4+O2r5JMBd4lC Content-Type: text/plain Content-Transfer-Encoding: 7bit On Thu, 2003-06-05 at 15:26, 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 ? Hi iptables -t nat -A POSTROUTING -s 10.10.10.5 -d 'sever ip' -j DROP iptables -t nat -A POSTROUTING -s 10.10.10.8 -d 'sever ip' -j DROP Should work -- Regards Dharmendra.T This message is intended for the addressee only. It may contain privileged or Confidential information. If you have received this message in error,please notify the sender and destroy the message immediately.Unauthorised use or reproduction of this message is strictly prohibited. --=-3igxPkK4+O2r5JMBd4lC Content-Type: text/html; charset=utf-8 On Thu, 2003-06-05 at 15:26, 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 ?


	Hi
iptables -t nat -A POSTROUTING -s 10.10.10.5 -d 'sever ip' -j DROP
iptables -t nat -A POSTROUTING -s 10.10.10.8 -d 'sever ip' -j DROP

Should work
-- 
Regards
Dharmendra.T


This message is intended for the addressee only. It may contain privileged or Confidential information. If you have received this message in error,please notify the sender and destroy the message immediately.Unauthorised use or reproduction of this message is strictly prohibited.
--=-3igxPkK4+O2r5JMBd4lC--