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

    How to Schedule Internet Access?

    Firewalling
    7
    35
    13.4k
    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.
    • N
      Nonsense
      last edited by

      O.K., so I used doktornotor's advise on how to create an alias (thank you), but do I really need to create the alias for all the devices for which I don't want the schedule blocking to apply as almabes did, or can I just create and use the alias for the devices I want blocked per the schedule as doktornotor seems to imply?  It seems to me that the former method would turn into a bit of a headache, as I would have to add an address to the alias every time I add a new device I don't want blocked to my network.  Would checking 'not' under Source in my firewall rule accomplish this or do I really need to create two rules?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        No, you just need one alias for the blocked devices, used to allow access on the schedule. You set up another allow rule without any schedule with source using NOT that alias.

        1 Reply Last reply Reply Quote 0
        • N
          Nonsense
          last edited by

          Thanks–I've got to go to work now, so I'll take this matter up again this evening.

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            Now, please understand that unless you have a complete control over the IPs used on all machines, anyone can bypass the limited access by grabbing an IP outside of the limited hosts alias.

            1 Reply Last reply Reply Quote 0
            • A
              almabes
              last edited by

              @doktornotor:

              Now, please understand that unless you have a complete control over the IPs used on all machines, anyone can bypass the limited access by grabbing an IP outside of the limited hosts alias.

              Thus the reason for me doing it the way I did it.
              I have way more than 5 devices on my network.  Establishing an alias with the devices was no big deal.  I also set up DHCP reservations to keep my unlimited access device IPs from potentially changing.  Security and control require administration.

              My old way was even more effective. 
              I unplugged the cable leading to their switch.  Killed access immediately.

              1 Reply Last reply Reply Quote 0
              • N
                Nonsense
                last edited by

                Mmmm . . . yes, well I suppose that if there was a way to use a device's MAC address instead of its IP address the blocking might be more effective.  I'm just trying to discourage my kids from staying up all night playing online games–if they are savvy enough to figure out that changing their computer's IP address might allow internet access late at night, I'll find out about it after not too long anyway.  Even using almabes method has holes in it, as if an allowed device is shut off then someone could use its IP address to gain access.  I might just try to use one rule to block all my devices as I seldom stay up late myself at my age.

                I assume that using these rules won't affect my default rules (e.g., "bogon," etc.)?

                Also, I highlighted the days of the week of the current month and set the times of days in the scheduler; will this keep the schedule in perpetuity or do I need to do something else?

                Thanks!

                1 Reply Last reply Reply Quote 0
                • A
                  almabes
                  last edited by

                  Mine just stay up all night playing LAN games, now…until I threaten to flip the breaker to their area, or wake their asses up at 7:00 AM with Tchaikovsky's 1812 overture.  Cannon fire at full volume can be effective alarm clocks.

                  Now that there's a managed switch in their area, I could just shutdown their ports, too, but I like Tchaikovsky.

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by

                    If they're savvy enough to change an IP address they're savvy enough to change a MAC address.  At least they'll be learning something.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 0
                    • 2
                      2chemlud Banned
                      last edited by

                      If you (DHCP) hand out IPs only to known MACs (don't allow new MACs and static ARP) and they don't know valid MACs on the subnet not always turned on: How would they get internet access?

                      1 Reply Last reply Reply Quote 0
                      • DerelictD
                        Derelict LAYER 8 Netgate
                        last edited by

                        All they have to do is listen for a while and they'll have all the info they need.  Sure, they might have to wait for a window when the spoofable MAC is offline.  It is best classified as an inconvenience, but by no means is it meaningful security.

                        Chattanooga, Tennessee, USA
                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

                        1 Reply Last reply Reply Quote 0
                        • P
                          P3R
                          last edited by

                          @2chemlud:

                          …and they don't know valid MACs on the subnet...

                          Ping-sweep and check the arp table. Then they know.

                          You need to isolate them to a separate network (physical or VLAN) AND prevent access to the unlimited network to have a chance.

                          1 Reply Last reply Reply Quote 0
                          • 2
                            2chemlud Banned
                            last edited by

                            By all means: If I find them whole night at their computer "doing homework" I would think about something like that.

                            But if I find them now and then with an offline game or translating some wiki articles for a software project I sleep pretty well with my design of security. I'm not the NSA.

                            And if they have considerably higher computing skills than I do, they deserve to be online :-D

                            There has to be some basic trust between kids and parents, otherwise your education is completely wrong. As on the level of society: If you think you have to (are entitled to)  watch every step and move there is something severly going wrong on a very basic level…

                            1 Reply Last reply Reply Quote 0
                            • P
                              P3R
                              last edited by

                              @2chemlud:

                              There has to be some basic trust between kids and parents, otherwise your education is completely wrong.

                              It's you that talk about restricting your network, I only answered your question… ::)

                              Micromanaging the network down to MAC-address level means work and a hassle as soon as anything needs to be changed. That administrative effort could instead be put on logging that restrictions are obeyed. If that proves to not be enough, a separate VLAN is more effective and less work than trying to filter out specific nodes in a common LAN.

                              For me all of this is still some years away. My oldest is only 5 yet. :)

                              1 Reply Last reply Reply Quote 0
                              • D
                                doktornotor Banned
                                last edited by

                                @P3R:

                                For me all of this is still some years away. My oldest is only 5 yet. :)

                                1 Reply Last reply Reply Quote 0
                                • F
                                  firewalluser
                                  last edited by

                                  @P3R:

                                  For me all of this is still some years away. My oldest is only 5 yet. :)

                                  I wrote my first code when I was 7 taught by a computer science graduate with one of the first ZX81's. Never underestimate the learning potential of young minds if its kept fun & entertaining especially if they dont know its supposed to be hard otherwise they will put up psychological barriers to learning.

                                  Capitalism, currently The World's best Entertainment Control System and YOU cant buy it! But you can buy this, or some of this or some of these

                                  Asch Conformity, mainly the blind leading the blind.

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    P3R
                                    last edited by

                                    @firewalluser:

                                    Never underestimate the learning potential of young minds…

                                    I'm not and I'll be the one doing the teaching. I'd love to have another network administrator in the family, even if that means I'll eventually be outsmarted.

                                    I started with a DIY ZX81 as well but I was a little older… ;)

                                    1 Reply Last reply Reply Quote 0
                                    • N
                                      Nonsense
                                      last edited by

                                      O.K. guys, after all the philosophical debate and the fun, let's get back to my questions, please:

                                      I assume that using these rules won't affect my default rules (e.g., "bogon," etc.)?

                                      Also, I highlighted the days of the week of the current month and set the times of days in the scheduler; will this keep the schedule in perpetuity or do I need to do something else?

                                      And, I also assume that I can use a single rule if I just block all devices on my network according to a schedule?

                                      Thanks.

                                      1 Reply Last reply Reply Quote 0
                                      • 2
                                        2chemlud Banned
                                        last edited by

                                        https://forum.pfsense.org/index.php?topic=94678.msg526090#msg526090

                                        Don't use scheduled BLOCK rules, broken!

                                        Schedule ALLOW rules!

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          almabes
                                          last edited by

                                          Without a screen shot of ALL your rules, I couldn't say for sure.
                                          The bogon rules are on the WAN interface.
                                          But the point of adding rules to the firewall is to NOT have the default activity.

                                          Post a screen shot of your schedule, but sounds like it's set up to run in perpetuity.

                                          A single rule will do the job, if you have a single entity on a single interface you wish to regulate.

                                          Again, don't schedule a BLOCK rule.  Schedule a PASS rule.  The firewall won't kill states if you have a block rule that becomes effective.  It WILL kill states if you have a PASS rule that disables.

                                          And if you have late to all night LAN gaming issues, Wagner's Die Valkyrie, or Tchaikovsky's 1812 overture played at high volume in the early morning tends to nip that in the bud pretty quick, at least around here.  I haven't had to fire up the turntable in the morning in at least a couple of months.

                                          1 Reply Last reply Reply Quote 0
                                          • N
                                            Nonsense
                                            last edited by

                                            I prefer the 1958 Dorati recording.  :-*

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