Skip to main content
added 104 characters in body
Source Link
# on my computer !
# i wrote at the top of the script

iptables -F

iptables -X

# 
iptables -A INPUT -m state --state NEW -j LOG \ 
--log-prefix='[iptables_input] '



iptables -A OUTPUT -m state --state NEW -j LOG \
 --log-prefix='[iptables_output] '

# and found the results in /var/log/syslog
# the LOG instruction are executed only when other iptables instructions 
# are not registered before
# on my computer !
# i wrote at the top of the script

iptables -F

iptables -X

# 
iptables -A INPUT -m state --state NEW -j LOG \ 
--log-prefix='[iptables_input] '



iptables -A OUTPUT -m state --state NEW -j LOG \
 --log-prefix='[iptables_output] '

# and found the results in /var/log/syslog
# on my computer !
# i wrote at the top of the script

iptables -F

iptables -X

# 
iptables -A INPUT -m state --state NEW -j LOG \ 
--log-prefix='[iptables_input] '



iptables -A OUTPUT -m state --state NEW -j LOG \
 --log-prefix='[iptables_output] '

# and found the results in /var/log/syslog
# the LOG instruction are executed only when other iptables instructions 
# are not registered before
Source Link

# on my computer !
# i wrote at the top of the script

iptables -F

iptables -X

# 
iptables -A INPUT -m state --state NEW -j LOG \ 
--log-prefix='[iptables_input] '



iptables -A OUTPUT -m state --state NEW -j LOG \
 --log-prefix='[iptables_output] '

# and found the results in /var/log/syslog