Skip to content

Instantly share code, notes, and snippets.

@jonas-schievink
Last active June 7, 2018 16:21
Show Gist options
  • Save jonas-schievink/836ed7fb3f4ce1a6d53c39a2290d1ae1 to your computer and use it in GitHub Desktop.
Save jonas-schievink/836ed7fb3f4ce1a6d53c39a2290d1ae1 to your computer and use it in GitHub Desktop.
pfSense patches for use with the "System Patches" package
--- /etc/sysctl.conf 2018-05-27 18:31:54.209664000 +0200
+++ /etc/sysctl.conf 2018-05-27 18:53:09.071470000 +0200
@@ -1,9 +1,11 @@
# $FreeBSD$
#
# This file is read when going to multi-user and its contents piped thru
# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
#
+hw.acpi.power_button_state=NONE
+
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
--- Update dynamic DNS every 10 minutes (if IP changed)
+++ /etc/crontab 2018-06-07 18:14:37.275686000 +0200
@@ -28,6 +28,9 @@
# Created: May 27, 2018, 6:20 pm
#
+# Update Dynamic DNS frequently, since pfSense isn't informed about WAN IP changes
+*/10 * * * * root /usr/bin/nice -n20 /etc/rc.dyndns.update
+
1,31 0-5 * * * root /usr/bin/nice -n20 adjkerntz -a
1 3 1 * * root /usr/bin/nice -n20 /etc/rc.update_bogons.sh
*/60 * * * * root /usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 sshlockout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment