BLOG BUDAK BUNGO

Pages

Connect With Us

Instructions

Recomended

blogbudakbungo. Powered by Blogger.

Labels

Las series mรกs vistas

Categories

Followers

Our Partners

Showing posts with label proxy. Show all posts
Showing posts with label proxy. Show all posts

Cara Menghilangkan Table GNU GRUB saat booting Ubuntu Server



Biasanya jika proxy ubuntu  mati tiba tiba akibat mati lampu atau akibat yang lainnya setelah proxy di nyalakan lagi saat booting tampil Table GNU GRUB yang harus kita tekan ENTER di keyboard supaya booting lanjut ke berikutnya.
Yang jadi kendala jika proxy ubuntu anda jika proxy ubuntu anda tidak terletak keyboard dan monitor,atau anda tidak berada di lokasi tentu saja hal ini menjadi repot anda di buat nya,berikut cara menghilangkan Table GNU GRUB saat booting Ubuntu Server tersebut.
  • Remote ubuntu server anda dengan Winscp,kemudian login dengan root seperti gambar di bawah ini:

  • Selanjutnya di halaman sebelah kanan pilih / <root>  seperti gambar di bawah ini:

  • Selanjutnya double klik folder boot ,seperti gambar di bawah ini:

  • Selanjutnya double klik folder grub ,seperti gambar di bawah ini:

  • Selanjutnya double klik file grub.cfg ,seperti gambar di bawah ini:

  • Selanjutnya cari set recordfail=1 di  dalam file grub.cfg tersebut,jika ketemu dua bijik atas dan bawah,pilih bagian yang atas,seperti gambar di bawah ini:

  • Kemudian ganti set recordfail=1 menjadi set recordfail=2 seperti gambar di bawah ini:

  • Kemudian save ,seperti gambar di bwah ini:

Dan close grub.cfg dan winscp nya,untuk test lepaskan keyboard di proxy ubuntu server anda dan coba langsung cabut power proxy ubuntu server anda kemudian nyalakan lagi,apakah anda perlu tekan ENTER lagi di keyboard untuk melanjutkan Table GNU GRUB saat booting,atau Table GNU GRUB langsung begitu hilang dan langsung ke booting berikutnya?

Selamat mencoba…

Membangun Server Handal Dengan ClearOS V5.2


ClearOS Enterprise adalah linux khusus server, yang bersifat free dan opensource. Diturunkan langsung dari CentOS yang merupakan "clonningan" RHEL (RedHat Enterprise Linux) membuat ClearOS mempunyai Base system yang kuat. Idea

Tidak seperti distro lainnya, ClearOS mempunyai kelebihan yaitu mudah dikonfigurasi melalui webconfignya yang powerfull, sehingga pemula yang belum mengenal linux sama sekali dapat membuat server yang handal dan stabil sekelas administrator proffesional dalam waktu singkat.. Laughing

ClearOS Enterprise 5.2 Features :

Directory Features
* Integrated LDAP for User and Group Management
* User Security Certificate Manager

Network Features
* Multi-WAN
* VPN - PPTP, IPsec, OpenVPN
* DMZ and 1-to-1 NAT
* Stateful Firewall
* Local DHCP and DNS Servers

Gateway Features
* Antimalware - Antivirus, Antiphishing, Antispyware
* Antispam
* Bandwidth Management
* Intrusion Protection, Intrusion Prevention, Intrusion Detection
* Protocol Filtering including Peer-to-Peer Detection
* Content Filter
* Web Proxy
* Access Control

Server Features
* Windows Networking with PDC Support
* File and Print Services
* Flexshares
* Groupware with Outlook Connector
* Mail Server - POP, IMAP, SMTP, Webmail, Retrieval
* Mail Filtering - Antispam, Antimalware, Greylisting, Quarantine
* Mail Archiving
* Database with MySQL
* Web Server with PHP Support

Download eBook:
Download Disini.. ^^

Download ISO CD ClearOS 5.2 :
via ClearFoundation Download Center

Ini Contoh Server ClearOS Yang Aku Setting Di Tempat kerja Yang Udah Di oprek Sana Sini ^^
TCP HIT ClearOS + Proxy Lusca :


Hit Ratio ClearOS + Proxy Lusca :


Bandwidht test Speedtest.net HIT :


Squid Benar" Menghemat Bandwidht, Yg merah Adalah bandwidht Yang terpakai, Yang kuning Adalah Squid / Proxy Yang terpakai :



