openVPN server connecting to proxy

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
sweetestthing
OpenVpn Newbie
Posts: 5
Joined: Fri Jun 10, 2011 12:52 pm

openVPN server connecting to proxy

Post by sweetestthing » Mon Jun 13, 2011 5:20 am

how can i implement this?

client --> openvpn server --> proxy server


so all traffic is going to proxy server.

any ideas?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: openVPN server connecting to proxy

Post by maikcat » Mon Jun 13, 2011 8:17 am

hi there,

first redirect all traffic through tunnel

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

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

sweetestthing
OpenVpn Newbie
Posts: 5
Joined: Fri Jun 10, 2011 12:52 pm

Re: openVPN server connecting to proxy

Post by sweetestthing » Mon Jun 13, 2011 8:52 am

hello. how do i redirect traffic to the tunnel???

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: openVPN server connecting to proxy

Post by maikcat » Mon Jun 13, 2011 9:58 am

hi there,

simply add to your servers config file

push "redirect-gateway def1"

and restart the service

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

sweetestthing
OpenVpn Newbie
Posts: 5
Joined: Fri Jun 10, 2011 12:52 pm

Re: openVPN server connecting to proxy

Post by sweetestthing » Mon Jun 13, 2011 11:15 am

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

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: openVPN server connecting to proxy

Post by maikcat » Mon Jun 13, 2011 12:52 pm

hi there,

please take a look here

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


Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply