Help accessing openvpn local lan send and receive.

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking
Author Message
crizq0
DD-WRT Novice


Joined: 22 Mar 2018
Posts: 5

PostPosted: Tue May 21, 2019 18:07    Post subject: Help accessing openvpn local lan send and receive. Reply with quote
Sorry I am new at this and my lingo might not make sense.

At the moment the client-side (192.168.1) is able to connect to the openVPN router (kong build 34900) and access the local lan (192.168.43.1) by IP only. Able to ping IP addresses. However, the client-side can not see the network. I can map drives only by IP and not by name.

What do I need to do to assign a local lan IP to the client so that the client can send and receive as if it is on that local lan?

Below is some extra information.

Client: 192.168.1.1
Wan: 73. . ._ _7
VPN Router: 192.168.43.1

Additional Config:
push "route 192.168.43.0 255.255.255.0"
push "dhcp-option DNS 192.168.43.1"
push "dhcp-option domain EHVC"

Firewall:
iptables -t nat -A POSTROUTING -o $(nvram get wan iface) -j MASQUERADE


Log:
Code:

IV_GUI_VER="net.tunnelblick.tunnelblick_5180_3.7.8__build_5180)"
20190521 10:35:22 192.168.43.116:63541 Control Channel: TLSv1.2 cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 2048 bit RSA
20190521 10:35:22 I 192.168.43.116:63541 [EHVC1] Peer Connection Initiated with [AF_INET]192.168.43.116:63541
20190521 10:35:22 I EHVC1/192.168.43.116:63541 MULTI_sva: pool returned IPv4=10.8.0.3 IPv6=(Not enabled)
20190521 10:35:22 EHVC1/192.168.43.116:63541 OPTIONS IMPORT: reading client specific options from: /tmp/openvpn_cc_7f07f54c66ae17e5.tmp
20190521 10:35:22 EHVC1/192.168.43.116:63541 MULTI: Learn: 10.8.0.3 -> EHVC1/192.168.43.116:63541
20190521 10:35:22 EHVC1/192.168.43.116:63541 MULTI: primary virtual IP for EHVC1/192.168.43.116:63541: 10.8.0.3
20190521 10:35:23 EHVC1/192.168.43.116:63541 PUSH: Received control message: 'PUSH_REQUEST'
20190521 10:35:23 EHVC1/192.168.43.116:63541 SENT CONTROL [EHVC1]: 'PUSH_REPLY redirect-gateway def1 route 192.168.43.0 255.255.255.0 dhcp-option DNS 192.168.43.1 dhcp-option domain EHVC route-gateway 10.8.0.1 topology subnet ping 10 ping-restart 120 ifconfig 10.8.0.3 255.255.255.0 peer-id 1 cipher AES-256-GCM' (status=1)
20190521 10:35:23 EHVC1/192.168.43.116:63541 Data Channel: using negotiated cipher 'AES-256-GCM'
20190521 10:35:23 EHVC1/192.168.43.116:63541 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
20190521 10:35:23 EHVC1/192.168.43.116:63541 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 4373
Location: Netherlands

PostPosted: Tue May 21, 2019 18:20    Post subject: Reply with quote
For (local) DNS besides pushing the DNS server like you do you, you also have to tell DNSMasq to listen on tun2, add to DNSMasq options:
interface=tun2

Mind you this is a routed (tun) setup, so there is no such thing as windows discovery, for that you need a bridged (tap) setup.

In my signature is an OPENVPN setup guide explaining it all

_________________
Routers:Netgear R7800, Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
Install guide Linksys EA6900: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=291230
OpenVPN Policy Based Routing guide: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321686
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN Server Setup:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Wireguard Setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1183135
crizq0
DD-WRT Novice


Joined: 22 Mar 2018
Posts: 5

PostPosted: Tue May 21, 2019 19:01    Post subject: Reply with quote
EGC,

Thanks for replying, I actually used your guide to help set this up and it was a lot of help! Thanks again for all your work.

I do have DNSmasq set to listen to tun2.

That sucks that there is no windows discovery. I have this program that I use on my computer that requires a mapped drive to the server SQL database. Which I am able to map using the IP address however, the program I use takes 20-30 seconds to receive/process information that normally should take a couple of seconds.

I'll have to read into the TAP set up to see if that will work instead.

Chris
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum