Skip to content

[Bug] System - The Port Forwarding Feature of the Firewall Module (ufw) Incorrectly Handles Traffic from Within Docker. #10345

@AnxysUaen

Description

@AnxysUaen

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

  1. Start OpenResty and have it listen on port 8443.
  2. Configure port forwarding from port 443 to port 8443.
  3. 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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions