There is a requirement where clients should not know the port on which a particular service is running in the server.
Written a firewall script to redirect the port, where user will see some different port. e.g
ip1:portA:portB
ip2:portC:portD
here ip1 and ip2 are clients ip. PortB and PortD are original port. But client can see portA and portC
But when client typed https://server_ip:portA/some_service The url got changed to https://server_ip:portB/some_service
The actual port got display during access, that is what we are trying to prevent. netstat command is displaying portA and portC at the client's space. So from netstat commnd client wont be knowing the actual port number, but accessing the url is revealing the actual port number. Now changing url is not in the scope of the script. How to prevent showing actual port.