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
| # =================== YOUR DATA ======================== | |
| SERVER_NAME="some-server-name" | |
| SERVER_IP="111.111.11.11" | |
| USER="someuser" | |
| SUDO_PASSWORD="secret-password-one" | |
| MYSQL_ROOT_PASSWORD="secret-password-two" |
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
| # Rules for transparent proxying | |
| iptables -N NO_PROXY -t nat | |
| iptables -A NO_PROXY -t nat -d 0.0.0.0/8 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 10.0.0.0/8 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 127.0.0.0/8 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 169.254.0.0/16 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 172.16.0.0/12 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 192.168.0.0/16 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 224.0.0.0/4 -j ACCEPT | |
| iptables -A NO_PROXY -t nat -d 240.0.0.0/4 -j ACCEPT |
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
| 23.21.150.121:3478 | |
| iphone-stun.strato-iphone.de:3478 | |
| numb.viagenie.ca:3478 | |
| s1.taraba.net:3478 | |
| s2.taraba.net:3478 | |
| stun.12connect.com:3478 | |
| stun.12voip.com:3478 | |
| stun.1und1.de:3478 | |
| stun.2talk.co.nz:3478 | |
| stun.2talk.com:3478 |
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
| 23.21.150.121:3478 | |
| iphone-stun.strato-iphone.de:3478 | |
| numb.viagenie.ca:3478 | |
| s1.taraba.net:3478 | |
| s2.taraba.net:3478 | |
| stun.12connect.com:3478 | |
| stun.12voip.com:3478 | |
| stun.1und1.de:3478 | |
| stun.2talk.co.nz:3478 | |
| stun.2talk.com:3478 |
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
| <?php | |
| /** | |
| * Class TorDetector | |
| * | |
| * Helps to detect if visitors are using a Tor browser to surf the website. | |
| * | |
| * Thanks to https://trac.torproject.org/projects/tor/wiki/doc/TorDNSExitList | |
| */ | |
| class TorDetector |
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/sh | |
| ### BEGIN INIT INFO | |
| # Provides: firewall | |
| # Required-Start: $local_fs $remote_fs | |
| # Required-Stop: $local_fs $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: iptables firewall | |
| # Description: Custom iptables firewall |
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
| # Assumes the following: | |
| # Hostname: TEST1 | |
| # Domain: EXAMPLE.COM (you probably don't want to use your public domain for your AD domain... but that's out of scope for this example) | |
| # Admin user: setupuser | |
| # Admin pass: He11oW0rld! | |
| # Machine will go into the default computers ou (root) | |
| # Domain admins will get local admin rights on login | |
| # All users will get mobile accounts (offline login) | |
| # All data will be stored locally (no UNC home dir) | |
| # Default shell will be bash |
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
| #install deps | |
| apt-get update | |
| apt-get install -y gnutls-bin iptables libnl-route-3-200 libseccomp2 libwrap0 openssl curl --no-install-recommends | |
| buildDeps=" \ | |
| autoconf \ | |
| autogen \ | |
| ca-certificates \ | |
| gcc \ | |
| gperf \ | |
| libgnutls28-dev \ |
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 | |
| ## List all manually installed packages on a debian/ubuntu system | |
| ## manually installed means: | |
| ## 1. not pre-installed with the system | |
| ## 2. not marked auto-installed by apt (not dependencies of other | |
| ## packages) | |
| ## Note: pre-installed packages that got updated still needs to be | |
| ## filtered out. |