Contact Information
Anxys@outlook.com
1Panel Version
Community v1.10.32
Problem Description
In the current version, if OpenResty is started to listen on port 8443 and port forwarding is configured to redirect port 443 to 8443, accessing any HTTPS website on the internet from within Docker will be forwarded to the host machine's OpenResty, which is unexpected.
If this is a feature rather than a bug, it is hoped that a switch for "whether to exclude traffic from Docker" can be added to the port forwarding functionality.
Steps to Reproduce
- Start OpenResty and have it listen on port 8443.
- Configure port forwarding from port 443 to port 8443.
- Add a container, access its terminal, and use curl to request https://www.xx.com
The expected correct result
In this scenario, the curl request from within the container to the external HTTPS website will be unexpectedly forwarded to the host's OpenResty service listening on port 8443.
Related log output
Additional Information
No response