Hi guys,
I have trawled the forums and google seeking an answer to this but I am at a loss. Hopefully you can help!!
I have a working OpenVPN setup with various clients (each with unique certificates) connecting to an internet facing OpenVPN server.
Some of these clients access this box via proxy server and some connect directly (TCP:443).
All clients seem to work just fine and receive an IP address in the default 10.8.0.0/24 network. They can all ping each other.
My challenge is that I want all off these clients to speak with a network that is sat behind one of these clients (Server 2008 x64)...
...we need to do this without adjusting the routing setup of said network. In this case I believe that NAT is required?
Please see this diagram which i have attempted to reference (I hope that works!)
http://derp.co.uk/ee000
How can I go about this please? What would such functionality even be called!?
I have enabled IP forwarding on both the OpenVPN server (Fedora) and the Windows server client in question.
I have also installed and configured Routing and Remote Access services on the Windows Server.
My server configuration file is as follows...
##--grep -v -e "^[#;]" server.conf|grep -v -e "^$"
port 443
proto tcp
dev tun
ca /root/easy-rsa/keys/ca.crt
cert /root/easy-rsa/keys/server.crt
key /root/easy-rsa/keys/server.key # This file should be kept secret
dh /root/easy-rsa/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir ccd
route 10.102.102.0 255.255.255.0
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
The configuration file for the client that will need to NAT for the network in question is as follows...
# grep -v -e "^[#;]" client.conf|grep -v -e "^$"
client
dev tun
proto tcp
remote XXXXXXXX.com 443
resolv-retry infinite
nobind
persist-key
persist-tun
http-proxy-retry
http-proxy 172.29.XXX.80 8080
ca C:\\Program\ Files\\OpenVPN\\keys\\ca.crt
cert C:\\Program\ Files\\OpenVPN\\keys\\client1.crt
key C:\\Program\ Files\\OpenVPN\\keys\\client1.key
ns-cert-type server
comp-lzo
verb 3
Please can anyone help please?
I have played with routes on the server and attempted to direct traffic for the 10.102.102.0 network down to the client...
route add 10.102.102.0 tun0
route add -net 10.102.102.0 netmask 255.255.255.0 gw 10.8.0.26
Nothing seems to be working for me. Any ideas!?