Hello,
Due to the blocks set by my ISP I decided to use my OpenVPN server configuration to bypass these blocks .Everything works great and all my internet traffic is routed through openVPN .The session works fine except for accessing services on the same VPS. So if I try to connect to my web sites (which is hosted on the same IP as the VPN) the webserver see my real IP because i'm connected to the same server with OpenVPN and my provider throttle my connection for the remainder of the evening.
All other traffic does though, expect for any traffic on the same VPS. How can I get connected to my web site via openVPN on the same server through "local" ip ?
Any help would be greatly appreciated. Thanks!
server config
port 53
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
;proto tcp
;dev tap
;dev-node MyTap
;local a.b.c.d
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;server-bridge
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
;client-to-client
;duplicate-cn
;tls-auth ta.key 0 # This file is secret
;cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
;user nobody
;group nogroup
;log openvpn.log
;log-append openvpn.log
;mute 20
client config
client
dev tun
proto udp
remote xx.xx.xx.xx 53
resolv-retry infinite
nobind
redirect-gateway def1
persist-key
persist-tun
ca [inline]
cert [inline]
key [inline]
ns-cert-type server
comp-lzo
verb 3
remote-cert-tls server
keepalive 10 60