descriptionDebian packaging for ocproxy.
homepage URLhttp://dme.org/ocproxy
ownerdme@dme.org
last changeTue, 20 Nov 2012 19:40:42 +0000 (20 19:40 +0000)
content tags
add:
README
ocproxy is a user-level SOCKS and port forwarding proxy for OpenConnect
based on lwIP.  When using ocproxy, OpenConnect only handles network
activity that the user specifically asks to proxy, so the VPN interface
no longer "hijacks" all network traffic on the host.

Commonly used options include:

  -D port                   Set up a SOCKS5 server on PORT
  -L lport:rhost:rport      Connections to localhost:LPORT will be redirected
                            over the VPN to RHOST:RPORT
  -g                        Allow non-local clients.  Must be the first option.
  -k interval               Send TCP keepalive every INTERVAL seconds, to
                            prevent connection timeouts


Dependencies:

libevent >= 2.0 - *.so library and headers


Building:

cd contrib/ports/unix/proj/ocproxy
make


Sample usage:

openconnect --script-tun --script \
    "./ocproxy -L 2222:unix-host:22 -L 3389:win-host:3389 -D 11080" \
    vpn.example.com

ssh -p2222 localhost
rdesktop localhost
socksify ssh unix-host
tsocks ssh 172.16.1.2
...

OpenConnect can (and should) be run as a non-root user when using ocproxy.


Sample tsocks.conf (no DNS):

server = 127.0.0.1
server_type = 5
server_port = 11080


Sample socks.conf for Dante (DNS lookups via SOCKS5 "DOMAIN" addresses):

resolveprotocol: fake
route {
        from: 0.0.0.0/0 to: 0.0.0.0/0 via: 127.0.0.1 port = 11080
        command: connect
        proxyprotocol: socks_v5
}


dme@dme.org, 2012-11-14
shortlog
2012-11-20 David EdmondsonFix changelog version.master
2012-11-20 David Edmondsondebian/watch: Check dme.org/ocproxy/snapshots for new...
2012-11-20 David EdmondsonUpdate debian/Changelog.
2012-11-20 David EdmondsonUpdate debian/control to include Vcs-Git and Vcs-Browser.
2012-11-20 David EdmondsonAdd hardening patch.
2012-11-20 David EdmondsonAdd Debian packaging.
2012-11-20 David EdmondsonImported Upstream version 1.20121120160713upstream
heads
11 years ago master
11 years ago patch-queue/master
11 years ago upstream