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

OpenVPN TCP: connect to [AF_INET]10.0.2.15:110 failed: Connection refused

$
0
0

I have two virtual machines with which I am trying to establish OpenVPN connection (debian1 as server, debian2 as client), but keep getting the error mentioned in the title. I need specifically tcp on port 110. The host computer's firewall is completely off. SSH is active.

Client configuration file:

dev tunremote 10.0.2.15ifconfig 172.168.107.20 172.168.107.10secret static.keycipher AES-256-CBCproto tcp-clientport 110verb 3

Server configuration file:

dev tunifconfig 172.168.107.10 172.168.107.20secret static.keycipher AES-256-CBCproto tcp4-serverport 110verb 3

systemctl status openvpn@client:

Loaded: loaded (/lib/systemd/system/openvpn@.service; enabled-runtime; vendor preset: enabled)     Active: active (running) since Sun 2022-06-12 07:06:26 EDT; 1s ago       Docs: man:openvpn(8)             https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage             https://community.openvpn.net/openvpn/wiki/HOWTO   Main PID: 2985 (openvpn)     Status: "Pre-connection initialization successful"      Tasks: 1 (limit: 1102)     Memory: 824.0K        CPU: 9ms     CGroup: /system.slice/system-openvpn.slice/openvpn@client.service└─2985 /usr/sbin/openvpn --daemon ovpn-client --status /run/openvpn/client.status 10 --cd /etc/o>Jun 12 07:06:26 debian2 ovpn-client[2985]: TCP/UDP: Preserving recently used remote address: [AF_INET]10.0.2.>Jun 12 07:06:26 debian2 ovpn-client[2985]: Socket Buffers: R=[131072->131072] S=[16384->16384]Jun 12 07:06:26 debian2 ovpn-client[2985]: Attempting to establish TCP connection with [AF_INET]10.0.2.15:110>Jun 12 07:06:26 debian2 ovpn-client[2985]: TCP: connect to [AF_INET]10.0.2.15:110 failed: Connection refusedJun 12 07:06:26 debian2 ovpn-client[2985]: net_route_v4_del: 0.0.0.0/1 via 172.168.107.10 dev [NULL] table 0 >Jun 12 07:06:26 debian2 ovpn-client[2985]: net_route_v4_del: 128.0.0.0/1 via 172.168.107.10 dev [NULL] table >Jun 12 07:06:26 debian2 ovpn-client[2985]: Closing TUN/TAP interfaceJun 12 07:06:26 debian2 ovpn-client[2985]: net_addr_ptp_v4_del: 172.168.107.20 dev tun0Jun 12 07:06:26 debian2 ovpn-client[2985]: SIGUSR1[connection failed(soft),init_instance] received, process r>lines 1-23

systemctl start openvpn@server.service:

● openvpn@server.service - OpenVPN connection to server     Loaded: loaded (/lib/systemd/system/openvpn@.service; enabled-runtime; vendor preset: enabled)     Active: active (running) since Sun 2022-06-12 08:37:29 EDT; 5s ago       Docs: man:openvpn(8)             https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage             https://community.openvpn.net/openvpn/wiki/HOWTO   Main PID: 6694 (openvpn)     Status: "Pre-connection initialization successful"      Tasks: 1 (limit: 1102)     Memory: 1.0M        CPU: 15ms     CGroup: /system.slice/system-openvpn.slice/openvpn@server.service└─6694 /usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /e>Jun 12 08:37:29 debian1 ovpn-server[6694]: Outgoing Static Key Encryption: Cipher 'AES-256-CBC' initializ>Jun 12 08:37:29 debian1 ovpn-server[6694]: Outgoing Static Key Encryption: Using 160 bit message hash 'SH>Jun 12 08:37:29 debian1 ovpn-server[6694]: Incoming Static Key Encryption: Cipher 'AES-256-CBC' initializ>Jun 12 08:37:29 debian1 ovpn-server[6694]: Incoming Static Key Encryption: Using 160 bit message hash 'SH>Jun 12 08:37:29 debian1 ovpn-server[6694]: TUN/TAP device tun0 openedJun 12 08:37:29 debian1 ovpn-server[6694]: net_iface_mtu_set: mtu 1500 for tun0Jun 12 08:37:29 debian1 ovpn-server[6694]: net_iface_up: set tun0 upJun 12 08:37:29 debian1 ovpn-server[6694]: net_addr_ptp_v4_add: 172.168.107.10 peer 172.168.107.20 dev tu>Jun 12 08:37:29 debian1 ovpn-server[6694]: Socket Buffers: R=[131072->131072] S=[16384->16384]Jun 12 08:37:29 debian1 ovpn-server[6694]: Listening for incoming TCP connection on [AF_INET][undef]:110

What can be making this error?


Viewing all articles
Browse latest Browse all 823

Trending Articles



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