Hello all.
After no success in TAP Server behind my WDS I am trying now TUN Server with static routing.
I can connect but get some errors and can not access the smb/LAN PCs on the Network.
Here is my Config:
port 443
proto udp
dev tun
ca ca.crt
cert Mayer.crt
key Mayer.key # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
client-to-client
keepalive 10 120
cipher AES-128-CBC # AES
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 4
dev tun
proto udp
remote xxx.de 443
ca ca1.crt
cert client1.crt
key client1.key
dhcp-option DNS 8.8.8.8
cipher AES-128-CBC
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
verb 3
auth-user-pass
comp-lzo
And like this looks my Static Route in my Router Config. (in german. sorry)
And This Error im getting after Connection:
[olog]Mon May 20 08:25:19 2019 Route addition fallback to route.exe
Mon May 20 08:25:19 2019 env_block: add PATH=C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem
Mon May 20 08:25:19 2019 ERROR: Windows route add command failed [adaptive]: returned error code 1
Mon May 20 08:25:19 2019 Initialization Sequence Completed
Mon May 20 08:25:19 2019 MANAGEMENT: >STATE:1558333519,CONNECTED,SUCCESS,10.8.0.6,87.174.238.95,443,,
Mon May 20 08:25:37 2019 write to TUN/TAP : Unknown error (code=122)
Mon May 20 08:25:43 2019 write to TUN/TAP : Unknown error (code=122)
Mon May 20 08:26:04 2019 write to TUN/TAP : Unknown error (code=122)
Mon May 20 08:26:14 2019 write to TUN/TAP : Unknown error (code=122)
Mon May 20 08:26:25 2019 write to TUN/TAP : Unknown error (code=122)
Mon May 20 08:26:35 2019 write to TUN/TAP : Unknown error (code=122)
Mon May 20 08:26:45 2019 write to TUN/TAP : Unknown error (code=122)
Mon May 20 08:26:55 2019 write to TUN/TAP : Unknown error (code=122)
Mon May 20 08:27:06 2019 write to TUN/TAP : Unknown error (code=122)
[/olog]
PS: 192.168.1.150 is the IP from my Server on which my OPEN VPN Server is running.
192.168.1.1 is my Router.
PS2: Added "comp-lzo" to Client Config. Error is now gone. But no access to the lan behind my OpenVPN Server anyway...
what is missing/wrong?