Quantcast
Channel: Active questions tagged openvpn - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 827

Unable to connect to OpenVPN server, can't reach port but can see it with netstat

$
0
0

I have just recently installed OpenVPN and am planning to make an OpenVPN server. I used a script (https://git.io/vpn) to install the server and copied/edited the sample file for the OpenVPN server. I am using a VM on Oracle Linux 8, it is connected to a virtual network.

When I try to reach the port from my computer, it is closed. The only way I can see the port is actually there is by using netstat:

[root@instance-20220818-0925 server]# netstat -uapn | grep openvpnudp        0      0 0.0.0.0:1194            0.0.0.0:*                           358057/openvpn 

but nc and nmap can't see the port.

OpenVPN log:

● openvpn-server@server.service - OpenVPN service for server   Loaded: loaded (/usr/lib/systemd/system/openvpn-server@.service; enabled; vendor preset: disabled)   Active: active (running) since Fri 2022-08-19 18:16:23 GMT; 2s ago     Docs: man:openvpn(8)           https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage           https://community.openvpn.net/openvpn/wiki/HOWTO Main PID: 353310 (openvpn)   Status: "Initialization Sequence Completed"    Tasks: 1 (limit: 3355442)   Memory: 1.0M   CGroup: /system.slice/system-openvpn\x2dserver.slice/openvpn-server@server.service└─353310 /usr/sbin/openvpn --status /run/openvpn-server/status-server.log --status-version 2 --suppress-timestamps --cipher AES-256-GCM --ncp-ciphers AES-256-GCM:AES-128-GCM:AES-256-CBC:AES-128-CBC:BF-CBC --config server.confAug 19 18:16:23 instance-20220818-0925 openvpn[353310]: Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authenticationAug 19 18:16:23 instance-20220818-0925 openvpn[353310]: TUN/TAP device tap0 openedAug 19 18:16:23 instance-20220818-0925 openvpn[353310]: TUN/TAP TX queue length set to 100Aug 19 18:16:23 instance-20220818-0925 openvpn[353310]: Socket Buffers: R=[212992->212992] S=[212992->212992]Aug 19 18:16:23 instance-20220818-0925 openvpn[353310]: UDPv4 link local (bound): [AF_INET][undef]:1194Aug 19 18:16:23 instance-20220818-0925 openvpn[353310]: UDPv4 link remote: [AF_UNSPEC]Aug 19 18:16:23 instance-20220818-0925 openvpn[353310]: MULTI: multi_init called, r=256 v=256Aug 19 18:16:23 instance-20220818-0925 openvpn[353310]: IFCONFIG POOL: base=10.0.0.0 size=256, ipv6=0Aug 19 18:16:23 instance-20220818-0925 openvpn[353310]: IFCONFIG POOL LISTAug 19 18:16:23 instance-20220818-0925 openvpn[353310]: Initialization Sequence Completed~

server.conf:

port 1194proto udp4dev tapca ca.crtcert server.crtkey server.key  dh dh.pemifconfig-pool-persist ipp.txtserver-bridge 10.0.0.158 255.255.255.0 10.0.0.0 10.0.0.255keepalive 10 120tls-auth tc.key 0 cipher AES-256-CBCpersist-keypersist-tunstatus openvpn-status.logverb 3explicit-exit-notify 1

Viewing all articles
Browse latest Browse all 827

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>