Skip to content

Instantly share code, notes, and snippets.

@PiBa-NL
PiBa-NL / CUSTOM_rules.inc-pfSense
Created December 29, 2016 00:54
adding custom rules on pfSense not supported by webgui
<?php
// Add this file as: /usr/local/pkg/CUSTOM_rules.inc
// pfSense will automatically add the rules defined here into the rules it loads in pf
require_once("util.inc");
function CUSTOM_rules_generate_rules($type) {
// called by filter.inc when pfSense rules generation happens
$rules = "";
@PiBa-NL
PiBa-NL / checkout freebsd ports on windows.txt
Created April 1, 2017 16:49
how to checkout freebsd ports on windows
Windows has problems with files containing special characters so some files cannot be checked out.
To work around most of the problems with this a sparse checkout can be done.
This does asume you dont need to patch those specific files as that wont work this way...
Enable sparse-checkout:
git config core.sparsecheckout true
Make a file .git\info\sparse-checkout with the folowing content:
!japanese/prn
!*:*