OPNsense
  • 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 2379 times)

tonnoplast

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
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.)
    • View Profile
    • Personal Homepage
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
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2