From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wilson Subject: RE: per user IP adresses Date: Tue, 6 May 2003 10:48:16 +0100 (BST) Sender: netfilter-admin@lists.netfilter.org Message-ID: References: <000301c31272$057d8630$0200a8c0@WKSJOHN> Mime-Version: 1.0 Return-path: In-Reply-To: <000301c31272$057d8630$0200a8c0@WKSJOHN> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: John Guntenaar Cc: netfilter@lists.netfilter.org Hi John, > I think you didn't understand my question, > > Ofcourse I can just set open that IP address, but I only want it to be > open for my own user (so the other users CAN'T use the IP) > > I think I need things like -m owner --owner-uid or something but I can't > figure out a good rule, I get errors on everything I try :( I don't think REJECT works in the OUTPUT chain, try DROP: iptables -A OUTPUT -p tcp --dport 6667 -m owner --owner-uid john -s 1.2.3.4 -j ACCEPT iptables -A OUTPUT -p tcp --dport 6667 -j DROP where "john" is the user ID who is allowed to use IRC on IP address 1.2.3.4 only. Cheers, Chris. -- ___ __ _ / __// / ,__(_)_ | Chris Wilson -- UNIX Firewall Lead Developer | / (_ / ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk | \ _//_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |