You are not logged in.

#1 2018-02-23 20:57:02

Jverm
Member
Registered: 2018-02-23
Posts: 1

OpenVPN issues, cannot connect to clients

Hey all, I have openvpn server running on a RPi at home, I can connect to any client through the vpn fine on my android phone, yet my arch linux machine cannot.

The arch machine can connect to the router at 192.168.1.1 through google chrome, so its partly working but I cannot seem to connect to any machine via ssh.

Here is my server.conf on the RPi

dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/server_26XJKOqRKWTQIU4t.crt
key /etc/openvpn/easy-rsa/pki/private/server_26XJKOqRKWTQIU4t.key
dh /etc/openvpn/easy-rsa/pki/dh2048.pem
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.1 "
# Set your primary domain name server address for clients
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
# 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

and here is my .ovpn file

client
dev tun
proto udp
remote **.**.**.*** 1194
resolv-retry infinite
nobind
persist-key
persist-tun
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server_26XJKOqRKWTQIU4t name
cipher AES-256-CBC
auth SHA256
comp-lzo
verb 1

The keys are specified in the .ovpn file. I just didnt paste them for obvious reasons

Let me know what other information is required.

Last edited by Jverm (2018-02-23 21:00:20)

Offline

#2 2018-02-24 22:24:59

chowbok
Member
Registered: 2017-11-27
Posts: 20

Re: OpenVPN issues, cannot connect to clients

push "route 192.168.1.1 "

Shouldn't that have a subnet?

Offline

Board footer

Powered by FluxBB