Page 1 of 1

Openvpn server (Ping lan client)

Posted: Thu Jun 25, 2020 4:10 pm
by geppo
Good morning, I hope I wasn't wrong ...
I have an ubuntu server with openvpn "server"
my client connects to the openvpn "server" network ... everything ok
now I would like to access my client's subnet ..
is it difficult to achieve?
Place my setup (Simple)

Server: ip lan 10.0.1.0/24

Server config
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
push "redirect-gateway def1 bypass-dhcp"
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
explicit-exit-notify


Client ip lan 192.168.50.0/24
Client config
client
dev tun
proto udp
remote xxx.xxx.xxx.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3
<ca>

With this configuration I can access with my client ... in my lan (All perfect)

I would just like to log into the client lan to access some ip resources

Thanks for any help

Re: Openvpn server (Ping lan client)

Posted: Thu Jun 25, 2020 4:16 pm
by TinCanTech
There is a section in the Howto which describes exactly what you need.

Re: Openvpn server (Ping lan client)

Posted: Thu Jun 25, 2020 4:22 pm
by geppo
Thanks for your quick reply .. I have tried a lot, but I have not found anything .. you could kindly post a link, thank you very much

Re: Openvpn server (Ping lan client)

Posted: Thu Jun 25, 2020 4:27 pm
by Pippin
Here comes the spoon: "openvpn howto"
;)

Re: Openvpn server (Ping lan client)

Posted: Thu Jun 25, 2020 4:50 pm
by TinCanTech
Pippin wrote:
Thu Jun 25, 2020 4:27 pm
Here comes the spoon
There is no spoon :mrgreen:
geppo wrote:
Thu Jun 25, 2020 4:22 pm
you could kindly post a link
Thistle get you started:
viewtopic.php?f=30&t=22603

Re: Openvpn server (Ping lan client)

Posted: Thu Jun 25, 2020 5:04 pm
by geppo
Yes ! This is my spoon
Hahaha !! Thank you
Gep..