BierDav
Hello,
I want to setup a vpn tunnel for a network share. So I started with this for my server:
local 192.168.6.199
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
verb 3
crl-verify crl.pem
explicit-exit-notify
push "route 192.168.6.0 255.255.255.0 vpn_gateway"
And my client as follows:
client
dev tun
proto udp
remote quickme.at 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
verb 3
<ca>
Now all requests, but the 192.168.6.x, get sent to the local gateway which is exactly what I wanted. But when I try to ping 192.168.6.199: The packet gets handed to the remote gateway 10.8.0.1. But I never get an response back and I really don't know why not. The OpenVPN Server should as far as I now behave like a gateway for all clients.
TinCanTech
The reason it does not work is because you have not read the howto.
BierDav
Where to find the "howto"?
By the way, there was an error with the formatting and so the last line of my server config wasn't visible. Now it is. Have you meant that?
300000
You server dont have ipforward and NAS so it will stop at virtual ip only. Until you make ipforward and NAR it will work