Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #170734
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Limiting internet access by time |
| Date | 2016-08-05 16:10 +0200 |
| Message-ID | <s2NYZ-7N-1@gated-at.bofh.it> (permalink) |
| References | <s2AS5-af-3@gated-at.bofh.it> <s2KRs-6ky-15@gated-at.bofh.it> <s2LaO-6JM-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri 05 Aug 2016 at 12:00:28 +0100, Lisi Reisz wrote: > On Friday 05 August 2016 11:40:28 Brian wrote: > > > > How essential is this? cron could > > > > ip route add default via <gateway_IP> > > > > at specific times between 9pm and 9am and then remove the default route. > > If the machine isn't up all the time it seems unnecessary to me. > > Perhaps he wants to stop his children/grandchildren/house guests surfing the > web at 3:00 am. Possibly. Let us look at this from a different angle. If the machine is given a fixed address it negates the need for dhcp checking, If, additionally, no gateway to the internet is specified there would be no access to the internet at any time. For an always-on machine cron jobs could switch routing at 9am and 9pm. If the machine was rebooted after 9pm there would be no internet. A reboot after 9am presents a problem. This could be solved by having cron check every five minutes between 9am and 9pm and providing a gateway to the internet. Sticking with the idea of using a systemd service file, the script it runs would check the time and alter the routing table when necessary. Neither cron nor iptables need come into the picture.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Limiting internet access by time Mark Fletcher <mark27q1@gmail.com> - 2016-08-05 02:10 +0200
Re: Limiting internet access by time Lars Noodén <lars.nooden@gmail.com> - 2016-08-05 09:30 +0200
Re: Limiting internet access by time Mark Fletcher <mark27q1@gmail.com> - 2016-08-05 17:40 +0200
Re: Limiting internet access by time Brian <ad44@cityscape.co.uk> - 2016-08-05 12:50 +0200
Re: Limiting internet access by time Lisi Reisz <lisi.reisz@gmail.com> - 2016-08-05 13:10 +0200
Re: Limiting internet access by time Brian <ad44@cityscape.co.uk> - 2016-08-05 16:10 +0200
Re: Limiting internet access by time David Wright <deblis@lionunicorn.co.uk> - 2016-08-05 18:00 +0200
Re: Limiting internet access by time Mark Fletcher <mark27q1@gmail.com> - 2016-08-05 18:00 +0200
Re: Limiting internet access by time Dan Ritter <dsr@randomstring.org> - 2016-08-05 19:50 +0200
Re: Limiting internet access by time Brian <ad44@cityscape.co.uk> - 2016-08-05 21:10 +0200
Re: Limiting internet access by time Brian <ad44@cityscape.co.uk> - 2016-08-06 03:40 +0200
Re: Limiting internet access by time Mark Fletcher <mark27q1@gmail.com> - 2016-08-06 07:30 +0200
Re: Limiting internet access by time Dan Ritter <dsr@randomstring.org> - 2016-08-07 03:00 +0200
Re: Limiting internet access by time Mark Fletcher <mark27q1@gmail.com> - 2016-08-07 05:40 +0200
Re: Limiting internet access by time Brian <ad44@cityscape.co.uk> - 2016-08-07 20:20 +0200
Re: Limiting internet access by time Mark Fletcher <mark27q1@gmail.com> - 2016-08-08 02:10 +0200
Re: Limiting internet access by time Dan Ritter <dsr@randomstring.org> - 2016-08-09 19:30 +0200
Re: Limiting internet access by time Stefan Monnier <monnier@iro.umontreal.ca> - 2016-08-09 21:20 +0200
Re: Limiting internet access by time Dan Ritter <dsr@randomstring.org> - 2016-08-10 15:40 +0200
Re: Limiting internet access by time Stefan Monnier <monnier@iro.umontreal.ca> - 2016-08-10 17:00 +0200
Re: Limiting internet access by time Dan Ritter <dsr@randomstring.org> - 2016-08-10 18:10 +0200
Re: Limiting internet access by time Stefan Monnier <monnier@iro.umontreal.ca> - 2016-08-10 22:40 +0200
Re: Limiting internet access by time Brian <ad44@cityscape.co.uk> - 2016-08-05 20:50 +0200
Re: Limiting internet access by time Mark Fletcher <mark27q1@gmail.com> - 2016-08-06 07:30 +0200
Re: Limiting internet access by time Mark Fletcher <mark27q1@gmail.com> - 2016-08-05 16:30 +0200
Re: Limiting internet access by time pv29@gatech.edu - 2016-08-08 01:10 +0200
Re: Limiting internet access by time Curt <curty@free.fr> - 2016-08-08 09:00 +0200
Re: Limiting internet access by time pascalv@sdf.org - 2016-08-08 10:30 +0200
Re: Limiting internet access by time Karol Augustin <karol@augustin.pl> - 2016-08-08 12:00 +0200
csiph-web