Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Schedule wireless interface up and down

    General pfSense Questions
    1
    1
    465
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fabiolg
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.