From mboxrd@z Thu Jan 1 00:00:00 1970 From: "plugthebox.net /dev/null" Subject: INPUT and PORTS Date: Wed, 01 Nov 2006 14:49:09 +0200 Message-ID: <1162385349.17873.30.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: netfilter Hello, I want to do the following, accept in comings from 10.2.2.115 only restricting to port 80,22 is this correct? -P rules ... -F rules ... /sbin/iptables -A FORWARD -d 10.2.2.115 -j ACCEPT /sbin/iptables -A FORWARD -s 10.2.2.115 -j ACCEPT /sbin/iptables -A INPUT -s 10.2.2.115 -j ACCEPT /sbin/iptables -A FORWARD -m multiport -p tcp --ports 80,22 -j ACCEPT /sbin/iptables -A INPUT -m multiport -p tcp --ports 80,22 -j ACCEPT Eventhough i saw this setup in many tutorials/howtos, when ever i want to block 10.2.2.115 (by not listing him in the INPUT -j ACCEPT), that ip can still connect to port 80 and 22. Thanks Sincerely,