OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: the1corrupted on November 15, 2024, 04:12:11 PM

Title: "Reload" WAN interface via script/command line
Post by: the1corrupted on November 15, 2024, 04:12:11 PM
Hello, what is the command line equivalent to the "Refresh" on the interfaces overview?

(https://i.imgur.com/Bxgt1ho.png)
Title: Re: "Reload" WAN interface via script/command line
Post by: franco on November 15, 2024, 05:11:27 PM
Hi,

# configctl interface reconfigure <id>

<id> is "wan" most likely, otherwise "optX" or in the worst case "lan". You can see the identifier from the assignments page.


Cheers,
Franco
Title: Re: "Reload" WAN interface via script/command line
Post by: dseven on November 15, 2024, 05:24:14 PM
Or right there in the screenshot of the Overview page ;)
Title: Re: "Reload" WAN interface via script/command line
Post by: franco on November 15, 2024, 08:22:06 PM
To be fair the command line equivalent was the question :D