questions on iptables
Hello Guys,
I'm trying to get some rules with netfilter and I'm having difficulties
on it. I'd like your help:
1) I'd like to setup a connection limit per second on an specific port.
I know this can be done with limit module. Altough, I'd like to have the limit applied for each IP and not on the port. Example: port 80, 5 connections per second. I'd like to have EACH ip that is connecting over port 80 to have a 5/sec limit. If one IP reached the limit, only that ip wouldnt match the rule. Other IPs would access it with no problems. Can this be done ?
2) I'd like to make a general rule for blocking connections with SPT =
DPT .... is this possible ?
Well, thanks for your attention :)
Sincerily,
Leonardo Rodrigues