Raspberry pi client soemthing unabel to conenct to server?

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
Afik_123
OpenVpn Newbie
Posts: 1
Joined: Thu Feb 23, 2023 10:48 am

Raspberry pi client soemthing unabel to conenct to server?

Post by Afik_123 » Thu Feb 23, 2023 10:56 am

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,

Post Reply