Redirect a specific web-site through a proxy

How to customize and extend your OpenVPN installation.

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

Post Reply
Shaxine
OpenVpn Newbie
Posts: 1
Joined: Sun Sep 06, 2015 10:24 am

Redirect a specific web-site through a proxy

Post by Shaxine » Sun Sep 06, 2015 10:32 am

Hello,

So, I have a RPi2 with a working OpenVPN server running a Debian based Linux distro, and I would like to know if its possible to redirect a specific (only that one) web-site through a proxy when I'm connect to the OpenVPN outside my local network.

Here is my scenario, I'm at my university using my VPN to bypass their blockage and I want to access that specific web-site (that I'm only able to access trough a proxy server) since I own the VPN why not make it so that I can access it without the need off extra configuration on my computer or smartphone?

Here is my config file:

Code: Select all

local 192.168.1.100
dev tun
proto tcp
port 443
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.1.100 255.255.255.0"
push "dhcp-option DNS 192.168.1.1"
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
cipher AES-128-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log /var/log/openvpn.log
verb 1
So, do I explained myself right? Is it possible? Can I get some help?

Thanks in advance.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Redirect a specific web-site through a proxy

Post by Traffic » Mon Sep 14, 2015 11:25 am

Shaxine wrote:do I explained myself right?
I do not understand what you want but ..
  • NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.

Post Reply