Hi Robee,
Thank you very much for your reply, just want to confirn something.
1. Based on the script you've sent to me does it mean that I have to input
all my private subnets example
iptables -I FORWARD -s 192.168.1.0/24 -m state --state NEW -j
LOG --log-level info
iptables -I FORWARD -s 192.168.2.0/24 -m state --state NEW -j
LOG --log-level info
iptables -I FORWARD -s 192.168.3.0/24 -m state --state NEW -j
LOG --log-level info
iptables -I FORWARD -s 192.168.4.0/24 -m state --state NEW -j
LOG --log-level info
and so on
2. With this script I can identify a certain Private IP, which public IP
address it use and which remote IP it is connected? example
Private IP = 192.168.2.56
Public IP = 203.174.11.8
Remote IP = 65.67.87.9 (www.yahoo.com)
3. Are all the log are stored in /var/log/messages?
Thank you very much for you support,
Wennie
----- Original Message -----
From: "robee" <mlody@xxxxxxxxx>
To: <netfilter@xxxxxxxxxxxxxxxxxxx>
Sent: Sunday, July 02, 2006 7:03 PM
Subject: Re: private to public IP
Dnia 02-07-2006, nie o godzinie 14:35 +0300, Wennie V. Lagmay
napisał(a):
Hi all,
I want to create a log on Iptables wherein to store and to identify which
private Ip is connected on public Ip on a certain date and time. Can you
help me on this
Thanks,
Wennie
the easiest way:
iptables -I FORWARD -s PRIVATE_IP -m state --state NEW \
-j LOG --log-level info
robee