Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i have a VPS and a running Stunnel service there, listening on port 80, on my client side, i have setup the stunnel and generated the .pem file succefully. Server conf:

;Certificate
cert = /etc/stunnel/stunnel.pem

;Security Enhancement
#pid = /var/run/stunnel.pid
#chroot = /var/local/etc/stunnel
#setuid = root
#setgid = root

;output = /var/log/stunnel.log
compression = zlib

[SOCKS]
accept = 80
connect = 666

Client conf:

client = yes
compression = zlib
sslVersion = SSLv3
[Stunnel]
accept = 1337
connect = 192.208.*.*:80

The VPS is on KALI Linux and the my client is a Windows 8 x64. the error that the browser returns says that "the connection was reset".

Update 1 & Also The Answer: for later use guys, and i didn't know this at that moment u should run also a socks client/server on your VPS, like "shadowsocks", this channels your traffic through a port opened by the "server.py" and "local.py" in shadowsocks folder. the configuration is eaxy and it's well documented on github ( http://www.shadowsocks.org/ ). after running the shadowsocks just address the opened port by it to stunnel.conf and you are all set.

share|improve this question

1 Answer 1

Are there any firewalls or routers between the client and server? What do the stunnel logs say on both the client and the server?

share|improve this answer
    
This should be a comment, not an answer. –  dawud Sep 7 '13 at 16:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.