How to forward the port while preserving the original IP address of the client?

How do I find out?

If you don’t know, the answer is likely no.

Is this router your main/only router, or is there a router in front of this one?

1 Like

If you don't want to help, then pass by. OpenWRT is the main router, there are no other routers.

I am trying to help. I had questions that needed to be answered.

In that case, masquerading is required.

2 Likes
  • "Masquerading" is not suitable because the addresses will be replaced with 192.168.1.1, I am not interested in addresses in the form of 192.168.1.1.

It's not a choice. Masquerading is required, end of.

1 Like

The router will not work without masquerading enabled.

But your players will not be replaced by 192.168.1.1.

Where are your players (inside the network or outside)?

1 Like
  • keenetic is able to throw 80\443 without using "Masquerading", so "Masquerading" is not needed, it's just your wish already.

outside the network, they enter at an address that is taken from the ip2 site

Please explain to us how your network will function without masquerading on the wan zone (for IPv4). This would be new to us.

1 Like

by the type of this:iptables -t nat -A PREROUTING -p tcp --dport port -d wanIP -j DNAT --to localip:port

This is masquerading.

2 Likes

I can assure you that your players will not have their ips overwritten to 192.168.1.1 because of masquerading and I can also tell you that it is required. Without it, your network will never work properly.

Feel free to ignore our advice, though.

1 Like

Meanwhile, the lan network must be removed from the wan firewall zone.

A network may only be in a single firewall zone.

1 Like
  • no, this is a port forwarding using the "iptables" utility.

If remove the LAN from there, then you will not be able to log on to the game server because the "Firewall - Port Forwards" section will stop working

If you knew how this worked, you probably wouldn’t be asking for help. Just saying.

If you do not believe our advice, it may be time for you to return to a vendor supplied firmware.

1 Like
  • if you don't want to help, then pass by - what's the problem?

I am trying to help you solve your problem. You don’t believe that I am giving the correct advice. I can assure you that I am, but the problem now is that you are at the peak of the Dunning-Kruger curve.

5 Likes