having problems with OpenVPN on my Rasperry Pi Model 3B.
I used this script for setting up OpenVPN.
https://github.com/Nyr/openvpn-install
But when I try to connect from outside I get "connection refused".
I checked with nmap and the port seems to be open but somehow blocked?
This is the output of netstat:
As you can see here the port is open but I do not see it using nmap:$ sudo netstat -tulpn | grep 12940
tcp 0 0 192.168.0.33:12940 0.0.0.0:* LISTEN 4624/openvpn
This is my server.conf:# nmap localhost
Starting Nmap 7.70 ( https://nmap.org ) at 2019-10-15 18:19 BST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00010s latency).
Other addresses for localhost (not scanned): ::1
Not shown: 995 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https
3306/tcp open mysql
3389/tcp open ms-wbt-server
Nmap done: 1 IP address (1 host up) scanned in 2.04 seconds
local 192.168.0.33
port 12940
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 192.168.0.1"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem