Hello!
I have an issue with the configuration of the client in a very restrictive environement. I can make work some application with a SOCKS 5 proxy establish with a ssh tunnel, but for the applications that don't have a proxy parameter option, I would like to use openVPN.
So first, I did try to redirect all the traffic with redirect-gateway def1. This work in some environements, but not in this restrictive environment. So I would like to put the VPN in the SSH tunnel. So first I create the SSH tunnel listening in local on the port 1000. And then I start the VPN with these particular options:
socks-proxy 127.0.0.1 1000 //to use the proxy
redirect-gateway def1 //to redirect the traffic trough the vpn
route 82.238.29.126 255.255.255.255 net_gateway // to not redirect the traffic used for the ssh tunnel
I can ping the server, but I cannot browse...
Do you have idea to make this work???
Thanks !!!
I'm under linux and there is my config files:
the client.conf:
client
dev tun
proto tcp
remote X.X.X.X Y
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3
socks-proxy 127.0.0.1 1000
redirect-gateway def1
route IP_of_the_ssh_server 255.255.255.255 net_gateway
and the server.conf
port Y
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3