Re: whereis iptables LOG

2002-04-18 Thread Jamin W . Collins
On Thu, 18 Apr 2002 16:43:09 +0800
"Patrick Hsieh" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: whereis iptables LOG

2002-04-18 Thread dman
On Thu, Apr 18, 2002 at 04:43:09PM +0800, Patrick Hsieh wrote:
| Hello,
| 
| 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?

syslog and/or messages

if you go to a console, you'll see them there too

also, if you run 'xconsole' you'll see the messages there

-D

-- 

A kindhearted woman gains respect,
but ruthless men gain only wealth.
Proverbs 11:16


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



whereis iptables LOG

2002-04-18 Thread Patrick Hsieh
Hello,

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?

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:

-- 
Patrick Hsieh <[EMAIL PROTECTED]>
GPG public key http://pahud.net/pubkeys/pahudatpahud.gpg


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]