-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 21 Oct 2002 17:58:40 -0700, Jack Bowling wrote:
> On Mon, Oct 21, 2002 at 11:05:52AM +0200, linux power wrote: > > Unknown arg --log-prefix /var/log/firewall > > Thats what I get in iptables -L > > when I use .... -j LOG --log-prefix /var/log/firewall > > and want to log outgoing unwanted signals. > > Any idea how to turn logging on. > > I'm sure somebody posted this yesterday but you still don't seem to > get it. The error message is telling you the truth: /var/log/firewall > is*not* a valid argument to --log-prefix. It is a valid argument. /var/log/firewall is simply used as the text string prefix in log messages. But order does matter: # iptables -I INPUT -j LOG --log-prefix /var/log/firewall # iptables sees the "LOG" and knows it must used the LOG extension module. The example above is equal. Hence I thought the error must be somewhere else. # iptables -I INPUT --log-prefix /var/log/firewall -j LOG iptables v1.2.5: Unknown arg --log-prefix' Try iptables -h' or 'iptables --help' for more information. # > the --log-prefix switch is > there so you can add some text to the packet header to help you > identify various packets. It is not there to redirect output to a > separate log file. > - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE9t7nt0iMVcrivHFQRAsIVAJ42FkUwTrtNt/B32LsrPOZUcyuZaACdHeSe uMat4NVKovPvwW35dkbzktA= =prfO -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list