From: Sascha Lucas <sascha.lucas@rus.uni-stuttgart.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Detecting local host firewall
Date: Sun, 13 Nov 2005 23:31:30 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.0511131846220.1947@tragbb.ehf.hav-fghggtneg.qr> (raw)
In-Reply-To: <B86F8BCEEED5184CA225E0CC10FF611608B2B7@bdc03srv04.bdc.int>
> 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
prev parent reply other threads:[~2005-11-13 22:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-13 16:38 [gentoo-user] Detecting local host firewall Frank.Pikelner
2005-11-13 19:06 ` [gentoo-user] " Harry Putnam
2005-11-13 18:24 ` Arturo 'Buanzo' Busleiman
2005-11-13 19:40 ` Bryce Verdier
2005-11-13 20:55 ` John Holden
2005-11-13 22:31 ` Sascha Lucas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0511131846220.1947@tragbb.ehf.hav-fghggtneg.qr \
--to=sascha.lucas@rus.uni-stuttgart.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox