Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello all.
I have a question. I want to log specific internet traffic using the IPTABLES firewall.
I found that I can define -j LOG as target, but I can't find where the logs are located. Can anyone tell where they are and what are the log files named, or suggest another way of logging specified traffic(program, command)?
Thaks a lot.
Hopefully, you don't log everything good or bad. I've never had the misfortune of it getting used but I'm pretty sure it gets saved to /var/log/messages. Maybe you could test it with a normal event.
i suggest to use
--log-level info (won't disturb your console)
--log-prefix "something" (maybe the rule name for better understanding what caused the drop/log - will show up in messages)
if you want to log a lot of traffic i'd suggest to use somthing like "-m limit --limit 6/m --limit-bursts 3", so the logs won't get too full.
can anyone explain me what LOG level warning means ??? what about the warning ?
I also noticed he doesn't Log anything, not in syslog not in messages not in kern.log ....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.