Page 1 of 1

openVPN server connecting to proxy

Posted: Mon Jun 13, 2011 5:20 am
by sweetestthing
how can i implement this?

client --> openvpn server --> proxy server


so all traffic is going to proxy server.

any ideas?

Re: openVPN server connecting to proxy

Posted: Mon Jun 13, 2011 8:17 am
by maikcat
hi there,

first redirect all traffic through tunnel

then use iptables to port forward all web traffic through your proxy.

Michael.

Re: openVPN server connecting to proxy

Posted: Mon Jun 13, 2011 8:52 am
by sweetestthing
hello. how do i redirect traffic to the tunnel???

Re: openVPN server connecting to proxy

Posted: Mon Jun 13, 2011 9:58 am
by maikcat
hi there,

simply add to your servers config file

push "redirect-gateway def1"

and restart the service

Michael.

Re: openVPN server connecting to proxy

Posted: Mon Jun 13, 2011 11:15 am
by sweetestthing
its already in the server config

but how can i put all openvpn traffic towards proxy server like say for example, squid,

tnx very much

Re: openVPN server connecting to proxy

Posted: Mon Jun 13, 2011 12:52 pm
by maikcat
hi there,

please take a look here

http://www.review-ninja.com/2008/08/tra ... ables.html


Michael.