|
#!/bin/bash
|
|
|
|
touch /var/log/iptables.log
|
|
|
|
bash /iptables.sh
|
|
|
|
iptables -A INPUT -j LOG --log-prefix "[I]iptables: "
|
|
iptables -A OUTPUT -j LOG --log-prefix "[O]iptables: "
|
|
iptables -A FORWARD -j LOG --log-prefix "[F]iptables: "
|
|
|
|
tail -f /var/log/iptables.log |