[plug] iptables question
proXy
davyd at iprimus.com.au
Thu Aug 8 22:55:21 WST 2002
On Thu, 2002-08-08 at 22:50, Jon Miller wrote:
> How can I stop the displaying of the iptables information from showing up on the console?
> Also is there another way of having the iptables information from showing up in /var/log/messages? prefer to have this information in another file if possible.
Much like every other dodgy solution. My solution to this is not to have
it attached to a console. Run iptables out of your init.d and then it
shouldn't have anywhere to output to.
However you could attempt (unsure if this works, too tired to try)
appending `1>/dev/null 2>/var/log/firewall.messages` to the end of your
iptables command(s). That should send everything belonging to the stdout
to /dev/null and everything from the stderr (what you see on your
console) to the file /var/log/firewall.messages
--proXy
--
http://davyd.ucc.asn.au/
linux.conf.au Perth 2003 <http://www.linux.conf.au>
PGP Fingerprint <http://davyd.ucc.asn.au/pgp>
08B0 341A 0B9B 08BB 2118 C060 2EDD BB4F 5191 6CDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20020808/a9548501/attachment.pgp>
More information about the plug
mailing list