Skip to content

Instantly share code, notes, and snippets.

@TomTer
Last active February 9, 2016 13:50
Show Gist options
  • Select an option

  • Save TomTer/8e4682602f3071c353fc to your computer and use it in GitHub Desktop.

Select an option

Save TomTer/8e4682602f3071c353fc to your computer and use it in GitHub Desktop.
Server Conf
#!/bin/bash
# Guide: https://wiki.debian.org/ru/LaMp
useradd apache_server
mkdir /home/apache_server
mkdir /home/apache_server/public_html
chown apache_server:users /home/apache_server
apt-get -y update && apt-get upgrade
apt-get -y install mysql-server mysql-client
apt-get -y install apache2 apache2-doc
nano /etc/apache2/mods-enabled/userdir.conf
chgrp www-data /home/apache_server/public_html
service apache2 restart
apt-get -y install php5 php5-mysql libapache2-mod-php5 php-apc php5-curl
apt-get -y install git
git clone https://tt-rss.org/git/tt-rss.git rss
#!/bin/bash
PROXY_CFG_FILE_URL="https://gist.githubusercontent.com/TomTer/b829c13d72959f82da63/raw/559532d0a0c1540a659268234dc9afaf3ae3f28e/3proxy.cfg"
PROXY_STARTUP_FILE_URL="https://gist.githubusercontent.com/TomTer/3be69518e7098203be68/raw/a74481acbc4662bbf3f1dace03d486bc18a380d8/3proxy_startup"
apt-get -y update && apt-get upgrade
apt-get -y install build-essential libevent-dev libssl-dev
cd /usr/src
wget https://github.com/z3APA3A/3proxy/archive/v0.7.1.2.tar.gz
tar zxvf v0.7.1.2.tar.gz
cd 3proxy-0.7.1.2/
make -f Makefile.Linux
make -f Makefile.Linux install
mkdir -p ~/3proxy
mkdir -p ~/3proxy/logs
cd ~/3proxy
wget $PROXY_CFG_FILE_URL -O 3proxy.cfg
cd /etc/init.d/
wget $PROXY_STARTUP_FILE_URL -O 3proxy
chmod 755 /etc/init.d/3proxy
#! /bin/sh
# Carry out specific functions when asked to by the system
case "$1" in
start)
echo "Starting 3proxy "
3proxy ~/3proxy/3proxy.cfg
;;
stop)
echo "Stopping 3proxy"
killall 3proxy
;;
*)
echo "Usage: /etc/init.d/3proxy {start|stop}"
exit 1
;;
esac
exit 0
daemon
internal 167.88.35.173
external 167.88.35.173
nserver 8.8.8.8
nscache 65536
timeouts 1 5 30 60 180 1800 15 60
log /dev/null # no logs
users user1:CL:pass1
allow * * * * # Allow all ports
rotate 30
flush
auth strong
maxconn 32
# Port
socks -p2345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment