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 have a rather complex iptables script that has been working wonderfully for, well, years.
I recently rebooted the server, everything came back up as expected, but something strange is happening now.
I have my port forwarding set up for various services (smtp, pop, etc.) and the rules work fine - however, it's acting as if the gateway is proxying inbound connections to these services. Meaning, it appears as though the firewall is actually connecting to the services, rather than relaying a connection from the outside world.
So, in all of my logs, I have the IP address of the firewall and not the actual connecting client and I'm not sure where this is getting messed up.
IMHO this is exactly the way a proxy is supposed to work. Isn't it?
It isolates the internal IPs from the outside and vice-versa.
I am really interested to what you had before rebooting the server.
Yes, it's acting exactly like a proxy, but that's not how port forwarding with iptables is supposed to work.
When you port forward, the machine/device doing the routing doesn't manipulate the source address.. so the original source address isn't modified when it reaches the destination.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.