Comments (5)
For the benefit of others reading these issue comments on github, I do not think that this analysis of the widespread use of NAT by cloud server providers is accurate. It is possible to get a cloud provider where the local IP and the public IP are the same. There are many instances of this application running on production servers on many cloud providers. In particular, we have tested extensively with Digital Ocean and we haven't had any problems, so I can say for sure that it should work fine on Digital Ocean without any special configuration.
We will certainly take note of your feature request to develop a version of the Shadow transport that works behind NAT. I think this should be possible to enable in the future by simply providing an option to give two IPs to the transport: one that it should bind to locally and the public IP to use in the cryptographic protocol exchange. I don't think this seems too difficult, so we'll get working on this straight away and update this issue when the feature is available. Thanks so much for the helpful feedback!
from shapeshifter-dispatcher.
I should mention this is all using the latest HEAD commit of 5a0a004883c31e7e673e75fa323f3f5edc61c5bf
. I tried going back to the current tagged release of v3.0.1
but it would not build for me, it seemed to need a change in shapeshifter-ipc
that was made in its 3.0.2 version but trying to change that version in go.mod still wouldn't build due to other issues, and with the latest commit in this repo it seems the ipc package isn't even used anymore so I'm quite confused. Admittedly I'm not a go programmer so I'm not familiar with all these details.
from shapeshifter-dispatcher.
Your commands to run dispatcher, your configs, and the commands you used to generate them all look fine. The issue is that 443 is a dedicated port for https traffic and the telnet client isn't going to know how to send a properly constructed request to initiate a https handshake. Bindaddr and ServerAddress are both needed because proxies always need two addresses. The ServerAddress in the config is the destination address to the server. The bind address is the listening address on the client. Additionally, I made some changes to the README to reflect some of the missing information you mentioned. Thank you for bringing that to our attention! Let us know if there's anything else you can help with.
from shapeshifter-dispatcher.
You cannot use 0.0.0.0 for the server address. Part of the cryptographic handshake is verifying that the server and client have the same address for the server. Using 0.0.0.0 on the server configuration and a different IP for the server on the client confirmation will cause the cryptographic handshake to fail, giving the "clientConfirmationCode and server copy not equal" that you see. If the public IP of the server and the bind address IP of the server do not match, you will be unable to run the Shadow transport. However, this is usually not a problem for Cloud VMs as it would mean that the Cloud VM was behind NAT. You generally cannot run any kind of server behind NAT and you certainly can not run the Shadow transport behind NAT due to the feature of IP address verification.
My recommendation would be to try setting the IP address for the server to the same IP on both the client and the server (the public IP of the server) and see if that works.
from shapeshifter-dispatcher.
In my experience servers work just fine behind NAT when used with proper port forwarding. Not being able to support this means shutting out most of the largest cloud providers because they assign private IPs to the local interfaces, and public IP's are configured outside of the VM instance through loud balancers, NAT gateways and the like. Off the top of my head, Amazon, IBM, Rackspace, AliYun, DigitalOcean and probably many others, all use some type of NAT. Please consider supporting this as it is a non-starter for me and many others without dedicated server colocation.
from shapeshifter-dispatcher.
Related Issues (20)
- Inconsistent iat documentation and handling HOT 1
- unknow field 'Dialer' HOT 3
- Consider tagging releases HOT 4
- Segmentation Fault on Kubuntu HOT 1
- Support hostnames when specifying hosts HOT 2
- -transparent -udp option not working? binding to TCP port instead HOT 1
- Error: module declares its path as: monolith, but was required as: monolith-go/monolith HOT 1
- shapeshifter-dispatcher fails to compile: addInstance.Bytes undefined HOT 2
- Unable to dial transport server: failed to decode cert: illegal base64 data at input byte 0 HOT 1
- Problem with UDP transparent mode HOT 2
- Should shapeshifter-dispatcher have a CI? HOT 2
- connections never closed
- [bug] meekserver and meeklite transport error
- v3.0.1 is missing go.sum file HOT 3
- slice bounds out of range [:16] with capacity 0 HOT 1
- Decide if this project should be the one to help PT get off the island
- shapeshifter-dispatcher does not open any port on debian 11 server HOT 1
- go install failing due to go.mod version mismatch? HOT 2
- CopyServerToClient received an error: read: i/o timeout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shapeshifter-dispatcher.