Semoga bermanfaat, Keep Sharing ^^

Solusi Mudah Membuat Server Dengan ClearOS

ClearOS adalah sebuah Distro Linux yang “sudah jadi” atau bisa di bilang sudah di kostumasi khusus untuk keperluan server,dengan fitur yang powerfull dan konfigurasi yang cukup mudah.saya sendiri cukup tertarik membuat artikel tentang ClearOS ini pasal nya setelah di pelajari cukup mudah membuat sebuah server dengan berbagai fitur yang di berikan ClearOS ini.jika ada keperluan untuk warnet,warnet game online,kantor atau perusahaan bisa beralih menggunakan ClearOs ini.dengan kernel berbasis Red Hat 5 Enterprise membuat ClearOS memiliki source base yang handal dan stabil untuk di applikasikan sebagai server.
Berikut Fitur yang ada pada ClearOS :
Directory Features
  • integrated LDAP for user dan group management
  • User Security Certificate Manager
Network Features
  • Multi-WAN
  • VPN-PPTP, IPsec, OpenVPN
  • DMZ and 1 to 1 NAT
  • Statefull Firewall
  • Local DHCP and DNS Servers
Gateway Features
  • Antimalware – Antivirus, AntiPhising, Anti Spyware, Anti Spam
  • Bandwitdh Management
  • Intrusion Protection, Intrusion Prevention, Intrusion Detection
  • Protocol Filtering including Peer to Peer Detection
  • Content Filter
  • WebProxy
  • Access Control
Server Features
  • Windows Networking with PDC Support
  • File and  Print Services
  • FlexShares
  • Groupware With Outlook Connector
  • Mail Server – POP, IMAP, SMTP, Webmail, Retrival
  • Mail Filtering – AntiSpam, Anti Malware, Greylisting, Quarantine
  • Mail Archiving
  • Database With MySQL
  • Web Server With PHP Support
Dari fitur-fitur di atas terlihat bahwa ClearOS memang mempunyai fitur khusus untuk keperluan server,jika ada yang ingin mendownload ClearOS  bisa pada link di bawah ini :

Instal SQUID / LUSCA youtube di UBUNTU

I assume your ubuntu box have 2 interfaces configured, one for LAN and second for WAN. You have internet sharing already configured. Now moving on to LUSCA / SQUID installation.

Download LUSCA source and compile it using,

mkdir /temp
cd /temp
wget http://lusca-cache.googlecode.com/files/LUSCA_HEAD-r14809.tar.gz
tar xzvf LUSCA_HEAD-r14809.tar.gz

Update & Install some tools for ubuntu

sudo apt-get update
sudo apt-get install gcc build-essential sharutils ccze libzip-dev automake1.9
cd LUSCA_HEAD-r14809

Now compile LUSCA with following options

./configure '--prefix=/usr/local/squid' '--enable-removal-policies=heap,lru' '--disable-dependency-tracking' '--disable-arp-acl' '--disable-cache-digests' '--enable-cachemgr-hostname=localhost' '--disable-delay-pools' '--enable-epoll' '--enable-external-acl-helpers=ip_user' '--disable-ident-lookups' '--enable-linux-netfilter' '--disable-referer-log' '--enable-removal-policies=heap,lru' '--disable-snmp' '--disable-ssl' '--enable-storeio=aufs,null,coss' '--disable-useragent-log' '--disable-wccpv2' '--with-aio' '--with-maxfd=1048576' '--with-dl' '--with-pthreads' 'build_alias=i686-redhat-linux-gnu' 'host_alias=i686-redhat-linux-gnu' 'targe_alias=i686-redhat-linux-gnu''--enable-truncate' '--disable-unlinkd' '--with-large-files' '--disable-htcp'
sudo make all
sudo make install


All of Lusca/Squid configuration files can be found at
/usr/local/squid/etc/
and squid executable can be found at
/usr/local/squid/sbin/
Now We will edit squid.conf file to make it customize according to our requirements by . .

 nano /usr/local/squid/etc/squid.conf


Delete all previously lines , and paste the following lines.
Remember following squid.conf is not very neat and clean , you will find many un necessary junk entries in it, but as I didn’t had time to clean them all, so you may clean them as per your targets and goals.
                                                          squid.conf


Now create cache dir and logs files , and assign them necessary permissions.

 mkdir /cache1
