What's new

DHCP static addresses For VPN Clients

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Deekers

New Around Here
TLDR: I'm trying to assign a static IP address to each of my VPN clients. I need to be able to reliably connect to them by a LAN IP address that does not change.

Long version: I have a raspberry pi with a 4G dongle that automatically connects to my VPN when powered on. I also have a laptop that I use to connect to the VPN, and from there I connect to the raspberry pi. I need to make it as simple as possible so that the RPi lan address is always the same. So I basically need the router to assign it the same address every time it connects to the VPN just the same way I'm able to assign computers hardwired to the router (or via wifi) with DHCP.

The raspberry pi is on a drone. The computer is the control PC with the navigation software (as well as receives streaming video live from the PI). Once they are connected to the VPN, I start the control software which SSHs a command to the RPi that starts a program on the pi that controls the drone. It automatically connects to the IP that sent the command via SSH. So the IP address of the computer isn't nearly as important as the IP address of the RPi.

I know of no way to do this with the current asuswrt-merlin, but I'm sure there must be a way. Please enlighten me.

Also, (and unrelated) an external ip checker for the DDNS updater would also be a nice addition for us folks operating in a double-NAT system. Thanks!
 
Sounds to me you need to assign a static IP address at the RPi. Not manually assign it at the router using DHCP. This is done within RPi software. Then, it will have that static IP regardles of anything else.

Static and manuall IP are not the same thing. I had a catastrophy once when the router, after a power outage, failed to assign manuall addresses to my systems which were on test (normally, they have static IP addresses).

As for the double Nat: I was also crying about that. Then, I realized my systems would be better (re)organized if I move DDNS to routers. So, I wrote my own script solving every possible problem I could think of :). Hmm, actually, I have had every single one of these problems and needed them solved.

I will likely publish my DoubleDDNS script to help others, but this step needs preparation.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top