NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
h0u5er
Jul 03, 2020Aspirant
RBR40 VPN setting
Hi, guys.
I have RBR40 build V2.5.1.16 and I enable the VPN feature which can be working successfully all the time.
In recently, I wonder the RBR40 master router can assign the specify IP address, netmask, gateway, and DNS server to my laptop when I connect to the VPN by tunnelblick? It's possible can I ssh to my master router and configure the openvpn service?
The following is the configuration related to VPN:
----------------------------------------------------------------------------------
houser@Housers-MacBook-Pro netgear.tblk.folder % tree
.
├── ca.crt
├── client.conf
├── client.crt
├── client.key
└── dhcp-client-request.sh
0 directories, 5 files
----------------------------------------------------------------------------------
houser@Housers-MacBook-Pro netgear.tblk.folder % cat client.conf
client
dev tap
proto udp
remote some_ddns_domain_here port_number_here
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
cipher AES-128-CBC
comp-lzo
verb 3
script-security 2
up dhcp-client-request.sh
---------------------------------------------------------------------------------
houser@Housers-MacBook-Pro netgear.tblk.folder % cat dhcp-client-request.sh
#!/bin/bash
/usr/sbin/ipconfig set tap0 dhcp
----------------------------------------------------------------------------------
6 Replies
Sort By
h0u5er wrote:I have RBR40 build V2.5.1.16 and I enable the VPN feature which can be working successfully all the time.
In recently, I wonder the RBR40 master router can assign the specify IP address, netmask, gateway, and DNS server to my laptop when I connect to the VPN by tunnelblick? It's possible can I ssh to my master router and configure the openvpn service?
----------------------------------------------------------------------------------
Perhaps you could expand on the question. The Orbi router does use DHCP to assign an IP address, netmask, gateway, and DNS to the client computer. Are you asking if you can configure these values? The Orbi router/satellite do not support ssh connections. They do support telnet, which can be activated from the Orbi debug web page (http://orbilogin.net/debug.htm)
- h0u5erAspirant
My Orbi has enabled the DHCP for the local user and it will assign an IP address, netmask, gateway, and DNS server to the local client. BTW, the gateway address and DNS address is the same as Orbi's address itself.
But my question is can we assign another gateway address and DNS server settings to the client who will be requesting network information through a VPN connection? I mean I plan to use the other address (NOT Orbi's address) to act as a gateway and DNS for the VPN client.
OpenVPN probably has a way to do this. Notice the line in the config:
up dhcp-client-request.sh
I believe that you can substitute parameters in this file for the IP, subnet mask, gateway, DNS, etc. I have looked (briefly) at the OpenVPN User Documentation, and felt like "Alice down the rabbit hole." Holy Moly. Bewildering.
https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/
While substituting a different DNS seems to pose little problem, I would be very cautious of messing with the subnet and gateway values. Unless there is an existing computer connected to the Orbi with an IP address that matches, then the VPN connection will have "no way out". I do not see how this can be possible.
Since you are on a Mac platform, maybe the folks at tunnelblick could offer advice?