[deleted]
Hi,
I need help with openvpn. I am newbie to this. I have setup openvpn server and clients are able to connect fine to the vpn and able to ping the hosts sitting behind vpn server, but then I see the ping is resolving to the public ip's of the hosts and also I am not able to RDP to the hosts behind the vpn server. I am able to RDP to the host on which vpn server is hosted and access its drives. Any help would be greatly appreciated!
VPN IP pool: 192.168.200.0 255.255.255.0
Local net range of the vpn server: 192.168.100.0 255.255.255.0
Home network: 192.168.10.0/24
-----------------
Server config:
-----------------
;local 192.168.100.38
port 1194
proto udp
mssfix 1400
push "dhcp-option DNS x.x.x.x"
push "dhcp-option DNS x.x.x.x"
push "route 192.168.200.0 255.255.255.0"
dev tun
#dev-node MyTAP
ca "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\tagsdps01n01.crt"
key "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\tagsdps01n01.key" # This file should be kept secret-
dh "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\dh1024.pem"
server 192.168.200.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.100.0 255.255.255.0"
push "redirect-gateway def1"
keepalive 10 120
cipher BF-CBC
comp-lzo
max-clients 100
persist-key
persist-tun
;client-to-client
status openvpn-status.log
verb 3
----------------
client
----------------
client
dev tun
proto udp
remote x.x.x.x 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\infmca1161.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\infmca1161.key"
ns-cert-type server
cipher BF-CBC # Blowfish (default) encrytion
comp-lzo
verb 3
#route-delay 5
#route-method exe
Route table from client:
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.10.1 192.168.10.4 25
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
169.254.0.0 255.255.0.0 169.254.241.150 169.254.241.150 30
169.254.241.150 255.255.255.255 127.0.0.1 127.0.0.1 30
169.254.255.255 255.255.255.255 169.254.241.150 169.254.241.150 30
192.165.211.56 255.255.255.255 192.168.10.1 192.168.10.4 25
192.168.10.0 255.255.255.0 192.168.10.4 192.168.10.4 25
192.168.10.4 255.255.255.255 127.0.0.1 127.0.0.1 25
192.168.10.255 255.255.255.255 192.168.10.4 192.168.10.4 25
192.168.100.0 255.255.255.0 192.168.200.5 192.168.200.6 1
192.168.200.0 255.255.255.0 192.168.200.5 192.168.200.6 1
192.168.200.1 255.255.255.255 192.168.200.5 192.168.200.6 1
192.168.200.4 255.255.255.252 192.168.200.6 192.168.200.6 30
192.168.200.6 255.255.255.255 127.0.0.1 127.0.0.1 30
192.168.200.255 255.255.255.255 192.168.200.6 192.168.200.6 30
209.85.175.125 255.255.255.255 192.168.10.1 192.168.10.4 25
224.0.0.0 240.0.0.0 169.254.241.150 169.254.241.150 30
224.0.0.0 240.0.0.0 192.168.10.4 192.168.10.4 25
224.0.0.0 240.0.0.0 192.168.200.6 192.168.200.6 30
255.255.255.255 255.255.255.255 169.254.241.150 169.254.241.150 1
255.255.255.255 255.255.255.255 192.168.10.4 2 1
255.255.255.255 255.255.255.255 192.168.10.4 6 1
255.255.255.255 255.255.255.255 192.168.10.4 192.168.10.4 1
255.255.255.255 255.255.255.255 192.168.200.6 192.168.200.6 1
Default Gateway: 192.168.10.1
===========================================================================
Persistent Routes:
None
--------------------
Server routing table
--------------------
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.100.1 192.168.100.38 276
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
169.254.0.0 255.255.0.0 On-link 169.254.229.155 276
169.254.229.155 255.255.255.255 On-link 169.254.229.155 276
169.254.255.255 255.255.255.255 On-link 169.254.229.155 276
192.168.100.0 255.255.255.0 On-link 192.168.100.38 276
192.168.100.38 255.255.255.255 On-link 192.168.100.38 276
192.168.100.255 255.255.255.255 On-link 192.168.100.38 276
192.168.200.0 255.255.255.0 192.168.200.2 192.168.200.1 30
192.168.200.0 255.255.255.252 On-link 192.168.200.1 286
192.168.200.1 255.255.255.255 On-link 192.168.200.1 286
192.168.200.1 255.255.255.255 On-link 192.168.100.38 21
192.168.200.3 255.255.255.255 On-link 192.168.200.1 286
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.100.38 276
224.0.0.0 240.0.0.0 On-link 169.254.229.155 276
224.0.0.0 240.0.0.0 On-link 192.168.200.1 286
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.100.38 276
255.255.255.255 255.255.255.255 On-link 169.254.229.155 276
255.255.255.255 255.255.255.255 On-link 192.168.200.1 286
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 192.168.100.1 Default
0.0.0.0 0.0.0.0 10.235.74.192 Default
10.235.235.0 255.255.255.0 10.235.74.193 Default
192.168.200.1 255.255.255.0 192.168.100.38 1
192.168.100.0 255.255.255.0 192.168.100.38 1
192.168.200.1 255.255.255.255 192.168.100.38 1
===========================================================================
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
1 306 ff00::/8 On-link
===========================================================================
Persistent Routes:
None