Can I force router changes from linux CLI, like port forwarding with UPNP?
0
votes
0
answers
178
views
I have seen that I can use miniupnp to apply port forwarding on my router, and I would like to find another tool to apply DNS and/or DHCP settings on the router. Is this possible?
My goal is to have a script that once executed, it configures a VPN and DNS on my server, and also configures the router accordingly ( VPN port forward and DNS pointing to my LAN server ) without any user intervention.
Thank you for your help!
**Edit::**
I have found an interesting python tool that can help me discover UPNP devices on my network and also the UPNP services they provide. I have also understood that I need theLANHostConfigManagement UPNP service in order to modify DNS and DHCP settings on the router.
Unfortunately neither of my 3 router devices provide this service, and for obvious reasons. I have understood the risks to allow for such devices for an app to change such settings.
But then is there another way how/work around to achieve this convenience?
My goal is to have a Raspberry Pi running PiHole or AdGuard Home (DNS) and that can be easily installed in a home network. Is there a creative mind that think of and show me of a way to automate DNS configuration without having the user do it himself, while keeping it safe and local?
Asked by xiki
(1 rep)
Aug 1, 2021, 05:18 PM
Last activity: Aug 3, 2021, 06:21 AM
Last activity: Aug 3, 2021, 06:21 AM