iptables wishes
---------- Original Message ----------------------------------
From: Joel Newkirk <[email protected]>
Reply-To: [email protected]
Date: Tue, 1 Apr 2003 03:41:48 -0500
Quoted 1 line
I haven't started a new thread here in ages, and this is
something I've
Quoted 2 lines
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
Quoted 1 line
this thread. (targeting later releases, obviously, and hoping to
spark
Quoted 4 lines
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
Quoted 3 lines
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
Quoted 1 line
by voicing them someone who has a solution may post it. And for
any
Quoted 1 line
that don't presently have an answer, perhaps someone will be
inspired to
Quoted 5 lines
create one.
Personally I have four:
1 - revamped LOG entry format, especially cleaning up MAC.
I also want this feature.
Quoted 2 lines
2 - completely separate netfilter logging from kernel log
streams. (not
Quoted 1 line
just redirecting infrequently-used kernel streams, but actual
dedicated
Quoted 1 line
netfilter streams)
Ohh yes!!! This is also "a must have". An extended to this yould be to log to diffrent files for diffrent rules. Something like iptables -A INPUT -s bad.host.net --log-
file /var/log/netfilter/bad.hosts -j LOG
Quoted 2 lines
3 - Ability to match "original DestinationIP" of a DNATted packet
in
Quoted 1 line
subsequent chains. Useful with a single physical interface but
multiple
Quoted 3 lines
IPs bound to it.
4 - addition of support for a REM field in rules. Would do
nothing
Quoted 1 line
whatsoever except print the specified REMark text at the end of
the rule
Quoted 2 lines
in -L listings. Something like:
iptables -A INPUT -p tcp --dport 22 -s a.b.c.d -j ACCEPT -REM
JoelSSH
Quoted 1 line
So that a -L listing could be easier & quicker to decipher
sometimes. It
Quoted 1 line
would also allow "iptables -L -v -n | grep Joel" to list only
rules, in
Quoted 1 line
all chains, with "Joel" in the comment.
This is also god :-)
Another thing to the wishlist (for me, that is)
When listing(-L) with verbose (-v) I wish to remove some fileds. Today I must use the awk command to do this. Resulting in very long command.
Something like:
iptables -L -v -opt -source +REM
would remove the opt and source fields and; add the REM field if not default when listing with verbose.
Quoted 4 lines
j
/Klintan
________________________________________________________________
Sent med Stib Webmail, en tjänst på klintan.se
Quoted 18 lines · Michael Klinteberg
---------- Original Message ----------------------------------
From: Joel Newkirk <[email protected]>
Reply-To: [email protected]
Date: Tue, 1 Apr 2003 03:41:48 -0500Quoted 8 lines
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 forQuoted 4 lines
2 - completely separate netfilter logging from kernel log streams. (not
just redirecting infrequently-used kernel streams, but actual dedicated netfilter streams)
Quoted 4 lines
Ohh yes!!! This is also "a must have". An extended to this yould be to log to diffrent files for diffrent rules. Something like iptables -A INPUT -s bad.host.net --log-
file/var/log/netfilter/bad.hosts-j LOG
That can be 'fudged' right now by using --log-level debug and --log-level notice, for instance, then redirecting kern.=debug to one file and kern.=notice to another from /etc/syslog.conf. Both streams usually have very little traffic.
j