openvpn not listening on port 1194

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
dannyolsen1980
OpenVpn Newbie
Posts: 2
Joined: Tue Mar 01, 2022 12:58 pm

openvpn not listening on port 1194

Post by dannyolsen1980 » Tue Mar 01, 2022 1:03 pm

hi can anybody help to crack this nut? - it seems like a common issue, but nowhere i can find the solution. I would expect openvpn to listen on port 1194 but it is not. Nobody seems to give a good answer on how to fix this..

I have tried this on buster 64 and ubuntu - the result is the same...

i am using my own server.conf and i am starting openvpn like this : sudo systemctl start openvpn@server

[oconf=]
local 192.168.1.216
port 1194
proto udp
dev tun
ca /etc/openvpn/certificates/ca.crt
cert /etc/openvpn/certificates/server.crt
key /etc/openvpn/certificates/server.pem
dh /etc/openvpn/certificates/dh3072.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
log /etc/openvpn/openvpn.log
explicit-exit-notify 1
[/oconf]

root@raspberrypi:/etc/openvpn/certificates# netstat -tulpen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 127.0.0.1:41345 0.0.0.0:* LISTEN 1000 14720 1012/node
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 13769 724/sshd: /usr/sbin
tcp6 0 0 :::22 :::* LISTEN 0 13771 724/sshd: /usr/sbin
udp 0 0 192.168.1.216:1194 0.0.0.0:* 0 26975 4518/openvpn
udp 0 0 0.0.0.0:5353 0.0.0.0:* 108 14347 411/avahi-daemon: r
udp 0 0 0.0.0.0:68 0.0.0.0:* 0 13776 835/dhcpcd
udp 0 0 0.0.0.0:60154 0.0.0.0:* 108 14349 411/avahi-daemon: r
udp6 0 0 :::5353 :::* 108 14348 411/avahi-daemon: r
udp6 0 0 :::52207 :::* 108 14350 411/avahi-daemon: r

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: openvpn not listening on port 1194

Post by TinCanTech » Tue Mar 01, 2022 2:25 pm

dannyolsen1980 wrote:
Tue Mar 01, 2022 1:03 pm
udp 0 0 192.168.1.216:1194 0.0.0.0:* 0 26975 4518/openvpn
:geek: clean your glasses.

dannyolsen1980
OpenVpn Newbie
Posts: 2
Joined: Tue Mar 01, 2022 12:58 pm

Re: openvpn not listening on port 1194

Post by dannyolsen1980 » Tue Mar 01, 2022 2:41 pm

aha... shouldnt this line "udp 0 0 192.168.1.216:1194 0.0.0.0:* 0 26975 4518/openvpn" include LISTEN?

when i try to connect with my client i just get a timeout and port is not open when i check it with nmap from outsiden the raspberry either....

but i take your answer as this is a silly question and everything looks good right?

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: openvpn not listening on port 1194

Post by TinCanTech » Tue Mar 01, 2022 2:54 pm

UDP is not the same as TCP, UDP is a connection-less protocol.

Your server is using UDP:1194, perhaps you forgot port forwarding ?

Post Reply