Is there a way to detect programmatically whether the local host has a
firewall enabled?
as root: iptables -vnL
as user you may look at some files. They are indicators... interpret
them. I don't know how to get the rule set.
$ test -d /proc/sys/net/ipv4/netfilter
get info from /proc/sys/net/ipv4/netfilter/* and /proc/net/ip_*
look for logs
$ dmesg | grep 'IN=.*OUT=.*SRC=.*DST=.*'
gentoo: specific
$ /etc/init.d/iptables status
$ test -s /var/lib/iptables/rules-save
Sascha.
--
gentoo-user@gentoo.org mailing list