When ports are forwarded from a gateway to a server, does the server see only the gateway's IP address, or does it see the IP address of the original, pre-forwarded incoming IP address?
I want the server to see the pre-forwarded IP address instead of the gateway's address for logging purposes, etc. Is that possible?
incoming IP address on forwarded port
Re: incoming IP address on forwarded port
You will see the original IP address.
Re: incoming IP address on forwarded port
If you're using a port forward on a firewall then you'll see the original ip address. It's when you use a proxy server that you don't but you can get the proxy to add the original ip to the headers it passes.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 6
- Joined: 2018/03/04 05:51:53
Re: incoming IP address on forwarded port
Thanks for the answers. I'm stumbling through setting up a VPS with firewalld doing port forwarding, and some of the details would be a lot harder to figure out without the help I'm receiving here.