- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- iptables log
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2003 04:50 PM
12-16-2003 04:50 PM
How do you put the logs generated by iptables into a different file aside from the message file?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2003 04:55 PM
12-16-2003 04:55 PM
Re: iptables log
Set it to it's own private level, modify '/etc/syslog.conf' to suit, and give it a whirl..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2003 05:06 PM
12-16-2003 05:06 PM
Re: iptables log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2003 06:56 PM
12-16-2003 06:56 PM
Re: iptables log
Can you give me a sample of it?
Actually I already inserted the following in the syslog.conf and restarted it but still no data has been captured.
kern.=inf /var/log/iptables.log
sample rule:
$IPTABLES -A LPINGFLOOD -m limit --limit 1/s --limit-burst 3 -j LOG --log-level 3 --log-prefix "FW-Ping_FLOOD/DROP "
Thanks!
LAT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 09:28 AM
12-17-2003 09:28 AM
Re: iptables log
If memory serves, the file has to exist before it will write to it (it won't create it).. But that could be another *nix I'm thinking of.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 12:45 PM
12-17-2003 12:45 PM
Re: iptables log
Yes, iptables.log was created when I added the entry in the syslog.conf and I see data when I tail the iptables.log. I guess it's working. Can you please help me confirm if this is working?
Thank you.
LAT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 01:25 PM
12-17-2003 01:25 PM
SolutionDo that in a telnet window.
Then telnet to the server or access its web server, or use a browser to access the internet.
All of these activities should instantly write to the log and scroll in the telnet/terminal window as these activities take place.
Test something thats blocked too, not everything that is open.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2003 01:26 PM
12-17-2003 01:26 PM
Re: iptables log
You should see entries similar to:
Dec 18 13:26:04 linux kernel: FORWARD:IN=eth0 OUT=eth0 src=207.241.134.236 DST=203.219.18.112 LEN=78 TOS=0x00 PREC=0x00 TTL=107 ID=26969 PROTO=UDP SPT=1025 DPT=
137 LEN=58
but 'FORWARD:' will be 'FW-Ping_FLOOD/DROP '.