Help ! OpenVPN , Ubuntu install 22.04 - Working intermittant

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
Toro2222
OpenVpn Newbie
Posts: 5
Joined: Thu Nov 03, 2016 12:39 am

Help ! OpenVPN , Ubuntu install 22.04 - Working intermittant

Post by Toro2222 » Wed Jun 28, 2023 4:47 pm

I need help here, going mad.
Got to fix, wife is frustrated.


Working OpenVPN installation stopped working.
I can connect to the server, and access the server from client.
I can not route from server to i.e. Internet.

Clients should have all traffic directed through the VPN.

So, here is the twist.. without changing anything.. it will work for some seconds.. then not...

Please help.

Tor-Olav


systemctl status openvpn gives :
● openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: active (exited) since Sun 2023-06-18 13:37:51 CEST; 1 week 3 days ago
Main PID: 1135 (code=exited, status=0/SUCCESS)
CPU: 1ms

juni 18 13:37:51 Flirgot systemd[1]: Starting OpenVPN service...
juni 18 13:37:51 Flirgot systemd[1]: Finished OpenVPN service.



Server config

port 1194
proto udp
dev tun
user nobody
group nogroup
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "redirect-gateway def1 bypass-dhcp"
server-ipv6 fd42:42:42:42::/112
#tun-ipv6
#push tun-ipv6
#push "route-ipv6 2000::/3"
#push "redirect-gateway ipv6"
dh none
ecdh-curve prime256v1
tls-crypt tls-crypt.key
crl-verify crl.pem
ca ca.crt
cert server_K1ZPW3B52Axcaznf.crt
key server_K1ZPW3B52Axcaznf.key
auth SHA256
cipher AES-128-GCM
ncp-ciphers AES-128-GCM
tls-server
tls-version-min 1.2
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
client-config-dir /etc/openvpn/ccd
status /var/log/openvpn/status.log
verb 3




[olog][/var/log/openvpn/status.log]
root@Flirgot:/etc/openvpn# tail -f /var/log/openvpn/status.log
OpenVPN CLIENT LIST
Updated,2023-06-28 18:45:16
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
GLOBAL STATS
Max bcast/mcast queue length,1
END
l Address,Last Ref
fd42:42:42:42::2,ringnot_vpn1,213.236.205.234:52519,2023-06-28 18:45:49
10.8.0.2,ringnot_vpn1,213.236.205.234:52519,2023-06-28 18:45:52
GLOBAL STATS
Max bcast/mcast queue length,1
END

Toro2222
OpenVpn Newbie
Posts: 5
Joined: Thu Nov 03, 2016 12:39 am

Re: Help ! OpenVPN , Ubuntu install 22.04 - Working intermittant

Post by Toro2222 » Wed Jun 28, 2023 4:52 pm

And log file when it fails :

tail: /var/log/openvpn/status.log: file truncated
OpenVPN CLIENT LIST
Updated,2023-06-28 18:51:10
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
ringnot_vpn1,46.15.179.227:8374,2806,2815,2023-06-28 18:51:02
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
fd42:42:42:42::2,ringnot_vpn1,46.15.179.227:8374,2023-06-28 18:51:02
10.8.0.2,ringnot_vpn1,46.15.179.227:8374,2023-06-28 18:51:02
GLOBAL STATS
Max bcast/mcast queue length,1
END

Post Reply