Please read official documentation from PfSense project here:
This file contains hidden or 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
| user www www; | |
| worker_processes 1; | |
| events { | |
| # After increasing this value You probably should increase limit | |
| # of file descriptors (for example in start_precmd in startup script) | |
| worker_connections 1024; | |
| } | |
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # ./makeitrain.sh bitcoin-qt.crashdump.core | |
| # __ _ _ __ ___ __ ____ ____ | |
| # / ( \/ )/ _\ / __)/ _\/ ___(_ ) | |
| # ( O ) (/ ( (_ / \___ \ )( | |
| # \__(_/\_\_/\_/\___\_/\_(____/(__) | |
| # | |
| # Donations: | |
| # btc: 34fDhMUkvGVr1s2jQvhwmBfw1xqjstrLed |
This file contains hidden or 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
| # /etc/pf.conf | |
| ext_if="xn0" | |
| webjail="10.10.60.1" | |
| webports = "{http, https}" | |
| int_tcp_services = "{domain, ntp, smtp, www, https, ftp, ssh, 55536}" | |
| int_udp_services = "{domain, ntp}" | |
| icmp_types = "echoreq" | |
| set skip on lo |
This file contains hidden or 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
| #### General PFCTL Commands #### | |
| $ pfctl -d disable # packet-filtering | |
| $ pfctl -e enable # packet-filtering | |
| $ pfctl -q # run quiet | |
| $ pfctl -v -v # run even more verbose | |
| #### Loading PF Rules #### | |
| $ pfctl -f /etc/pf.conf # load /etc/pf.conf | |
| $ pfctl -n -f /etc/pf.conf # parse /etc/pf.conf, but dont load it | |
| $ pfctl -R -f /etc/pf.conf # load only the FILTER rules | |
| $ pfctl -N -f /etc/pf.conf # load only the NAT rules |
This file contains hidden or 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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # "Whattomine GPU Hash time calculator" | |
| # | |
| # This is not for CPU or ASIC calculations. | |
| # Author: Brady Shea | |
| # Email: Use github user: bmatthewshea or gist comments | |
| # Origin: https://gist.github.com/bmatthewshea/90b120722e0561dd235adcdc231b6765 | |
| # |
This file contains hidden or 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
| #!/usr/local/bin/bash | |
| # Author: Sudiro | |
| # Create related symbolic link to your "xmr-stak-cpu" binary and "/etc/config.conf" file or adapt your own params accordingly. | |
| ############################################################################################################################## | |
| case "$1" in | |
| start) | |
| xmr-stak-cpu /etc/config.conf & | |
| echo $!>/var/run/xmr-stak-cpu.pid | |
| ;; | |
| stop) |
This file contains hidden or 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
| # Modified for OpenBSD | |
| # Assumes being root | |
| # Requires curl to be installed, wget can also be used, relevant commands need to be adjusted. acme.sh supports both. | |
| # Configured to use Cloudflare DNS for verification | |
| # How to use "acme.sh" to set up Lets Encrypt without root permissions | |
| # See https://github.com/Neilpang/acme.sh for more | |
| # This assumes that your website has a webroot at "/var/www/<domain>" | |
| # I'll use the domain "EXAMPLE.com" as an example |
NewerOlder