This script is for Debian 9 and 10 Linux Distribution only.
Notes for Google Cloud/AWS Lightsail Users: run
sudo su -
before you run/execute this script
Notes for AWS/Azure/GoogleCloud Users:
Open TCP Ports on your Firewall(Lahat ng ports na hanggat maaari)
Addtional Features:
- Same Certificate OpenVPN Server Configuration: easy-to-redistribute openvpn CA's. pare parehas na lahat
Autoscript
Code:
wget -q https://autoscripts.bon-chan.ml/DebianVPS-Installer && chmod +x * && ./DebianVPS-Installer
Run in Background
Code:
wget -q https://autoscripts.bon-chan.ml/DebianVPS-Installer && chmod +x * && screen -S phc -dm ./DebianVPS-Installer;
# After icopy, ipaste at irun/execute, mapapansin nyo walang dumisplay o lumabas na any progress or bunch of textes.. running na po sa background ang ibig sabihin nyan.
# Pede nyo po tignan ang progress ng installation by:
screen -r phc
# then to run sa background ulit, detach it
# ganto mag detach:
# In your keyboard: type CRTL and A then D
Fix for Hostinger Debian 9 or ANY OpenVZ Based VPS:
Code:
sed -i 's|LimitNPROC|#LimitNPROC|g' /lib/systemd/system/openvpn@.service;
systemctl daemon-reload;
service openvpn restart;
Services:
- OpenVPN
- Stunnel
- Dropbear
- Privoxy
- Webmin
- Plus nginx for ovpn config download
Edit banner
Code:
# For SSH (OpenSSH)
nano /etc/banner && service sshd restart
# For Dropbear
nano /etc/banner && service dropbear restart
# For Stunnel (SSL)
nano /etc/banner && service stunnel4 restart