Im' trying to configure an openvpn server on my new raspberry and after configuring and creating two profiles (one "split" for only local connection and one "full" for full connection with server's internet access too) i can successfully connect to the server with both client configs but i cannot access lan devices nor internet on my server's connection. I have already read all topics on this topic searching in google but with no luck on any attempts =(
here are the information:
router ip: 192.168.1.1
rPi ip: 192.168.1.100
OpenVPN Version: 2.3.4-5+deb8u1
server.conf
Code: Select all
port 1194
proto udp
dev tun
ca *
cert *
key *
dh *
tls-server
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
tls-cipher TLS-DHE-RSA-WITH-AES-256-CBC-SHA
server 10.8.0.0 255.255.255.0
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
cipher AES-256-CBC
auth SHA512
key-direction 0
comp-lzo yes
max-clients 5
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 300
log /var/log/openvpn.log
verb 1
mute 20
Code: Select all
client
dev tun
proto udp
resolv-retry infinite
key-direction 1
nobind
persist-key
persist-tun
remote ***MYSERVERADDRESS***
cipher AES-256-CBC
auth SHA512
tls-client
tls-cipher DHE-RSA-AES256-SHA
comp-lzo yes
mute-replay-warnings
verb 3
mute 20
Code: Select all
client
dev tun
proto udp
resolv-retry infinite
key-direction 1
nobind
persist-key
persist-tun
remote ***MYSERVERADDRESS***
route-nopull
route 0.0.0.0 192.0.0.0 net_gateway
route 64.0.0.0 192.0.0.0 net_gateway
route 128.0.0.0 192.0.0.0 net_gateway
route 192.0.0.0 192.0.0.0 net_gateway
route 192.168.1.0 255.255.255.0
cipher AES-256-CBC
auth SHA512
tls-client
tls-cipher DHE-RSA-AES256-SHA
comp-lzo
mute-replay-warnings
verb 3
mute 20