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
| # Service | |
| mode server | |
| proto udp | |
| port 1194 | |
| persist-key 1 | |
| fast-io 1 | |
| float 1 | |
| verb 3 | |
| mute-replay-warnings 1 | |
| script-security 3 |
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/env ash | |
| # For use with OpenVPN learn-address (and other things you adapt it to) | |
| # Takes the following as paramters: | |
| # openvpn-dnsupdate.sh operation address hostname | |
| # Example: openvpn-dnsupdate.sh update 10.8.1.50 test.pyronexus.lan | |
| # This creates an A record and a PTR for the IP 10.8.1.50 to test.pyronexus.lan | |
| # This will replace any hostname provided by OpenVPN and will rewrite it to your FWDZONE specified below. | |
| # E.g. test.test.pyronexus.com would be rewritten to test.vpn.pyronexus.lan with the config below. |
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/env bash | |
| blocklist="http://pgl.yoyo.org/adservers/serverlist.php?hostformat=squid-dstdom-regex&showintro=0&startdate%5Bday%5D=&startdate%5Bmonth%5D=&startdate%5Byear%5D=&mimetype=plaintext" | |
| blocklist_savefile="/etc/squid/adblock.list" | |
| printf "Retrieving block list... " | |
| curl -sSL "$blocklist" > $blocklist_savefile && printf "Done\n\n" | |
| printf "Reloading squid... " | |
| squid -k reconfigure && printf "Done\n" |
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/env bash | |
| # List variables | |
| blocklist_name="Spamhaus" # MUST BE UNIQUE IN IPTABLES | |
| blocklist="http://www.spamhaus.org/drop/drop.lasso" | |
| # No more variables. Edit below here at your own risk. | |
| PATH="/sbin:$PATH" | |
| printf "Retrieving block list: %s... " "$blocklist" | |
| list=`curl -sSL "$blocklist" | cut -d ";" -f 1 | grep -v "^$"` |
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 | |
| # Config | |
| working_dir="/opt/factorio-server" | |
| factorio="bin/x64/factorio" | |
| start_cmd="systemctl start factorio-server" | |
| stop_cmd="systemctl stop factorio-server" | |
| # End config | |
| # Variables |
NewerOlder