Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Cronjob to change the WiFi password
« previous
next »
Print
Pages: [
1
]
Author
Topic: Cronjob to change the WiFi password (Read 2370 times)
tonnoplast
Newbie
Posts: 9
Karma: 0
Cronjob to change the WiFi password
«
on:
March 02, 2018, 02:47:05 pm »
I want to setup a cronjob that changes the WiFi password on a daily basis (the password will be shown on an external display).
I can put together a script that changes the relevant
hostapd.conf
, but I'm wondering: is there a better way to do it in OPNsense? Something like a higher level CLI?
Same for restarting the network interface for which the password has been modified: what's the OPNsense way to do it from a script?
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Cronjob to change the WiFi password
«
Reply #1 on:
March 03, 2018, 09:35:44 pm »
you need to update config.xml and then you have to reload the interface configuration for the wireless interface.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Cronjob to change the WiFi password