OperatorFoundation / shapeshifter-dispatcher

Shapeshifter Dispatcher converts Pluggable Transports that implement the Go API from the Pluggable Transports 2.1 specification into proxies usable by applications. Several proxy modes are provided, including proxying of both TCP and UDP traffic.
https://OperatorFoundation.org/
MIT License
177 stars 28 forks source link

Client listening port can not be modified #5

Closed integritybravery closed 6 years ago

integritybravery commented 7 years ago

How to specify the client listening port, the client listening port can not be modified, always 1234.

integritybravery commented 7 years ago

IP can not bind the public network address, always 127.0.0.1:1234.

blanu commented 6 years ago

This issue should have been resolved in release 2.0.1: https://github.com/OperatorFoundation/shapeshifter-dispatcher/releases/tag/2.0.1

Please note that historically, there has not been a way to specify the client listening port. In the past, the SOCKS address was hardcoded to 127.0.0.1:0, which only allows binding to localhost and a random port.

Adding the new -proxylistenaddr command line flag allows for specifying both the IP and port to bind to for accepting client proxy requests, and has been added to PT2/SOCKS mode, transparent TCP mode, and both UDP modes.

This is currently an experimental extension not covered in the PT 2.0 specification and will be considered for inclusion in the PT 2.1 specification. If you have any feedback on how this feature should work, please discuss so that we can add the best possible version of this feature to the specification.