Articles by "VPS"

Showing posts with label VPS. Show all posts


Paket Ramadhan Dapat VPS Gratis

Pass : anekaserver.com
IP Address: 162.243.253.144 Username: root "Semoga Manfaat SOB" * Spect VPS-USA * Exp 12/7/16

Model name : Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz
cpu MHz : 2399.998
cache size : 15360 KB
MemTotal: 514436 kB






Silahkan mau di build- apa saja silahkan, buat belajar sobat.
build tunnel server/hosting/ssh/dns/etc.. SILAHKAN

First, you need to install the PPTP daemon (server), and we are going to use apt-get to install it.
1
apt-get install pptpd
Once it is installed, let’s create user accounts for your VPN server by editing the chap-secrets file. Use any editor you like, I personally prefer Nano.
1
nano -w /etc/ppp/chap-secrets
Each users should be added in new line with following structure
1
yourusername pptpd yourpassword *
Next step is to configure localip/remoteip assignment on pptpd.conf
1
nano -w /etc/pptpd.conf
Since my local router is on 192.168.0.1, I wanted to avoid using the same IP assignment for my VPN connection. so I’m using 192.168.111.xxx instead on pptpd.conf
1
2
localip 10.10.0.1
remoteip 10.10.0.5-100

Save the file and exit the editor. Now edit the ppp configuration file:
pico -w /etc/ppp/pptpd-options
add the following at the end of file:
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns 8.8.8.8
#ms-dns 8.8.4.4
proxyarp
nodefaultroute
lock
nobsdcomp
mtu 1490
mru 1490

Now, let’s get IP forwarding working by editing sysctl.conf file
1
nano -w /etc/sysctl.conf
then uncomment this line
1
net.ipv4.ip_forward=1
Save the file and reload the configuration.
1
sysctl -p
Next is to edit rc.local file for iptables rule
1
nano -w /etc/rc.local
Add the iptables rule to create the NAT between eth0 and ppp interfaces:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i ppp0 -o eth0 -j ACCEPT
Note that iptables MASQUERADE doesn’t work on OpenVZ VPS containers. Works on KVM and XEN.
If you use OpenVZ, you need to use iptables SOURCE like this:
iptables -t nat -A POSTROUTING -j SNAT --to-source <Public Server IP>
now restart pptpd by running:
service pptpd restart

KLIK iklan dibawah untuk langganan Materi Jaringan di web ini !!
VPS sendiri mempunyai kepanjangan Virtual Private Server, dari namanya pun sudah ketahuan bahwa kita akan mengaplikasikan beberapa virtual operating sistem pada sebuah komputer saja. Sehingga pada sebuah komputer terdapat beberapa mesin virtual dan masing-masing vps dapat berjalan seperti layaknya sistem server yang berugas untuk menjalankan script, pemprosesan data dll, jadi nantinya kita akan membagi sebuah komputer menjadi beberapa mesin virtual yang nantinya pembuatan vps ini bertujuan untuk disewakan atau dipakai sendiri untuk webhosting dll.

Hardware yang cocok untuk VPS :
1. PC/Komputer Intel Core i3, RAM 4 GB, HDD 500GB
2. Sistem Operasi Linux Fedora
Pertama kita install dan setting openvz nya. Ikuti langkah-langkah berikut :
# cd /etc/yum.repos.d/
# wget http://download.openvz.org/openvz.repo
# rpm –import http://download.openvz.org/RPM-GPG-Key-OpenVZ
Setelah selesai proses diatas kita lanjutkan mencari ovzkernel, untuk mempermudah menginstall nya. ketik perintah
# yum search ovzkernel 
kemudian proses install nya ketik perintah
# yum install ovzkernel

Setelah proses install selesai secara otomatis GRUB bootloader akan terupdate. Untuk mengecek nya ketik perintah
# vi /boot/grub/menu.lst

Masih belum selesai, langkah selanjutnya kita harus menginstall ovzkernel dan vzquote dengan mengetik perintah
# yum install vzctl vzquota

Lalu edit file sysctl.conf yang terdapat dalam direktori  /etc/sysctl.conf ketik perintah ;
# vi  /etc/sysctl.conf

