summaryrefslogtreecommitdiffstats
path: root/etc/rc.update_bogons.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-xetc/rc.update_bogons.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
new file mode 100755
index 0000000..36e625b
--- /dev/null
+++ b/etc/rc.update_bogons.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Update bogons file
+# Part of the pfSense project
+# www.pfsense.com
+
+/etc/rc.conf_mount_rw
+/usr/bin/fetch -q -o /etc/bogons "http://www.cymru.com/Documents/bogon-bn-nonagg.txt"
+/etc/rc.conf_mount_ro
+/sbin/pfctl -t bogons -T replace -f /etc/bogons
OpenPOWER on IntegriCloud