LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-18-2016, 12:29 AM   #1
squidvpn
LQ Newbie
 
Registered: May 2016
Posts: 1

Rep: Reputation: Disabled
OpenVPN Access Server Route All Traffic Through Local Squid Proxy?


Hi everyone,

I have a small network where clients are running OpenVPN.

I would like to implement a Squid proxy on the Access Server for the purposes of controlling acceptable use of the VPN. I've never done this before and am having quite a bit of difficulty getting the OpenVPN Access Server to route all traffic to the squid proxy running on the same box.

The goal is basically to lock down the VPN so clients can only use it to browse certain websites.

First, is this even possible if the sites are running on HTTPS?

Second, if so, what are the proper iptables rules to force all outbound traffic from the OpenVPN Access Server to the locally running Squid service?

Basically, I'd like to lock the OpenVPN clients into only being able to access a single https:// URL.

Any help is most appreciated.

Thank you
 
Old 05-18-2016, 05:15 PM   #2
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 349

Rep: Reputation: 60
Hi,

what mode of vpn are you hosting ? ie. routed or bridged ?

add the following line to your vpn server.conf file :

push "redirect-gateway def1"

this will redirect ALL the traffic through the vpn , probably just in case someone wants to use third party proxies.

As for the squid part you can refer this link :

http://www.linuxquestions.org/questi...pn-4175511172/


Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables: route web traffic of virtual machine through local proxy of host machine lola.hipf Linux - Networking 1 10-26-2014 07:09 PM
OpenVPN - route traffic based on ports? Sorbitol Linux - Networking 2 05-07-2013 02:50 PM
can't access https but http works fine through route-map ->squid proxy erion Linux - Newbie 7 12-19-2012 11:57 AM
How to redirect Squid Traffic to Another Proxy Server matrix_aash Linux - Networking 11 02-16-2010 11:52 AM
Allowing VPN traffic via squid proxy server raktri4u Linux - Newbie 4 01-08-2010 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration