cancel
Showing results for 
Search instead for 
Did you mean: 
joebhoy
Contributor
304 Views
Message 1 of 4

Can u Script firewall changes on smarthub

I want to turn off/on port rules frequently and the interface is a bit of a pain for doing it manually. Anyway to script these changes at all ?

 

 

0 Ratings
Reply
3 REPLIES 3
Distinguished Sage
Distinguished Sage
296 Views
Message 2 of 4

Re: Can u Script firewall changes on smarthub

Not as such, but I think you can save the config so just create a number of different configs to reload.

0 Ratings
Reply
Jonkarra
Expert
271 Views
Message 3 of 4

Re: Can u Script firewall changes on smarthub

Nothing official although I'd guess there is some structure to how rules are created via the web interface you might be able to do it via HTTP POST commands. Word of warning though the firmware can change without notice and your script will suddenly stop working.
0 Ratings
Reply
sjonez
Contributor
247 Views
Message 4 of 4

Re: Can u Script firewall changes on smarthub

If you have UPnP enabled on your hub then you can script rules using that as it's the same universal standard across all routers. There should be plenty of command line tools or C#/Java classes to enable scripting.


e.g. here's a java one: https://upnp-portmapper.sourceforge.io/

0 Ratings
Reply