openvpn routes in client config not working

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
blackmetal
OpenVpn Newbie
Posts: 1
Joined: Sun Aug 18, 2019 3:09 pm

openvpn routes in client config not working

Post by blackmetal » Sun Aug 18, 2019 3:09 pm

Hello,
i have configured openvpn in my ros and this is my openvpn client config :
client
dev tun
proto tcp
remote sub.domain.tld 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-128-CBC
auth SHA1
auth-user-pass
#redirect-gateway def1
route 172.16.96.0 255.255.224.0
verb 3
<ca>
ca
</ca>
<cert>
cert
</cert>
<key>
key
</key>


but when i want to connect to openvpn config i get following error :
Sun Aug 18 09:06:52 2019 Connection reset, restarting [0]
Sun Aug 18 09:06:52 2019 SIGUSR1[soft,connection-reset] received, process restarting
Sun Aug 18 09:06:52 2019 MANAGEMENT: >STATE:1566103012,RECONNECTING,connection-reset,,,,,
Sun Aug 18 09:06:52 2019 Restart pause, 80 second(s)
Sun Aug 18 09:08:12 2019 MANAGEMENT: >STATE:1566103092,RESOLVE,,,,,,
Sun Aug 18 09:08:12 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]158.58.185.245:1194
Sun Aug 18 09:08:12 2019 Socket Buffers: R=[65536->65536] S=[65536->65536]
Sun Aug 18 09:08:12 2019 Attempting to establish TCP connection with [AF_INET]158.58.185.245:1194 [nonblock]
Sun Aug 18 09:08:12 2019 MANAGEMENT: >STATE:1566103092,TCP_CONNECT,,,,,,
Sun Aug 18 09:08:13 2019 TCP connection established with [AF_INET]158.58.185.245:1194
Sun Aug 18 09:08:13 2019 TCP_CLIENT link local: (not bound)
Sun Aug 18 09:08:13 2019 TCP_CLIENT link remote: [AF_INET]158.58.185.245:1194
Sun Aug 18 09:08:13 2019 MANAGEMENT: >STATE:1566103093,WAIT,,,,,,
Sun Aug 18 09:08:13 2019 MANAGEMENT: >STATE:1566103093,AUTH,,,,,,
Sun Aug 18 09:08:13 2019 TLS: Initial packet from [AF_INET]158.58.185.245:1194, sid=eec299ea ee9ac823
Sun Aug 18 09:08:13 2019 VERIFY OK: depth=1, CN=domain.com
Sun Aug 18 09:08:13 2019 VERIFY KU OK
Sun Aug 18 09:08:13 2019 Validating certificate extended key usage
Sun Aug 18 09:08:13 2019 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Sun Aug 18 09:08:13 2019 VERIFY EKU OK
Sun Aug 18 09:08:13 2019 VERIFY OK: depth=0, CN=*.domain.tld
Sun Aug 18 09:08:14 2019 Connection reset, restarting [0]
Sun Aug 18 09:08:14 2019 SIGUSR1[soft,connection-reset] received, process restarting
Sun Aug 18 09:08:14 2019 MANAGEMENT: >STATE:1566103094,RECONNECTING,connection-reset,,,,,
Sun Aug 18 09:08:14 2019 Restart pause, 160 second(s)




as a note i have assigned static ip to each user in my radius and when i remove route line from client config it will works!
any idea?
Thanks,

Post Reply