I have following working setup:
Code: Select all
port 1234
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt # generated keys
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key # keep secret
dh /etc/openvpn/keys/dh2048.pem
server 10.9.7.0 255.255.255.0 # internal tun0 connection IP
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo # Compression - must be turned on at both end
persist-key
persist-tun
status log/openvpn-status.log
verb 3 # verbose mode
client-to-client
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "redirect-gateway"
Code: Select all
client
dev tun
proto udp
remote HOST 1234
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
redirect-gateway
dhcp-option DNS 8.8.8.8
# Set log file verbosity.
verb 3
#client-to-client
...
certificate/keys data
---
The problem that I have is that when I access a website that is hosted on the same server as the VPN server then the webserver on that site sees my real IP and not the VPN IP.
Is there any way to make the webserver see the VPN server IP instead of my PC IP?
Please let me know.
Thanks