chown proxy:proxy /cache1
mkdir /var/log/squid
chmod 777 /var/log/squid

 Now initialize cache dir by
/usr/local/squid/sbin/squid -z

SOTEURL.PL

Now We have to create an important file name storeurl.pl ,
which is very important and actually it does the
main job to pull video from cache.

mkdir /etc/squid
touch /etc/squid/storeurl.pl
chmod +x /etc/squid/storeurl.pl
nano /etc/squid/storeurl.pl

Now paste the following lines, then Save and exit.
                                               storeurl.pl
 
Now start SQUIDServer by

 /usr/local/squid/sbin/squid

INSTALASI SQUID

I. PERSIAPAN DAN DEFINISI DELAY POOLS
Gambaran Umum Delay Pools:
Delay Pools adalah untuk mengkonfigurasikan squid dengan pengaturan bandwidth berdasarkan kriteria tertentu.

Siapkan PC dengan kemampuan lebih, seperti :
1. P4 @ 2 Ghz cukup
2. harddisk cukup kecil saja sekitar 40 Gb 7200 rpm
2. Memory 512 (semakin besar semakin bagus, cachenya agar tidak "tumpah" ke harddisk)
3. Linux Distro (Ubuntu, Fedora Core, Slackware)
4. Squid-cache bisa download lewat:
http://www.squid-cache.org/ downloadlah versi terbaru paling stabil (squid2.6 stable 12,saat diketik tulisan ini)
5. Konfigurasi network yang akan digunakan adalah:
....INET------SWITCH----MIKROTIK---CLIENT
.......................|
.......................--------SQUIDBOX

II. INSTALASI SQUID
A.DOWNLOAD SQUID
Untuk memudahkan instalasi maka, LinuxBox harus sudah bisa terhubung ke internet untuk mendownload langsung sourcenya dengan perintah:

PS: Menggunakan distro Ubuntu
untuk check directory aktif
Code:
admin@squidbox:~$ pwd
/home/admin
untuk download langsung dari web squidcache
Code:
admin@squidbox:~$ wget http://www.squid-cache.org/Versions/v2/2.6/squid-2.6.STABLE12.tar.gz
untuk menginstall package squid
Code:
admin@squidbox:~$ tar -zxvf squid-2.6.STABLE12.tar.gz
admin@squidbox:~$ cd squid-2.6.STABLE12/
admin@squidbox:~/squid-2.6.STABLE12$ pwd
/home/admin/squid-2.6.STABLE12
B.KONFIGURASI SQUID
sampai sini instalasi squid sudah beres, sekarang memberikan hak akses untuk normal user agar untuk menjalankan squid jika perlu di reboot atau maintenace tidak perlu dari user root.
Code:
admin@squidbox:~/squid-2.6.STABLE12$ sudo useradd -d /usr/local/squid/ -r -s /dev/null squid > /dev/null 2>&1
sekarang kita mengkonfigurasi agar squid kita bisa memanfaatkan delay-pools dan juga mengaktifkan SNMP untuk MRTG dan ICMP
Code:
admin@squidbox:~/squid-2.6.STABLE12$ ./configure –prefix=/home/admin/squid-2.6.STABLE12 \
exec-prefix=/home/admin/squid-2.6.STABLE12 –enable-gnuregex \
enable-icmp –enable-snmp \
enable-delay-pools –enable-cache-diggest \
enable-removal-policies=heap –enable-default-err-languages=English \
enable-err-languages=English –enable-async-io=24 \
with-aufs-threads=24 –with-pthreads \
with-aio –with-dl \
enable-storeio=aufs,diskd –enable-epoll \
enable-kill-parent-hack –disable-ident-lookups \
disable-wccp –disable-wccpv2 \
enable-htcp
untuk informasi lebih jelas konfigurasi dan compile squid bisa lihat kesini:http://wiki.squid-cache.org/SquidFaq/CompilingSquid
http://wiki.squid-cache.org/SquidFaq/ConfiguringSquid

untuk prefix dan exec-prefix disesuaikan dengan directory squidnya.
C.MENGKOMPILE DAN INSTALASI SQUID
setelah konfigurasi awal di atas selesai maka kita bisa meng
kompile nya dengan perintah:
Code:
admin@squidbox:~/squid-2.6.STABLE12$ make
admin@squidbox:~/squid-2.6.STABLE12$ sudo make install
III.Konfigurasi squid.conf
A.Penjelasan Delay Pools dan parameternya
Untuk Penjelasan Mengenai Delay Pools bisa ke thread ini, karena kalau terlalu panjang Tutsnya nanti malah jadi Boring dan Pusing. ^^
http://www.forummikrotik.com/showthr...ted=1#post1608
B. Mengedit Squid.conf
Untuk mengedit konfigurasi squid.conf dapat memberikan perintah sebagai berikut:
Code:
admin@squidbox:~/squid-2.6.STABLE12$ sudo nano /home/admin/squid-2.6.STABLE12/etc/squid.conf
Konfigurasi default dan optimalisasi squid.conf:
Code:
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?

# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# —————————————————————————–
cache_dir diskd /home/admin/squid-2.6.STABLE12/var/cache 1000 8 256 # << Sesuaikan dengan kebutuhan anda
access_log /home/admin/squid-2.6.STABLE12/var/logs/access.log squid
cache_log /home/admin/squid-2.6.STABLE12/var/logs/cache.log
log_fqdn off
buffered_logs off

# OPTIONS FOR TUNING THE CACHE
# —————————————————————————–
refresh_pattern /.gif 4320 50% 43200
refresh_pattern /.jpg 4320 50% 43200
refresh_pattern /.jpeg 4320 50% 43200
refresh_pattern /.png 4320 50% 43200
refresh_pattern ^http://www.friendster.com/.* 720 100% 10080
refresh_pattern ^http://mail.yahoo.com/.* 720 100% 10080
refresh_pattern ^http://*.yahoo.*/.* 720 100% 7200
refresh_pattern ^http://*.google.com/.* 720 100% 10080
refresh_pattern ^http://www.telkomspeedy.com/.* 720 100% 28800
refresh_pattern ^http://*.blogsome.com/.* 720 80% 10080
refresh_pattern ^http://*.wordpress.com/.* 720 80% 10080
refresh-pattern ^http://detik.com/.* 720 90% 2880
refresh_pattern ^ftp: 14400 90% 43200 reload-into-ims
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320 reload-into-ims

quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95

# ACCESS CONTROLS
# —————————————————————————–
acl my_network src 192.168.1.0/24
acl SSL_ports port 443 563
#acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 443 563 # https
#acl Safe_ports port 488 # gss-http
#acl Safe_ports port 591 # filemaker
#acl Safe_ports port 777 # multiling http
http_access allow manager localhost my_network
http_access allow my_network

acl download url_regex -i \.mp3
acl download url_regex -i \.3gp
acl download url_regex -i \.avi
acl download url_regex -i \.mpg
acl download url_regex -i \.mpeg
acl download url_regex -i \.wav
acl download url_regex -i \.flv
acl download url_regex -i \.swf

# DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option)
# —————————————————————————–
delay_pools 2
delay_class 1 3
delay_parameters 1 -1/-1 -1/-1 8000/8000
delay_access 1 allow my_network download
delay_access 1 deny all
delay_class 2 2
delay_parameters 2 -1/-1 -1/-1
delay_access 2 allow my_network
delay_access 2 deny all

# ADMINISTRATIVE PARAMETERS
# —————————————————————————–
cache_effective_user squid

# MISCELLANEOUS
# —————————————————————————–
logfile_rotate 5
reload_into_ims on
store_dir_select_algorithm round-robin

# ADMINISTRATIVE PARAMETERS
# —————————————————————————–
cache_mgr youremail@host.com
visible_hostname localhost
IV. Menjalankan Squid-cache
A. Membuat swap cache
Code:
[root@squidbox]#/usr/local/squid/sbin/squid -z
B. Mengaktifkan Squid di Foreground task
Code:
ghoz@ghoz-desktop:~/squid-2.6.STABLE12$ home/ghoz/squid-2.6.STABLE12/sbin/squid -SND
ghoz@ghoz-desktop:~/squid-2.6.STABLE12$ home/ghoz/squid-2.6.STABLE12/sbin/squid start
C. Monitoring TCP squidBox
Code:
admin@squidbox:~/squid-2.6.STABLE12$ sudo netstat -pln | grep squid
Bila tampilan ada yang persis seperti dibawah ini, berarti squid telah berjalan.
Code:
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 18047/(squid)
udp 0 0 0.0.0.0:3130 0.0.0.0:* 18047/(squid)
udp 0 0 0.0.0.0:3401 0.0.0.0:* 18047/(squid)
udp 0 0 0.0.0.0:4827 0.0.0.0:* 18047/(squid)
udp 0 0 0.0.0.0:32992 0.0.0.0:* 18047/(squid)
Untuk pengecekan, maka client dicoba untuk browsing, jika ada data in/out maka proses pembuatan transparant proxy sudah berhasil.

High Performance Lusca Squid Proxy Server Ubuntu Instalasi dan Tunneling




Setelah beberapa waktu lalu menjelaskan dokumentasi mengenai instalasi Lusca Squid: Install High Performance Proxy CentOS 6x, kali ini ada beberapa dokumentasi Instalasi dan Tunnelling Super High Proxy Server pada Ubuntu, didalam tulisan ini menggunakan Ubuntu Server 11.10. langsung saja ikuti langkah-lahkan berikut:

Beberapa tool tambahan yang mungkin perlu anda periksa/instal:
 
 Lakukan instalasi dependensi yang di butuhkan:
 
Download LUSCA_HEAD-r14809:
 
Compile, configure dan install Lusca Squid dengan perintah berikut:
 
 
Konfigurasi dan Tunnelling Lusca Squid
 
 Membuat folder-folder swap/cache di dalam folder cache yang telah ditentukan dengan perintah:


 Periksa konfigurasi squid
 
Jika tidak terdapat error jalankan squid
:
Arahkan browser anda ke port proxy (3128), dan periksa log squid dengan perintah:
 Reboot/restart CPU Ubuntu anda...

Update: Untuk kinerja proxy server lebih maksimal, update Squid Proxy Server Youtube Cache terbaru ada disini Squid Proxy Server Youtube Cache

Check Hardisk dan Memori di Ubuntu Server

Cara Check Hardisk dan Memori Ubuntu Server -, check kafasitas hardisk dan memori kadang terasa perlu, seperti kisah ketika hardisk proxy full oleh log – log nya, seperti yang pernah saya tulis di post Hardisk ubuntu full
Caara melihat hardisk full atau tidak bisa dengan perintah : sudo df -h
Cara melihat perdirectory, misalnya directory /var/log, directory mana yang memakan kapasitas dan resource hardisk bisa di chek dengan perintah du -ch atau melihat seluruh directory du -ch /*
Cara melihat type processor yang di gunakan ubuntu server
sudo cat /proc/cpuinfo

Cara melihat besar memory yang di gunakan ubuntu server sudo cat /proc/meminfo atau sudo cat /proc/meminfo | head -n 1
Semoga cara melihat kapasitas hardisk, cara melihat kapasitas memori dan cara melihat type processor ubuntu server ini bermanfaat.

Cara Login Root dengan Squid external Proxy Ubuntu






Jika anda login root berarti perintah
di ubuntu tidak memerlukan sudo lagi,berikut langkahnya:
Download putty ((DISINI))

Remote Ubuntu dengan putty:

Host Name (or IP address):ip address ubuntu anda
Kemudian klik “Open” seperti gambar di bawah ini:


Login as:login dengan hostname anda
Password:isi dengan password ubuntu anda

Seperti gambar di bawh ini



Selanjutnya ketik perintah:

sudo passwd root

Kemudian tekan “ENTER” di keyboard,seperti gambar di bawah ini:


[sudo] password for fisha:isikan password ubuntu anda
Kemudian tekan “ENTER” di keyboard
Seperti gambar di bawah ini:


Enter new UNIX password:isikan password ubuntu anda
Kemudian tekan “ENTER” di keyboard
Seperti gambar di bawah ini:


Retype  new UNIX password:ulangi password ubuntu anda
Kemudian tekan “ENTER” di keyboard
Seperti gambar di bawah ini:


passwd:password update successfully
password anda telah terupdate

kemudian ketik perintah:

sudo reboot

seperti gambar di bawah ini:


dan tunggu ubuntu anda restart,sekitar 2 menit
kemudian remote lagi ubuntu anda menggunakan putty dan:

login as:root
password:password ubuntu anda

seperti gambar d bawah ini:



==Selamat Mencoba==

Proudly powered by : Blogger
Copyright © 2013. Blog Budak Bungo - All Rights Reserved
Blog By : Vhen Part II
Template by blogbudakbungo.blogspot.com | Publish :budakbungo