Pfsense: Turn off USB Hotspot at Night

We have a backup USB Hotspot to use when our main internet is off or slow (happens often). The problem is that even though when people are not in the office, regular communications (for example the automatic PING gateway monitoring or the connection of our IP system to a remote server) still continues and our data goes down the drain.


So I’m interested on automatically disconecting the USB drive every night at 6 pm and turning it back on every morning at 7 am. 


0 18 * * * * root /sbin/ifconfig ppp0 down
0 7 * * * * root /sbin/ifconfig ppp0 up

Note that after turning it back on, I like to reboot the router to ensure that the USB Hotspot syncs with the ISP. Maybe its not necessary but it doesn't do any harm

Leave a Reply

Your email address will not be published. Required fields are marked *