我希望端口8001上的ppp0上的连接被路由到端口8080上的eth0上的192.168.1.200。 我有这两条规则 -A PREROUTING -p tcp -m tcp –dport 8001 -j DNAT –to-destination 192.168.1.200:8080 -A FORWARD -m state -p tcp -d 192.168.1.200 –dport 8080 –state NEW,ESTABLISHED,RELATED -j ACCEPT 它不起作用。 我错过了什么?
我不想限制特定服务的速度。 我的目标是仅仅根据传入的IP地址来限制速率。 例如使用伪规则: john.domain.local (192.168.1.100) can only download from our httpd/ftp servers at "10KB/s" (instead of 1MB/s) 我怎样才能使用IPTables基于传入的IP地址速率限制?
我在服务器上使用Fail2Ban,我想知道如何正确解除IP。 我知道我可以直接使用IPTables: iptables -D fail2ban-ssh <number> 但是有没有办法与fail2ban-client做到这一点? 在手册中,它指出类似于: fail2ban-client get ssh actionunban <IP> 。 但是这不起作用。 此外,我不想/etc/init.d/fail2ban restart因为这将失去列表中的所有禁令。