Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Chris Wilson <chris@netservers.co.uk>
To: John Guntenaar <john@guntenaar.nl>
Cc: netfilter@lists.netfilter.org
Subject: RE: per user IP adresses
Date: Tue, 6 May 2003 10:48:16 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0305061043470.20564-100000@localhost> (raw)
In-Reply-To: <000301c31272$057d8630$0200a8c0@WKSJOHN>

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 |



  reply	other threads:[~2003-05-06  9:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-04 18:38 per user IP adresses John Guntenaar
2003-05-04 19:19 ` SaVaGE
2003-05-04 19:18   ` John Guntenaar
2003-05-06  9:48     ` Chris Wilson [this message]
2003-05-05 23:46 ` Joel Newkirk
2003-05-06  8:37   ` John Guntenaar
2003-05-06 13:16     ` Joel Newkirk
  -- strict thread matches above, loose matches on Subject: below --
2003-05-05  0:09 Khanh Tran
2003-05-05  8:30 ` John Guntenaar
2003-05-05 12:09   ` Arnt Karlsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0305061043470.20564-100000@localhost \
    --to=chris@netservers.co.uk \
    --cc=john@guntenaar.nl \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox