11 lines
256 B
Bash
11 lines
256 B
Bash
|
#!/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
|