* AW: iptables wishes
@ 2003-04-01 9:48 mailinglists
2003-04-01 12:13 ` Stephen Frost
2003-04-01 14:32 ` iptables wishes Ivano Proietti Mucci
0 siblings, 2 replies; 7+ 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] 7+ messages in thread
* Re: AW: iptables wishes
2003-04-01 9:48 AW: iptables wishes mailinglists
@ 2003-04-01 12:13 ` Stephen Frost
2003-04-01 12:29 ` iptable / packet flow Scott MacKay
2003-04-01 14:32 ` iptables wishes Ivano Proietti Mucci
1 sibling, 1 reply; 7+ messages in thread
From: Stephen Frost @ 2003-04-01 12:13 UTC (permalink / raw)
To: mailinglists; +Cc: netfilter
[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]
* mailinglists (mailinglists@belfin.ch) wrote:
> 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
It's overkill for this but you can use ipt_recent for matching on many
disseperate addresses or ippool for faster matching on IP addresses in
small ranges. ippool in netfilter currently uses a bitfield for it's
IP address storage so you have to specify the range ahead of time and if
the range is very large it takes up gobs of memory. ipt_recent is meant
for doing matches on recently seen IP addresses but can also be used for
static lists without penalty if you use --rcheck for the check (and not
--update). ipt_recent is implemented as a hash table and so you can
throw any address you want in it without concern for memory size beyond
the total number of IP addresses you want to be able to store at once
instead of their disparity. More information on ipt_recent is available
in the netfilter extension FAQ and at the homepage
http://snowman.net/projects/ipt_recent/ . ippool is documented as part
of netfilter.
Stephen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: iptables wishes
2003-04-01 9:48 AW: iptables wishes mailinglists
2003-04-01 12:13 ` Stephen Frost
@ 2003-04-01 14:32 ` Ivano Proietti Mucci
2003-04-01 15:35 ` Joel Newkirk
1 sibling, 1 reply; 7+ messages in thread
From: Ivano Proietti Mucci @ 2003-04-01 14:32 UTC (permalink / raw)
To: netfilter
like most peaple, i have a gateway to internet, and the thing is: how to
limit bandwidth per internal-ip?
thanks,
Ivano
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: iptables wishes
2003-04-01 14:32 ` iptables wishes Ivano Proietti Mucci
@ 2003-04-01 15:35 ` Joel Newkirk
0 siblings, 0 replies; 7+ messages in thread
From: Joel Newkirk @ 2003-04-01 15:35 UTC (permalink / raw)
To: Ivano Proietti Mucci, netfilter
On Tuesday 01 April 2003 09:32 am, Ivano Proietti Mucci wrote:
> like most peaple, i have a gateway to internet, and the thing is: how
> to limit bandwidth per internal-ip?
>
> thanks,
> Ivano
This can be achieved with advanced routing. The LARTC HowTo has some
sections relating to this at:
http://lartc.org/howto/lartc.cookbook.html
If the bandwidth allocation policy is strictly IP-based then the solution
is routing. If the policy depends on connection type as well (IE, bulk
transfers like P2P prioritized lower than interactive connections) then
the solution incorporates the TOS or MARK targets in iptables, in the
mangle-PREROUTING and mangle-OUTPUT chains.
Very powerful stuff, but I've yet to find a how-to on it that is both
clear AND thorough. (with a subject so complex, that combination is
extremely difficult to achieve...)
j
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: iptable / packet flow
@ 2003-04-01 14:56 dhiraj.2.bhuyan
0 siblings, 0 replies; 7+ messages in thread
From: dhiraj.2.bhuyan @ 2003-04-01 14:56 UTC (permalink / raw)
To: scottmackay, netfilter
There is one in the following tutorial -
http://iptables-tutorial.frozentux.net/iptables-tutorial.html
dhiraj
-----Original Message-----
From: Scott MacKay [mailto:scottmackay@yahoo.com]
Sent: 01 April 2003 12:30
To: netfilter@lists.netfilter.org
Subject: iptable / packet flow
I think someone pointed to a good graphical site
depicting the flow of a packet and where iptable rules
are applied. Would anyone know where that is?
-Scott
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-04-01 15:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-01 9:48 AW: iptables wishes mailinglists
2003-04-01 12:13 ` Stephen Frost
2003-04-01 12:29 ` iptable / packet flow Scott MacKay
2003-04-01 12:45 ` Scott MacKay
2003-04-01 14:32 ` iptables wishes Ivano Proietti Mucci
2003-04-01 15:35 ` Joel Newkirk
-- strict thread matches above, loose matches on Subject: below --
2003-04-01 14:56 iptable / packet flow dhiraj.2.bhuyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox