Re: Where to add own rules in /etc/sysconfig/iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 30 Oct 2002, Dale Bewley wrote:

> Do you have ip forwarding turned on in the kernel?
> 
> [root@boss etc]# grep forward /etc/sysctl.conf
> # Disables packet forwarding
> net.ipv4.ip_forward = 1
> 
> You might also put the following on your INPUT and FORWARD chains and then
> watch /var/log/messages while you test.
> 
> IPTABLES=/sbin/iptables
> LOG="LOG --log-level 6 --log-prefix"
> LIMIT="limit --limit-burst 10 --limit 6/minute"
> # dropped by default
> $IPTABLES -A INPUT -m $LIMIT -j $LOG "INPUT packet died: "
> $IPTABLES -A INPUT -j DROP
> $IPTABLES -A FORWARD -m $LIMIT -j $LOG "FORWARD packet died: "
> $IPTABLES -A FORWARD -j DROP

while i'm still puzzled about the meaning of the "limit-burst" value
and how it works, the above use of limit seems backwards.

according to the man page for iptables, when you define a limit
match, "A rule using this extension will match until this limit
is reached..."

this suggests that, if the limit rules you've defined above match,
that's because you *haven't* exceeded the limit yet.  or am i
reading this backwards?

rday



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux