khavishbhundoo / obfsproxy-openvpn

Bash script to setup openvpn with obfsproxy to defeat censorship
MIT License
111 stars 33 forks source link

i get 111: Connection refused. #10

Open linuxacademyir opened 4 years ago

linuxacademyir commented 4 years ago

Hello thank you for your great script, i have centos on both end. the server and client are both Centos 7. i use obfsproxy --log-min-severity info obfs3 socks 127.0.0.1:1050 command on the client and i get: Launched 'socks' listener at '[scrubbed]:1050' for transport 'obfs3'. then using a different terminal i use this command: openvpn --config scrambled-client.ovpn and here is the out put on this terminal : Sun Nov 24 00:52:02 2019 Socket Buffers: R=[87380->87380] S=[16384->16384] Sun Nov 24 00:52:02 2019 Attempting to establish TCP connection with [AF_INET]127.0.0.1:1050 [nonblock] Sun Nov 24 00:52:02 2019 TCP connection established with [AF_INET]127.0.0.1:1050 Sun Nov 24 00:52:03 2019 recv_socks_reply: Socks proxy returned bad reply Sun Nov 24 00:52:03 2019 SIGUSR1[soft,init_instance] received, process restarting Sun Nov 24 00:52:03 2019 Restart pause, 5 second(s) and in the other terminal where my obfsproxy ic connected i get this error: [ERROR] CMD CONNECT: Connection was refused by other side: 111: Connection refused. can you please tell me what i am doing wrong ?

paulanessim commented 4 years ago

Hello, I had the same problem. Please try : pip install --upgrade setuptools On the server side. It should fix the problem.

tikubgh commented 4 years ago

Hello, I had the same problem. Please try : obfsproxy --log-file=obfsproxy.log --log-min-severity=info obfs3 --dest=127.0.0.1:443 server 0.0.0.0:21194 On the server side. It should fix the problem. =(recv_socks_reply: Socks proxy returned bad reply)