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.
I've been running a server of all kinds (apache, ssh, ftp, etc) on my comcast connection for over a year now. Recently, the modem was having trouble, so they came by and replaced it with a new one (a Scientific Atlanta "Webstar"). The problem is, unlike the previous modems, rather than connecting the router directly to the WAN, it creates a sort of mini-network, giving itself 192.168.1.1 and the router 192.168.1.10 or something. This isn't a problem for the router or for regular net stuff, but when I forward, for example, port 80 in the router to my webserver, all incoming connections show up as coming from 192.168.1.1 rather than their true WAN ip's.
Is there some way i could tweak with the kernel or the net driver or iptables or something (application-specific fixes are okay, but not as optimal since they must be done for each app) so the logs and whatnot show up correctly?
Well, not really... once the incoming packets have passed the modem, the original address is no longer present in the packet's header, so there is no way for "internal" hosts to find it out. Of course it will be in the modem's state tables, but there's no readily available way to get to that.
If this is important to you, better try to get a "dumb" router back, like the one you had earlier.
For anyone who has the same modem/problem, I was able to somehow get rid of this twilight zone between the router and modem by plugging my linux box directly in to the modem, powercycling the modem, and then running dhcpcd on it. I received a real (WAN) ip, then plugged it back into the router, powercycled again to clear the cache, and it worked like a charm.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.