-
Notifications
You must be signed in to change notification settings - Fork 100
Connection refused #6
Comments
Have you installed and executed the server part ? |
hi. yes,i executed the server part. root@AR: there is one thing i don't understand.the client must connect to the server's port 443? |
./vpn-ws-client /dev/tap0 wss://mydomain.com:port/vpn will do the trick |
hi. yudeMacBook-Air:vpn-ws brite$ sudo ./vpn-ws-client /dev/tap0 wss://mydomain.com:449/vpn how to fix it? |
Which domain are you using in place of mydomain.com ? it looks like the system is not able to resolve it |
now the domain resolves properly.but still there is error: yudeMacBook-Air:vpn-ws brite$ sudo ./vpn-ws-client /dev/tap0 wss://ws.smt.biz.st:449/ my nginx config part: how to fix it? |
you have to fix your ssl certificates in nginx. -9807 means "invalid certificate chain" If you do not have a valid certificate use the --no-verify option |
where to add --no-verify? |
i see. |
now i can connect successfully. but i still cannot cross gfw(great firewall of china).in my browser,i cancelled proxy setting.and visit |
once the tunnel is established you should route all (or part) of your traffic to the vpn interface. One of the ways (on osx) is:
ensure the server has nat enabled for the vpn interface |
hi. yudeMacBook-Air:~ brite$ sudo route add default 10.8.0.1 is the 2 "File exists" hint normal?and in my server,how to set the internal ip? |
hi. on my mac, i run: then, and i login my vps,run: then i cancelled proxy setting in browser on my mac.and visit tks for ur reply |
the problem is here, you have to set a default gw route not a route to the server |
hi. yudeMacBook-Air:~ brite$ sudo route add 182.16.0.2 182.16.0.1 still not ok to cross the GFW. |
You have to set the default gw:
before this, check 182.16.0.1 is reachable pinging it Oh and obviously hold a route to the vps:
otherwise you will not be able to reach the vps anymore |
hi. yudeMacBook-Air:vpn-ws brite$ sudo ./vpn-ws-client /dev/tap0 wss://ws.smt.biz.st:449/ --no-verify but i cannot ping thru 182.16.0.1: headache.why i cannot ping thru 182.16.0.1?? |
can you paste your routing table (the osx one) after the connection is established ? |
hi my mac's routing table: Internet: Internet6: |
my mac is using wireless lan. |
it looks like you are not enabling the network interface like explained here: https://github.com/unbit/vpn-ws#the---exec-trick |
about what is vpn17? the follwoing is the result of ifconfig on my mac: the following is the result of ifconfig on my vps: venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 the following is routing table on my vps: so could u pls tell me in detail how to do? |
hi.
yudeMacBook-Air:vpn-ws brite$ sudo ./vpn-ws-client /dev/tap0 wss://mydomain.com/vpn
Password:
[Wed Jul 13 11:36:02 2016] connecting to mydomain.com port 443 (transport: wss)
[Wed Jul 13 11:36:03 2016] vpn_ws_connect()/connect(): Connection refused
[Wed Jul 13 11:36:03 2016] disconnected
how to fix it?
thank u.
The text was updated successfully, but these errors were encountered: