Linux Netfilter discussions
 help / color / mirror / Atom feed
* iptables wishes
@ 2003-04-01  8:41 Joel Newkirk
  2003-04-01 10:17 ` Martin Josefsson
  2003-04-06  3:57 ` AW: " Michael Schoen
  0 siblings, 2 replies; 6+ messages in thread
From: Joel Newkirk @ 2003-04-01  8:41 UTC (permalink / raw)
  To: netfilter

I haven't started a new thread here in ages, and this is something I've 
been toying with for a while.  With the recent announcement of a 
feature-freeze on iptables 1.2.8, this seemed a reasonable time to start 
this thread.  (targeting later releases, obviously, and hoping to spark 
some constructive discussion :^)

I was curious to hear what people might have as a 'wishlist' for 
iptables/netfilter capabilities.  Every once in a while something comes 
up here that simply doesn't seem to have a good solution.

My hope is that many of our personal wishes may already be possible, and 
by voicing them someone who has a solution may post it.  And for any 
that don't presently have an answer, perhaps someone will be inspired to 
create one.

Personally I have four:

1 - revamped LOG entry format, especially cleaning up MAC.

2 - completely separate netfilter logging from kernel log streams.  (not 
just redirecting infrequently-used kernel streams, but actual dedicated 
netfilter streams)

3 - Ability to match "original DestinationIP" of a DNATted packet in 
subsequent chains.  Useful with a single physical interface but multiple 
IPs bound to it.

4 - addition of support for a REM field in rules.  Would do nothing 
whatsoever except print the specified REMark text at the end of the rule 
in -L listings.  Something like:
iptables -A INPUT -p tcp --dport 22 -s a.b.c.d -j ACCEPT -REM JoelSSH
So that a -L listing could be easier & quicker to decipher sometimes.  It 
would also allow "iptables -L -v -n | grep Joel" to list only rules, in 
all chains, with "Joel" in the comment.


j




^ permalink raw reply	[flat|nested] 6+ messages in thread
* AW: iptables wishes
@ 2003-04-01  9:48 mailinglists
  2003-04-01 12:13 ` Stephen Frost
  0 siblings, 1 reply; 6+ messages in thread
From: mailinglists @ 2003-04-01  9:48 UTC (permalink / raw)
  To: netfilter

> 4 - addition of support for a REM field in rules.  Would do nothing 
> whatsoever except print the specified REMark text at the end 
> of the rule 
> in -L listings.  Something like:
> iptables -A INPUT -p tcp --dport 22 -s a.b.c.d -j ACCEPT -REM JoelSSH
> So that a -L listing could be easier & quicker to decipher 
> sometimes.  It 
> would also allow "iptables -L -v -n | grep Joel" to list only 
> rules, in 
> all chains, with "Joel" in the comment.

Oh yes, that is a good idea. 

two wishes from me:

could it be possible to display the line number of a certain rule in iptables -L -n -v additional to -REM target?
I think this would very much help to find the rules quicker in the iptables scripts when editing with a text editor.

Generally I think this is a problem of too large rule sets. Is there a way to make containers of src/dst addresses? e.g. like this:

container_untrusted_dns="ip.addr.A, ip.addr.B, ip.addr.C"
container_trusted_dns"ip.addr.D, ip.addr.E"

iptables -A FORWARD -p 6 -m state -s $container_trusted_dns --sport 1024: -d $container_untrusted_dns --dport 53 -o $waneth --state NEW,ESTABLISHED -j ACCEPT



Thanks,
Philipp 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-04-06  3:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-01  8:41 iptables wishes Joel Newkirk
2003-04-01 10:17 ` Martin Josefsson
2003-04-01 15:13   ` Joel Newkirk
2003-04-06  3:57 ` AW: " Michael Schoen
  -- strict thread matches above, loose matches on Subject: below --
2003-04-01  9:48 mailinglists
2003-04-01 12:13 ` Stephen Frost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox