iptables LOG to console - Redhat

This is a discussion on iptables LOG to console - Redhat ; I added LOG to iptables, but it logs to the console. How can I get it to log to a file? I am guessing it is a modification of syslog.conf, but if so, what? Thanks in advance for your help. ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: iptables LOG to console

  1. iptables LOG to console

    I added LOG to iptables, but it logs to the console.
    How can I get it to log to a file? I am guessing
    it is a modification of syslog.conf, but if so, what?

    Thanks in advance for your help.
    Mike.

  2. Re: iptables LOG to console

    Mike - EMAIL IGNORED wrote:
    > I added LOG to iptables, but it logs to the console.
    > How can I get it to log to a file? I am guessing
    > it is a modification of syslog.conf, but if so, what?


    You have to combine "iptables ... --log-level level" and syslog.conf
    configurations.

    Log to specified level and in syslog.conf log it to file not to
    terminal/console.

    mazek

    --
    http://mazek.netsync.pl/ ::: nic-hdl: MM3380-RIPE
    GnuPG 6687 E661 98B0 AEE6 DA8B 7F48 AEE4 776F 5688 DC89

  3. Re: iptables LOG to console

    m.mazurek@netsync.pl wrote:
    >
    > Mike - EMAIL IGNORED wrote:
    > > I added LOG to iptables, but it logs to the console.
    > > How can I get it to log to a file? I am guessing
    > > it is a modification of syslog.conf, but if so, what?

    >
    > You have to combine "iptables ... --log-level level" and syslog.conf
    > configurations.
    >
    > Log to specified level and in syslog.conf log it to file not to
    > terminal/console.
    >
    > mazek
    >

    [...]

    What do I put in sys.conf to accomplish this?
    Mike.

  4. Re: iptables LOG to console

    On Sat, 10 Jul 2004 17:27:37 -0400, Mike - EMAIL IGNORED wrote:
    > I added LOG to iptables, but it logs to the console.
    > How can I get it to log to a file? I am guessing
    > it is a modification of syslog.conf, but if so, what?


    Have you looked in /var/log/messages?

    --
    Dale Dellutri (lose the Q's)

+ Reply to Thread