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

    Shedule wireless power

    Scheduled Pinned Locked Moved Wireless
    6 Posts 3 Posters 3.0k Views
    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.
    • S
      stormeporm
      last edited by

      I was wondering is there a way to power down my wifi at night?
      Or turn down the broadcasting power to null.
      Ive got an alpha wireless mini pc card.

      1 Reply Last reply Reply Quote 0
      • M
        Mattofsweden
        last edited by

        I suppose a Cron job would do the trick.

        First you gotta check if the function is supported. On my Intel WiFi card I get nothing from the command below.

        sysctl -a | grep rfkill
        
        

        and get something like```

        dev.iwl.0.rfkill: 0

        
        then you can setup a Cronjob with```
        sysctl dev.iwl.0.rfkill=1
        ```or something like it and another one which disables the rfkill option in the morning.
        
        It's possible```
        ifconfig wlan0 down
        ```brings the radio down too, I'm not really sure. Try it out and see what happens.

        Regards,
        Mattias

        IT Teacher & Networking Consultant

        1 Reply Last reply Reply Quote 0
        • S
          stormeporm
          last edited by

          I have tried it my card does not support the rfkill command.

          the ifconfig wlan0 down didn't do anything no output but also my wireless keeps working.

          Could there be another way?

          1 Reply Last reply Reply Quote 0
          • M
            Mattofsweden
            last edited by

            @stormeporm:

            I have tried it my card does not support the rfkill command.

            the ifconfig wlan0 down didn't do anything no output but also my wireless keeps working.

            Could there be another way?

            You gotta check the actual WLAN interface name.

            It could be like "ath0_wlan0" or something of the like.
            Check the actual interface name in "Interfaces/Assign".

            so, in my case it would be

            ifconfig ath0_wlan1 down
            

            Regards,
            Mattias

            IT Teacher & Networking Consultant

            1 Reply Last reply Reply Quote 0
            • E
              ericab
              last edited by

              is your desired outcome to literally powerdown the RF transmission, or to block the AP's access to the gateway, and grant access again at another ?

              if you just want to block gateway access, then yes:

              Firewall –-> Schedules

              then make a rule:

              Firewall ---> Rules ---> Floating
              and make sure to select the schedule you defined in the last step under "Advanced features" on your rule

              1 Reply Last reply Reply Quote 0
              • S
                stormeporm
                last edited by

                @Mattofsweden
                I did check it with the actual interface name. But no difference.
                Thanx for the help I think I'll check again if I buy a new network card when wireless n is supported in freebsd

                @ ericab
                No its not about blocking the access.
                I just don't want to be burning useless energy and filling my house with wifi radiation for nothing.

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