OPENVPN connect to lan

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
origin2
OpenVpn Newbie
Posts: 2
Joined: Mon Jul 16, 2018 2:56 pm

OPENVPN connect to lan

Post by origin2 » Mon Jul 16, 2018 2:57 pm

i'm trying to access a disk on our local lan. The disk's address is 192.168.0.104 The open vpn's address is 192.168.0.105 The client's ip after connecting to openvpn is 10.8.0.10

Here's are the settings for client:

Code: Select all

client
key-direction 1
dev tun
proto udp
remote xxx.xxx.xxx.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
verb 3
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
<tls-auth>
</tls-auth>
Here's the config for the server:

Code: Select all

port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key  # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
tls-auth ta.key 0 # This file is secret
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log         openvpn.log
verb 4
explicit-exit-notify 1
And static routing as set on my tp link router
Destination Network Subnet Mask Default Gateway
10.8.0.0 255.255.255.0 192.168.0.105
Ipv4 forward is enabled, i can browse the net just fine, however, i cannot access 192.168.0.1 which is the routers location, nor can i reach the target.

origin2
OpenVpn Newbie
Posts: 2
Joined: Mon Jul 16, 2018 2:56 pm

Re: OPENVPN connect to lan

Post by origin2 » Sat Jul 21, 2018 2:32 pm

You guys suck,
openvpn is a shitty software
Solved the issue by going to pptp and getting 192.168 ip address.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OPENVPN connect to lan

Post by TinCanTech » Sat Jul 21, 2018 3:24 pm


Post Reply