cari baris dan rubah seperti berikut :
net.ipv4.ip_forward = 1 net.ipv4.conf.default.proxy_arp = 0 net.ipv4.conf.all.rp_filter = 1 kernel.sysrq = 1 net.ipv4.conf.default.send_redirects = 1 net.ipv4.conf.all.send_redirects = 0 net.ipv4.icmp_echo_ignore_broadcasts = 1 net.ipv4.conf.default.forwarding = 1
Kemudian edit file vz.conf yang terdapat dalam direktori /etc/vz/vz.conf dengan mengetik perintah
# vi /etc/vz/vz.conf
Cari baris yang bertuliskan "NEIGHBOUR_DEVS", kemudian rubah lah menjadi NEIGHBOUR_DEVS=all seperti berikut
.... NEIGHBOUR_DEVS=all ..... 

simpan dan keluar, selanjutnya kuta harus mendisable Selinux dengan cara ketik perintah
# setup 

kemudian pilih firewall configuration nya, lihat gambar dibawah ini untuk lebih jelasnya

Setelah selesai, restart pc server kalian. Setelah proses restart pc komputer server selesai kita harus cek kernel nya terlebih dahulu dengan mengitik perintah
# uname -r

Jika muncul tampilan seperti  2.6.18-92.1.1.el5.028stab057.2 berarti OpenVZ telah berhasil di install. Sekarang kita lanjutkan dengan mengkonfigurasi OpenVZ, ketik perintah
# cd /vz/template/cache

pilih template os nya dan isntall
# wget http://download.openvz.org/template/precreated/contrib/fedora-8-i386-default-20081009.tar
Lalu kita modifikasi memory ram nya, perhatikan baik-baik langkah ini :
# cd /etc/vz/conf/

Buat file memory dengan mengetik perintah : (contoh membagi 512MB)
# vi ve-vps.512MB.conf-sample

Masukan kode script dibawah ini
ONBOOT="yes"
 # UBC parameters (in form of barrier:limit) # Primary parameters vpslink => 512 MB
# Memory Resource Limits KMEMSIZE="29581586:31138512" LOCKEDPAGES="1024:1024" OOMGUARPAGES="104857:2147483647" PHYSPAGES="0:2147483647" PRIVVMPAGES="118882:118882" SHMPAGES="51200:51200" VMGUARPAGES="118882:2147483647"
 # Buffer Resource Limits DCACHESIZE="8053063:8053063" DGRAMRCVBUF="1342177:2684354" OTHERSOCKBUF="2684354:5368709" TCPRCVBUF="2684354:5368709" TCPSNDBUF="2684354:5368709"
# Process and File Limits AVNUMPROC="512:512" NUMFILE="16384:16384" NUMFLOCK="1024:1024" NUMIPTENT="1536:1536" NUMOTHERSOCK="1024:1024" NUMPROC="640:640" NUMPTY="64:64" NUMSIGINFO="1024:1024" NUMTCPSOCK="1024:1024"
# Disk Resource Limits DISKINODES="2280000:2400000" DISKSPACE="19922944:20971520"
# Quota Resource Limits QUOTATIME="0" QUOTAUGIDLIMIT="3000" DEVICES="c:10:200:rw "

Sekarang kita install OS nya, contoh ini saya gunakan untuk menginstall os fedora pada vps
# vzctl create 3 --ostemplate fedora-8-i386-default-20081009 --config vps.512MB --ipadd 192.200.200.25 --hostname demo

Setelah selesai setting dns servernya dengan mengetik perintah
# vzctl set 3 -–nameserver 192.168.69.0 --userpasswd root:paswwordroot –save

Oke sekarang install os pada vps sudah selesai, kita cek dulu apakah vps nya sudah berjalan dengan normal atau belum, dengan mengetik perintah 
# vzlist –a

Untuk menjalankan vps nya ketik 
# vzctl start 3

Demikian tutorial sederhana cara membuat VPS sendiri dari PC/Komputer rumah menggunakan teknologi virtualisasi openvz, semoga bermanfaat.
 

Author Name

Formulir Kontak

Name

Email *

Message *

Powered by Blogger.