OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: cakeman on March 19, 2024, 06:52:18 PM

Title: Force WAN renew from Windows box via Telnet/SSH
Post by: cakeman on March 19, 2024, 06:52:18 PM
I've got a remote site that I'm at fairly often that has no internet. In order to have internet on the network, I USB tether my phone to the WAN port of my OPNSense system, then have to login to the Webui and force a WAN renew.

While working at the site, I frequently have to disconnect my phone and go do tasks.. so every time I come back, its reconnecting, going to the WebUI and renewing.

I can see on the monitor port that OPNSense knows Ive reconnected.. but it won't automatically renew the connection for an IP. I've tried to find a method of doing this, including asking here earlier, and made no headway.

So I have a second idea:

I'd like to create a user on OPNSense that hopefully only has access via telnet/ssh and only to a limited command set.. ideally whatever the CLI command is to renew IP's.

Then on my windows box I'd like to create a script that with a single click on the desktop, will login to that account via telnet/ssh, run the WAN renew command, then exit.

Is this possible? If not, any other suggestions?

thanks.
Title: Re: Force WAN renew from Windows box via Telnet/SSH
Post by: bartjsmit on March 20, 2024, 07:52:36 AM
Use a travel router and tether it over your phone WiFi hotspot - that way you can move around with the phone as long as you stay in WiFi range.