I am struggling with a problem after moving my OpenVPN Linux server behind a Firewall router.
I once used the Linux server as gateway, router, DHCP, DNS and OpenVPN. OpenVPN Clients could connect to the local network 192.168.1.x behind the server.
Now I had to install a Netgear router as a new gateway, router, DHCP. I moved the Compaq server into the local network and now want to use it for OpenVPN only. The Netgear router got a firewall rule for forwarding Inbound Services on port 1194 UDP to the LAN IP of the server: 192.168.1.56.
First thing: The OpenVPN connection works fine.
Second thing: From the VPN client I cannot access any hosts in the LAN any more.
I try to give you some data/configs to get an impression. VPN network is 10.190.32.x.
--- Server side ---
Results of command "route" on the server. What I do not really understand are the entries for the host 10.190.32.2.
And is there a route missing that leads back from LAN to VPN network? But this worked in the old configuration as well and I do not right know what makes the difference here.
Code: Select all
Dest Router Genmask Flags Metric Ref Use Iface
10.190.32.2 * 255.255.255.255 UH 0 0 0 tun0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
10.190.32.0 10.190.32.2 255.255.255.0 UG 0 0 0 tun0
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default fwrouter 0.0.0.0 UG 0 0 0 eth0
Code: Select all
port 1194
proto udp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/fw.crt
key /etc/openvpn/keys/fw.key # This file should be kept secret
dh /etc/openvpn/keys/dh2048.pem
server 10.190.32.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 192.168.1.55"
push "dhcp-option DOMAIN fielax.local"
keepalive 10 120
cipher AES-256-CBC # AES 256 bit
comp-lzo
max-clients 20
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
log-append /var/log/openvpn/openvpn.log
verb 3
At the moment I use a Windows 7 OpenVPN GUI to connect to the server.
This gives ipconfig /all after connecting successful:
Code: Select all
Verbindungsspezifisches DNS-Suffix: home.local
Beschreibung. . . . . . . . . . . : TAP-Win32 Adapter V8
DHCP aktiviert. . . . . . . . . . : Ja
Autokonfiguration aktiviert . . . : Ja
IPv4-Adresse . . . . . . . . . . : 10.190.32.10(Bevorzugt)
Subnetzmaske . . . . . . . . . . : 255.255.255.252
Standardgateway . . . . . . . . . :
DHCP-Server . . . . . . . . . . . : 10.190.32.9
DNS-Server . . . . . . . . . . . : 192.168.1.55
NetBIOS via TCP/IP . . . . . . . : Aktiviert
What are the routes .8 and .11 for, when .10 is my current client IP?
Code: Select all
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik
0.0.0.0 0.0.0.0 192.168.50.1 192.168.50.199 25 #(LAN of client)
192.168.1.0 255.255.255.0 10.190.32.9 10.190.32.10 31
10.190.32.1 255.255.255.255 10.190.32.9 10.190.32.10 31
10.190.32.8 255.255.255.252 Auf Verbindung 10.190.32.10 286
10.190.32.10 255.255.255.255 Auf Verbindung 10.190.32.10 286
10.190.32.11 255.255.255.255 Auf Verbindung 10.190.32.10 286
Kind regards,
Anton