User Tools

Site Tools


linux:iptables

Table of Contents

iptables

BlockIP

iptables -A INPUT -s IPADDRESS -j DROP

Remove the iptables rule

iptables -D INPUT -s IPADDRESS -j DROP

Log the traffic

iptables -A INPUT -s IPADDRESS -j LOG --log-prefix "Testing "

Then you find the log in /var/log/kern.log

/var/www/dokuwiki/wiki/data/pages/linux/iptables.txt · Last modified: 2018/08/31 17:16 by percy