Jump to content
  • 0

How to setup raspberry pi between modem and wifi router?

Rate this question



I have a RPi4 with the community build of OpenWRT installed and working with wireguard connected to my dedicated torguard IP. What I'd like to do is put the Pi in between my LTE modem and my wifi router (gl.inet ar7500s). How do I need to setup the IP addresses on the pi and the wifi router?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

hello, you simply need to setup your dhcp server to send your rpi's IP address as gateway to clients.

If you use dhcp on your rpi, then click on edit you lan interface, navigate to tab dhcp server and click on advanced settings, lets say your rpi's IP is, then add dhcp options, 3 is for gateway, 6 is for dns, here you can find more if you need.


in the screenshot above, if your rpi is DNS server too, then you can add simply 6, too.

I set it to forced as I am not sure your another dhcp server is switched off, you should have only 1 dhcp server in your network.

That would be it. Before you set it all up, set your IP to static and set your rpi's address as gateway then you immediately see if it works. If everything is ok, you can setup your dhcp.

hope it helps

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...