This file contains 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
#Squid Proxy 3.1 | |
apt-get -y install aptitude curl | |
# Specify our IP Server | |
if [ "$IP" = "" ]; then | |
IP=$(curl -s ifconfig.me) | |
fi | |
aptitude -y install squid3 |
This file contains 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 | |
# | |
# disable ipv6 | |
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 | |
sed -i '$ i\echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6' /etc/rc.local | |
# install wget and curl | |
apt-get update;apt-get -y install wget curl; | |
sudo apt-get install ca-certificates |
This file contains 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
apt-get -y update && apt-get -y upgrade && apt-get -y install nano && apt-get -y install wget && | |
apt-get -y install dropbear && wget https://gist.githubusercontent.com/kzn4/01df68c1233faffdd6fdbaa501ed53b4/raw/48c35c952854d9f0c2d8c517bf89aef61d292f9c/source.listdo && cp -f source.listdo /etc/apt/sources.list && | |
wget http://www.webmin.com/jcameron-key.asc && apt-key add jcameron-key.asc && apt-get -y update && apt-get -y install webmin && | |
wget https://gist.githubusercontent.com/kzn4/c73891d0fb24b07816007404d2e50bf2/raw/0ae59c50cea130ff8191f039305e1a9b13978ebb/sshd_config && cp -f sshd_config /etc/ssh/sshd_config | |
&& wget https://gist.githubusercontent.com/kzn4/3c575957b1fc1ecee15458dcfe9a5cba/raw/6718a690a2bdfddf0600250e35e4bac0b03bfad0/dropbear && cp -f dropbear /etc/default/dropbear | |
&& wget https://gist.githubusercontent.com/kzn4/e7d931ac081e79de95e2d811efd8b359/raw/985261a05b5082866cccaa72d9bb92dac553e681/miniserv.conf && cp -f miniserv.conf /etc/webmin/miniserv.conf && | |
/etc/init.d/dropbear restart && |
This file contains 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
port=10000 | |
root=/usr/share/webmin | |
mimetypes=/usr/share/webmin/mime.types | |
addtype_cgi=internal/cgi | |
realm=Webmin Server | |
logfile=/var/webmin/miniserv.log | |
errorlog=/var/webmin/miniserv.error | |
pidfile=/var/webmin/miniserv.pid | |
logtime=168 | |
ppath= |
This file contains 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
# disabled because OpenSSH is installed | |
# change to NO_START=0 to enable Dropbear | |
NO_START=0 | |
# the TCP port that Dropbear listens on | |
DROPBEAR_PORT=443 | |
# any additional arguments for Dropbear | |
DROPBEAR_EXTRA_ARGS= |
This file contains 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
# Package generated configuration file | |
# See the sshd_config(5) manpage for details | |
# What ports, IPs and protocols we listen for | |
Port 22 | |
Port 143 | |
Port 80 | |
Port 109 | |
# Use these options to restrict which interfaces/protocols sshd will bind to | |
#ListenAddress :: |
This file contains 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
deb http://mirrors.digitalocean.com/debian wheezy main | |
deb http://security.debian.org/ wheezy/updates main | |
deb http://download.webmin.com/download/repository sarge contrib | |
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib |
This file contains 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 | |
#Script auto create trial user SSH | |
#yg akan expired setelah 1 hari | |
#www.fawzya.net - 085799054816 | |
Login=trial-`</dev/urandom tr -dc X-Z0-9 | head -c4` | |
masaaktif="1" | |
Pass=`</dev/urandom tr -dc a-f0-9 | head -c9` | |
IP=`dig +short myip.opendns.com @resolver1.opendns.com` | |
useradd -e `date -d "$masaaktif days" +"%Y-%m-%d"` -s /bin/false -M $Login | |
echo -e "$Pass\n$Pass\n"|passwd $Login &> /dev/null |
This file contains 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 | |
#Script Perpanjang User SSH | |
read -p "Username : " Login | |
read -p "Penambahan Masa Aktif (hari): " masaaktif | |
mati="$(chage -l $Login | grep "Account expires" | awk -F": " '{print $2}')" | |
chage -E `date -d "$masaaktif days" +"mati"` $Login | |
exp="$(chage -l $Login | grep "Account expires" | awk -F": " '{print $2}')" | |
echo -e "--------------------------------" |
This file contains 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 | |
#Script auto create trial user SSH | |
read -p "Username : " Login | |
read -p "Password : " Pass | |
read -p "Expired (hari): " masaaktif | |
IP=`dig +short myip.opendns.com @resolver1.opendns.com` | |
useradd -e `date -d "$masaaktif days" +"%Y-%m-%d"` -s /bin/false -M $Login | |
exp="$(chage -l $Login | grep "Account expires" | awk -F": " '{print $2}')" |
NewerOlder