This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// target: pfSense | |
// script to create VIPs of type ipalias from a alias list of ip addresses on | |
// fill the 3 variables below | |
include_once("config.inc"); | |
$aliasToConvert = "MyHostAliasList"; | |
$interfaceToSet = "wan"; | |
$subnetsize = 24; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $static_output; | |
$static_output = ""; | |
print "Updating\n"; | |
include_once('config.inc'); | |
include_once('haproxy.inc'); | |
haproxy_custom_php_install_command(); | |
print "Updating Done\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once("auth.inc"); | |
require_once("config.inc"); | |
require_once("certs.inc"); | |
require_once("authgui.inc");// this ensures user is authenticated in pfSense. | |
$a_cert = $config['cert']; | |
$a_cacert = $config['ca']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
easyenable.php | |
Copyright (C) 2015 PiBa-NL | |
Copy and use it as you like. | |
*/ | |
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); | |
header("Cache-Control: post-check=0, pre-check=0", false); | |
header("Pragma: no-cache"); | |
require_once("config.inc"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen MyStats | |
mode http | |
bind 0.0.0.0:1000 | |
stats enable | |
stats uri / | |
# if authentication is wanted | |
acl auth_ok http_auth(stats-auth) | |
http-request auth unless auth_ok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HAProxy config below allows my browser to access: http://192.168.0.120/#q=test | |
# note that im using the tld 'nl' for the host header which is what google alway defaults to for me anyway.. | |
global | |
maxconn 1000 | |
stats socket /tmp/haproxy.socket level admin | |
daemon | |
listen HAProxyLocalStats |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
!*:* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
maxconn 300 | |
log 192.168.0.40 local0 debug | |
stats socket /tmp/haproxy.socket level admin | |
gid 80 | |
nbproc 1 | |
chroot /var/empty | |
daemon | |
# | |
# Example configuration for HAProxy 1.5-dev19 for using SNI |
OlderNewer