Automation Scripts

From Coolscript
Revision as of 18:50, 18 March 2022 by Admin (talk | contribs) (→‎VPN with X509 Client Certificates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

These scripts can be very useful if you deploy new cloud VM's or new Raspberry installations.
You can save a lot of time as these scripts are configuring the applications for you.

Here are the most 3 powerful samples:


Simple Firewall together with a simple IPS (Intrusion Prevention System)

Install and configure nftables together with Fail2nft with one single command,
The solution is good to serve localhost, it works on any recent Debian/Ubuntu/Raspian releases.

  • Sample of a Standard Installation

Please see Advanced Installation for more options

wget -q https://coolscript.org/download/scripts/fail2nft/fail2nft-installer.sh -O \
/tmp/fail2nft-installer.sh && bash \
/tmp/fail2nft-installer.sh -a

VPN with X509 Client Certificates

  • Express installation and configuration of OpenVPN, this has been tested on any recent Debian/Ubuntu/Raspian releases.
  • Enjoy the wide range of supported OpenVPN Clients, with this Script you may quickly establish a VPN connection, compatible with Windows, Linux, Mac OS, Android and iOS
  • Install and configure OpenVPN together with a Certification Authority and X509 Client Certificates with one single command,
  • Check the Use Case here to see how the setup could possibly look

Default Example: Install OpenVPN using the default port 1194 on UDO, uses then network 10.8.0.0/24 on eth0

wget -q https://coolscript.org/download/scripts/openvpn/openvpn-install.sh -O \
/tmp/openvpn-install.sh && bash \
/tmp/openvpn-install.sh -a -r

Advanced Installation: Install OpenVPN using the default port 1194 on UDP, uses then network 192.168.200.0/24 on eth0

wget -q https://coolscript.org/download/scripts/openvpn/openvpn-install.sh -O \
/tmp/openvpn-install.sh && bash \
/tmp/openvpn-install.sh -a -r -u \
-o 1194 \
-n 192.168.200.0 \
-p udp \
-m 24

Customized Proxy

Install and configure Squid with a single command, optional you may setup username and password too

  • Sample
wget -q https://coolscript.org/download/scripts/squid/squid-installer.sh -O \
/tmp/squid-installer.sh && bash /tmp/squid-installer.sh
  • Advanced Sample, setup username and a random password, allow ip x.x.x.x to access
wget -q https://coolscript.org/download/scripts/squid/squid-installer.sh -O \
/tmp/squid-installer.sh && bash /tmp/squid-installer.sh \
-u username \
-i x.x.x.x