[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: whereis iptables LOG



On Thu, 18 Apr 2002 16:43:09 +0800
"Patrick Hsieh" <pahud@pahud.net> wrote:

> I use this rule to redirect the outgoing smtp connection under NAT.
> Where are the log messages? I just can't find any log begging with
> "SMTP_LOG" under /var/log/. Idea?

The log entries will go where ever your syslog.conf (assuming you're using
syslog) tell them to go.  This is most likely going to be
"/var/log/messages" by default.

> iptables -t nat -A PREROUTING -p TCP -s 192.168.10.0/24 ! -d
> 111.222.333.444 --dport 25 -j LOG --log-prefix SMTP_LOG:

The "--log-prefix" sets a small text string that is prepended to the
entries made in the log file.

-- 
Jamin W. Collins


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: