IT Consultant

Service dan Maintenance pc :
1. Warnet
2. Kantor
3. Personal

Jasa setting :
Proxy Cache (non https), Mikrotik, Warnet, RTRWNet
Info lebih lanjut hubungi :

Fatah : 0815-8651-0068

Jumat, 14 Februari 2014

Configuration and installation on Ubuntu server lightsquid

# packages required
apt-get install perl libgd-gd2-perl -y &&
apt-get install apache2 -y &&
apt-get install cron -y

# Download Lightsquid
cd /tmp
wget https://www.dropbox.com/s/naaf9ox9zr3q5tx/lightsquid-1.8.tar.gz

# Extract the package lightsquid
tar -xvzf lightsquid-1.8.tar.gz

# Move extract results to your webserver directory ubuntu default instance here I put in (/var/www)
mv lightsquid-1.8 /var/www/lightsquid

# Switching to lightsquid directory and change to all scripts .cgi and .pl be in executable
cd /var/www/lightsquid &&
chmod +x *.cgi &&
chmod +x *.pl

# Change the ownership of access according to your apache
chown -R www-data.www-data *

# Edit httpd.conf
pico /etc/apache2/httpd.conf



# Add the following httpd.conf configuration

AddHandler cgi-script .cgi
AllowOverride All

# Restart Apache
/etc/init.d/apache2 restart

# Adjust the following code according to directory where you lightsquid
cd /var/www/lightsquid
pico lightsquid.cfg
# Replace some lines like this
$cfgpath =”/var/www/lightsquid”;
$tplpath =”/var/www/lightsquid/tpl”;
$langpath =”/var/www/lightsquid/lang”;
$reportpath =”/var/www/lightsquid/report”;
$logpath =”/var/log/squid”;
$ip2namepath =”/var/www/lightsquid/ip2name”;

# type the command
perl check-setup.pl
# If a message appears as below, then lihtsquid ready for use
LightSquid Config Checker, (c) 2005 Sergey Erokhin GNU GPL
LogPath : /var/log/squid
reportpath: /var/www/lightsquid/report
Lang : /var/www/lightsquid/lang/eng
Template : /var/www/lightsquid/tpl/base
Ip2Name : /var/www/lightsquid/ip2name/ip2name.simple
all check passed, now try access to cgi part in browser

# provide the name of the registered IP
pico realname.cfg
# Ip name registration example
192.168.3.254   Billing
192.168.3.2     PC 01
192.168.3.3     PC 02
192.168.3.4     PC 03
192.168.3.5     PC 04
192.168.3.6     PC 05
192.168.3.7     PC 06
192.168.3.8     PC 07

# For group, or skip it if not needed
pico group.cfg
# example ip group
192.168.3.254   Admin
192.168.3.2     Admin
192.168.3.3     Client
192.168.3.4     Client
192.168.3.5     Client
192.168.3.6     Client
192.168.3.7     Client
192.168.3.8     Client

# After that run the script lightparser.pl
perl lightparser.pl /var/log/squid/access.log

# To run the script automatically lightparser.pl add in crontab
crontab -e
10 * * * * /var/www/lightsquid/lightparser.pl today

# Please open your localhost web, and look at what your users do
http://IP-Proxy/lightsquid







INFO SERVICE PROXY SETTING AND MIKROTIK

 089693433305 / fathayu@gmail.com / fathayu@yahoo.co.id

How do I remotely using WinSCP?

1. Download the application at www.filehippo.com or at the direct site
2. Open application, and it looks like this :



3. Ubuntu server ip type in the hostname column, ubuntu root username in the username field, ubuntu root password in the password field, and it looks like this :




4. Click on the login button, then there will be the login process like this :



5. After successful login, it will appear to be like this :




6. The column on the left is a directory of windows, and the column on the right is the root directory of ubuntu server itself

7. That way if you still have not managed to log into the ubuntu server, there are several possibilities, such as: ssh port is not appropriate or may have changed, or maybe it could be you have not installed ubuntu openssh-server.

8. Good luck and happy learning...

INFO SERVICE PROXY SETTING AND MIKROTIK

 089693433305 / fathayu@gmail.com / fathayu@yahoo.co.id

Installasi Webmin on Ubuntu

# Download Webmin
wget http://www.webmin.com/download/deb/webmin-current.deb
dpkg -i webmin-current.deb
apt-get -f install -y

# Or You Can Choose This Step
# Added The Source of Repository

pico /etc/apt/sources.list
# And This is The Line
deb http://download.webmin.com/download/repository sarge contrib

# Update and Install Webmin
apt-get update
apt-get install webmin

# And Finally
Webmin is ready, just type on your URL browser with https://[serverIP]:10000

INFO SERVICE PROXY SETTING AND MIKROTIK

 089693433305 / fathayu@gmail.com / fathayu@yahoo.co.id

Installasi Graph Monitoring Squid

# Install The Package
apt-get install libgd-gd2-perl -y

# Download The File
cd /tmp
wget http://nchc.dl.sourceforge.net/project/squid-graph/squid-graph/3.2/squid-graph-3.2.tar.gz

# Extract and Copied to Directory of init.d
tar xzvf squid-graph-3.2.tar.gz -C /etc/init.d/

# Change Mode
chmod +x /etc/init.d/squid-graph/*

cd /var/www
mkdir squid-graph
cd /etc/init.d/squid-graph
./squid-graph --tcp-only -n -o=/var/www/squid-graph/ --title="proxy" < /var/log/squid/access.log

# Make a Scheduler
crontab -e
# And Added The Rules Like This One
1 * * * * /etc/init.d/squid-graph/squid-graph --tcp-only -n -o=/var/www/squid-graph/

# Finally
You Can Open on Your URL Browser with http://IP-Proxy/squid-graph


INFO SERVICE PROXY SETTING AND MIKROTIK
 089693433305 / fathayu@gmail.com / fathayu@yahoo.co.id

Installasi and Setting SARG and CALAMARIS

# Install The Packages
apt-get install sarg calamaris libgd-graph-perl libnetaddr-ip-perl ttf-dustin -y

# Setting CALAMARIS
squid -k rotate
mkdir /var/www/calamaris
calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html

# Edit Config Report
pico /etc/sarg/sarg-reports.conf

# Fill The File Like This One
SARG=/usr/bin/sarg
CONFIG=/etc/sarg/sarg.conf
HTMLOUT=/var/www/squid-reports
PAGETITLE="Access Reports on $(hostname)"
LOGOIMG=/sarg/images/sarg.png
LOGOLINK="http://$(hostname)/"
DAILY=Daily
WEEKLY=Weekly
MONTHLY=Monthly
EXCLUDELOG1="SARG: No records found"
EXCLUDELOG2="SARG: End"

# Edit Config Sarg
pico /etc/sarg/sarg.conf

# Change Rules
output_dir /var/lib/sarg
# With
output_dir /var/www/squid-reports

# Directory of SARG
mkdir /var/www/squid-reports

# Setting SARG
sarg-reports today
sarg-reports daily
sarg-reports weekly
sarg-reports monthly

# Make Scheduler
crontab -e
# Input This Rules Line To The Bottom Of The Line
* 6 * * * /usr/sbin/sarg-reports today
* 12 * * * calamaris -a -F html /var/log/squid/access.log > /var/www/calamaris/index.html

# And Finally
Access Report From CALAMARIS To Your Browser with URL http://[ip-server]/calamaris
Access Report From SARG To Your Browser with URL http://[ip-server]/squid-reports

INFO SERVICE PROXY SETTING AND MIKROTIK
 089693433305 / fathayu@gmail.com / fathayu@yahoo.co.id

Installasi LUSCA_HEAD-r14809-YOUTUBE.PACTH

# Added Link With Repository From Indonesia
pico /etc/apt/sources.list

# This is The List
deb http://kambing.ui.ac.id/ubuntu/ precise main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-updates main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-security main restricted universe multiverse
deb http://kambing.ui.ac.id/ubuntu/ precise-backports main restricted universe multiverse

# Update and Install
apt-get update -y
apt-get install squidclient squid-cgi -y
apt-get install gcc -y
apt-get install build-essential -y
apt-get install sharutils -y
apt-get install ccze -y
apt-get install libzip-dev -y
apt-get install automake1.9 -y
apt-get install acpid -y
apt-get install libfile-readbackwards-perl -y
apt-get install dnsmasq -y
cd /tmp

# Download, Extrack and Patch
wget -c https://www.dropbox.com/s/f9msl2mekxwbye8/LUSCA_HEAD-r14809.tar.gz
tar -xvzf LUSCA_HEAD-r14809.tar.gz
cd LUSCA_HEAD-r14809
wget -c https://www.dropbox.com/s/emmc9fbahovr4lt/LUSCA_HEAD-r14809-YOUTUBE.PACTH.tar.gz
tar -xvzf LUSCA_HEAD-r14809-YOUTUBE.PACTH.tar.gz
patch -p0 < 3xx-loop.diff
patch -p0 < async-issue.diff
patch -p0 < http-gzip.diff
patch -p0 < ignore-must-revalidate.diff
patch -p0 < improve-nn-parser.diff
patch -p0 < lusca-vary.diff
patch -p0 < segmentation-fault.diff

# Compile
./configure \
--prefix=/usr \
--exec_prefix=/usr \
--bindir=/usr/sbin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib/squid \
--sysconfdir=/etc/squid \
--localstatedir=/var/spool/squid \
--datadir=/usr/share/squid  \
--enable-async-io=24 \
--with-aufs-threads=24 \
--with-pthreads \
--enable-storeio=aufs \
--enable-linux-netfilter \
--enable-arp-acl \
--enable-epoll \
--enable-removal-policies=heap \
--with-aio \
--with-dl \
--enable-snmp \
--enable-delay-pools \
--enable-htcp \
--enable-cache-digests \
--disable-unlinkd \
--enable-large-cache-files \
--with-large-files \
--enable-err-languages=English \
--enable-default-err-language=English \
--enable-referer-log \
--with-maxfd=65536

make
make install

cd /etc/init.d/
wget -c https://www.dropbox.com/s/pwd0yhunvb0xb9p/squid.init.ubuntu
mv /etc/init.d/squid.init.ubuntu /etc/init.d/squid
chmod +x /etc/init.d/squid
/etc/init.d/squid stop

cd /etc/squid
mv squid.conf squid.conf.backup
wget https://www.dropbox.com/s/JASA-SETTING-PROXY-089637490907/squid.conf
wget https://www.dropbox.com/s/JASA-SETTING-PROXY-089637490907/storeurl.pl
wget https://www.dropbox.com/s/JASA-SETTING-PROXY-089637490907/tunning.conf
chown proxy:proxy /cache
chmod 777 /cache
chown proxy:proxy /etc/squid/tunning.conf
chmod 777 /etc/squid/tunning.conf
chown proxy:proxy /etc/squid/storeurl.pl
chmod 777 /etc/squid/storeurl.pl
chmod +x /etc/squid/storeurl.pl

# Edit squid.conf With Your Config
pico /etc/squid/squid.conf

mkdir /var/log/squid
chown proxy:proxy /var/log/squid
chmod 777 /var/log/squid
squid -f /etc/squid/squid.conf -z
/etc/init.d/squid restart
squid -NDd1

update-rc.d squid defaults

tail -f /var/log/squid/access.log | ccze





INFO SERVICE PROXY SETTING AND MIKROTIK
 089693433305 / fathayu@gmail.com / fathayu@yahoo.co.id