Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
I like to use tcpdump to monitor incoming packets, however i just got a new router for adsl and rather than listening to whats coming in to me i want to listen to whats happening on the routers WAN. I can access the firewall logs, but they are not very verbose (and i like verbosity). My router is ip 10.0.0.x as is my desktop, is it possible to use the router as an interface rather than just forwarding everything to me?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Not to my knowledge. The router is setup to block incoming traffic, unless up portforward. Some routers can actually setup something called a DMZ, but I do not know if that transmit the network packets to that IP you define. You need to connect your computer directly to the adsl modem to get that info.
what I do is use transparent bridging (sometimes called half bridging) even most of the cheapest adsl routers usually have this option what make is yours?
What it does is pass the wan ip to your pc (kind of like forwarding all ports) and then you can run tcpdump to see whats happening on the wan side.
Dont forget this effectively disables the router firewall so get one on the pc first
Linux can do bridging too (http://bridge.sourceforge.net/) - what you could do, if you have an extra pc, you can put two NICs in it, bridge them without assigning an ip address, connect your WAN to one, then your router to the other, and run tcpdump (or snort or whatever) on the Linux bridge and monitor away. I also suppose if you put two extra NICs in your main PC you could use them as a bridge as well.
Brian1: My router does indeed have a DMZ zone setting, though i don't actually know what this means (im still new to the whole networking thing) ill go google it.
Slim_Pikins: It also has a virtual bridge section which i have used in the past for port forwarding, but i dont like this. As you said it disables the firewall, and i like having the routers firewall to control incoming connections and my os firewall to control outgoing it makes me feel () safe
slacky: Your suggestion sounds both like the best solution (and also sounds like it would be fun) i have a spareish laptop i can try that with?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.