I installed openVPN on my server. By default, the port 1194 is choosen.
The problem is that when I am running:
sudo nmap -sU localhost -p 1194
It shows me:
PORT STATE SERVICE
1194/udp closed openvpn
I was trying to:
sudo /sbin/iptables -I INPUT -p udp -m udp --dport 1194 -j ACCEPT
By running
sudo netstat -uapn | grep openvpn
I am getting:
udp 0 0 172.16.0.5:1194 0.0.0.0:* 6788/openvpn
But nothing changed. Any idea?
Change your
nmap
to172.16.0.5
instead oflocalhost
or change the--local
option on theopenvpn
command line or config. By default,openvpn
should listen on all interfaces forudp/1194
.Running:
could result in: