From: Patrick Schaaf Subject: Re: Easy question, how to use stdio.h Date: Tue, 22 Apr 2003 20:26:07 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20030422182607.GC3374@oknodo.bof.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@lists.netfilter.org Return-path: To: "ISLERO77@telefonica.net" Content-Disposition: inline In-Reply-To: Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org > And now I was trying to load in a file the source and the dest > ports of the packets. I would do it this way: while read sport dport; do iptables -t whatever -A WHEREEVER \ -m TCP --sport $sport --dport $dport -j DOSOMETHING done