Page 1 of 1

Raspberry pi client soemthing unabel to conenct to server?

Posted: Thu Feb 23, 2023 10:56 am
by Afik_123
Hello,
I have a project with pi zero that need to connect to my openvpn server
something after a reboot , it unable to connect to the server (then I reboot it again - and it's connected OK)
there is no connection problems (other units are connected Ok , for a long time,)

is it something in the conf file ?

Code: Select all

client
dev tun

proto tcp
remote MyServer ServerPort

#resolv-retry infinite
nobind

#user nobody
#group nogroup

persist-key
persist-tun

route 192.168.200.0 255.255.255.0
# Path to your certificates (ca.crt, client.crt, and client.key)
ca /home/pi/Documents/CRT/ca.crt
cert /home/pi/Documents/CRT/client.crt
key /home/pi/Documents/CRT/client.key

remote-cert-tls server
cipher AES-128-CBC
auth SHA1
auth-user-pass /etc/openvpn/.secrets
#redirect-gateway def1
pull-filter ignore "redirect-gateway"
verb 3
someone suggest me that the pi is trying to connect before he get internet connection - but I don't think so because I can see in the server someone he is "trying" to connect
so I maybe need to close the failed connections before try again
can this be the problem ? if so , how can I f fix this ?

Thanks,