Schedule wireless interface up and down
-
Hi all!
I have a wireless interface on my pfSense firewall, that I use to share internet access with business visitors. It works fine.
But now I would like to make it visible only when the office is meeting. I tried to do something using Cron and I got some success doing:
When the office closes, I can successfully shutdown the hostapd, disable and destroy the wireless interface and restart the dhcpd service.
But I have no success when the office opens again, because pfSense creates a alias for my run0 wireless interface, something like run0_wlan0 and I have no idea of how to recreate it.
I investigating how reproduce via (php) script the actions of disable interface and apply actions via web interface, and the reverse, enable the wireless interface and apply actions via web interface, to after this, queue this php script via cron to enable/disable wireless interface when the office open/close.
Any suggestions?