gumblex / ptproxy

Turn any pluggable transport for Tor into an obfuscating TCP tunnel.
MIT License
161 stars 43 forks source link

Connection reset by peer #8

Open KHN190 opened 8 years ago

KHN190 commented 8 years ago

I've followed https://github.com/Yawning/obfs4 installation instructions but seemed unable to run obfuscation plugs. Problem:

# on remote machine
$ obfs4proxy -logLevel=ERROR -enableLogging=true
[ERROR]: obfs4proxy - must be run as a managed transport

Any suggestions or alternative commands?


Edit: Now I have a local proxy listening on 1080, sending to remote machine port 23456. With a remote server listening on 0.0.0.0:23456, forwarding to local 1080.

But I have a connect reset by peer problem on local machine. Is this normal for pluggable transports (interrupted)? Or am I having problem with setup?

KHN190 commented 8 years ago

OK. I made my way. The problem is in my tor log,

Apr 30 15:09:18.000 [warn] Could not launch managed proxy executable at '/usr/local/bin/obfsproxy' ('Permission denied').
Apr 30 15:44:03.000 [warn] Could not launch managed proxy executable at '/usr/local/bin/obfsproxy' ('Permission denied').
Apr 30 15:44:03.000 [warn] Could not launch managed proxy executable at '/usr/local/bin/obfs4proxy' ('Permission denied').
Apr 30 16:19:24.000 [warn] Could not launch managed proxy executable at '/usr/local/bin/obfsproxy' ('Permission denied').
Apr 30 16:19:24.000 [warn] Could not launch managed proxy executable at '/usr/local/bin/obfs4proxy' ('Permission denied').

So I added sudo so it looks like:

ServerTransportPlugin obfs4 exec sudo /usr/local/bin/obfs4proxy

Now it works.

KHN190 commented 8 years ago

@gumblex sorry to reopen this issue. I do have a problem now.

gumblex commented 8 years ago

Sorry, but I can't understand what you are trying to do. Are you trying to use obfs4 with Tor, independently or with ptproxy?

KHN190 commented 8 years ago

@gumblex I'm using with ptproxy.

Configure for client (local machine):

{
    "role": "client",
    "state": ".",
    "local": "127.0.0.1:1080",
    "server": "x.x.x.x:23456", # remote server, configured as tor bridge, and is running a ptproxy server
    "ptexec": "obfs4proxy -logLevel=ERROR -enableLogging=true", # like this
    "ptname": "obfs4",
    "ptargs": "cert=.....;iat-mode=0",
    "ptserveropt": "",
    "ptproxy": ""
}