Hi everyone,
I'm getting this log:
TCP connect to [AF_INET] MY_PUBBLIC_IP:PORT_NUMBER failed: Unknown error
My network is the following one:
MODEM: ip class 192.168.0.1/24
ROUTER Wireless: ip class 192.168.10.1/24
My main LAN: 192.168.1.1/24
Raspberry PI: ip 192.168.1.115
The router wireless has IP 192.168.0.2, the main LAN router has ip 192.168.0.3 and the problem I'm facing is when I'm trying to connect with the Router Wireless
This is the server file:
dev tun
proto tcp
port MY_PORT
#My certificate
topology subnet
server 10.8.0.0 255.255.255.0
# server and remote endpoints
ifconfig 10.8.0.1 10.8.0.2
# Add route to Client routing table for the OpenVPN Server
push "route 10.8.0.1 255.255.255.255"
# Add route to Client routing table for the OPenVPN Subnet
push "route 10.8.0.0 255.255.255.0"
# your local subnet
push "route 192.168.1.0 255.255.255.0 "
# Set your primary domain name server address for clients
push "dhcp-option DNS 192.168.1.1"
push "dhcp-option DNS 8.8.8.8"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
keepalive 10 120
remote-cert-tls client
tls-version-min 1.2
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
cipher AES-256-CBC
auth SHA256
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
log /var/log/openvpn.log
verb 1
# Generated for use by PiVPN.io
This is the client file:
client
dev tun
proto tcp
remote MY_PUBBLIC_IP PORT
resolv-retry infinite
nobind
persist-key
persist-tun
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server_xxx name
cipher AES-256-CBC
auth SHA256
comp-lzo
verb 1
Am I wrong with something?