Remote Mikrotik lewat WINBOX

| | 0 komentar
1. Setelah install Mikrotik sudah OK, selanjutnya masukkan IP sembarang untuk remote.
Misal
ip address add address 192.168.1.254 netmask 255.255.255.0 interface ether2
Kemudian buka browser dengan alamat IP tadi, dan download Winbox

2. Buka Winbox yang telah di download tadi
3. Di tampilan Winbox, pada kolom Connect To masukkan no IP tadi (192.168.1.254) dengan
Login : admin password : kosong. Kemudian klik tombol Connect


4. Login ke Mikrotik Via Winbox berhasil

5. Klik IP —> ADDRESS

6. Ini adalah tampilan dari address

7. Kemudian masukkan IP public (dari ISP)

8. Ini daftar IP pada 2 ethernet

9. Setting Gateway, IP —> Routes

10. Masukkan IP GATEWAY (dari ISP)

11. Hasil ROUTING

12. Masukkan Primary DNS dan Secondary DNS (dari ISP)
Kemudian klik Apply dan OK

13. Setting MASQUERADE

14. Klik IP —> Firewall
15. Kemudian pilih NAT
16. Pada tab General
pada Chain pilih srcnat
pada Out. Interface pilih ether1
pada tab Action pilih masquerade
Kemudian klik Apply dan OK


ok selesai….

Router FreeBSD + NAT

| | 0 komentar
1. Install FreeBSD nya dulu (CDROM/FTP/DOS/NFS) >> Saya menggunakan FreeBSD 4.11

2. Setelah instalasi selesai lalu konfigurasi NIC
#/stand/sysinstall
Configure --> Networking --> Interfaces --> (NIC)


3. Untuk membuat router yang mendukung nat,yang harus kita dilakukan adalah kompile kernel
a.
cd /usr/src/sys/i386/conf ,jika belum ada >>
#/stand/sysinstall
Configure --> Distributions --> src --> sys

4. copy kernel asli ke kernel baru (supaya klo error bisa d kembaliin lagi)
#cp GENERIC ROUTER

5. Lalu masukan opsi-opsi ini
#vi ROUTER
ident ROUTER #samain aja sama nama kernelnya
#option untuk NAT
options IPDIVERT
#option untuk firewall dan forward
options IPFILTER
options IPFILTER_LOG
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT
options IPFIREWALL_FORWARD

6. Kompile kernelnya....
#config ROUTER
#cd ../../compile/ROUTER
#make depend && make && make install

7. Reboot Kompiee

8. Konfigurasi ip forward
a. edit file /etc/sysctl.conf
#vi /etc/sysctl.conf
net.inet.ip.forwarding=1 #opsi untuk forwarding
b. edit file rc.conf
#vi /etc/rc.conf
gateway_enable=YES
firewall_enable=YES
firewall_type=OPEN

natd_enable=YES
natd_interface="rl0"
inetd_enable=YES

router_enable=YES
c. buat rule (ipfw) untuk nat --> bikin rule nya enak langsung d masukin k rc.local
#vi /etc/rc.local
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via (nat interface)

9. restart komputer

Setting dan konfigurasi Router Mikrotik

| | 0 komentar
SKENARIO
LAN —> Mikrotik RouterOS —> Modem ADSL —> INTERNET
Untuk LAN, kita menggunakan ip address class C, dengan network 192.168.10.0/24. Untuk Mikrotik RouterOS, kita perlu dua ethernet card. Satu (ether1 – 192.168.1.2/24) untuk sambungan ke Modem ADSL dan satu lagi (ether2 – 192.168.10.1/24) untuk sambungan ke LAN. Untuk Modem ADSL, IP kita set 192.168.1.1/24.
Sebelum mengetikkan apapun, pastikan Anda telah berada pada root menu dengan mengetikkan “/”
1. Set IP untuk masing² ethernet card
ip address add address=192.168.1.2/24 interface=ether1 (public)
ip address add address=192.168.10.1/24 interface=ether2 (local)
Untuk menampilkan hasil perintah di atas ketikkan perintah berikut:
ip address print

Kemudian lakukan testing dengan mencoba nge-ping ke gateway atau ke komputer yg ada pada LAN. Jika hasilnya sukses, maka konfigurasi IP Anda sudah benar
ping 192.168.1.1
ping 192.168.10.10
2. Menambahkan Routing
ip route add gateway=192.168.1.1
3. Setting DNS
ip dns set primary-dns=202.134.1.10 allow-remote-requests=yes
ip dns set secondary-dns=202.134.0.155 allow-remote-requests=yes
Karena koneksi ini menggunakan Speedy dari Telkom, maka DNS yg aq pake ya punya Telkom. Silahkan sesuaikan dengan DNS provider Anda.
Setelah itu coba Anda lakukan ping ke yahoo.com misalnya:
ping yahoo.com
Jika hasilnya sukses, maka settingan DNS sudah benar
4. Source NAT (Network Address Translation) / Masquerading
Agar semua komputer yg ada di LAN bisa terhubung ke internet juga, maka Anda perlu menambahkan NAT (Masquerade) pada Mikrotik.
ip firewall nat add chain=srcnat action=masquerade out-interface=ether1
Sekarang coba lakukan ping ke yahoo.com dari komputer yang ada di LAN
ping yahoo.com
Jika hasilnya sukses, maka setting masquerade sudah benar
5. DHCP (Dynamic Host Configuration Protocol)
Karena alasan supaya praktis, temenku pengin pake DHCP Server. Biar klo tiap ada klien yang konek, dia ga perlu setting IP secara manual. Tinggal obtain aja dari DHCP Server, beres dah. Untungnya Mikrotik ini juga ada fitur DHCP Servernya. Jadi ya ga ada masalah.. 8)
* Membuat IP Address Pool
ip pool add name=dhcp-pool ranges=192.168.0.2-192.168.0.254
* Menambahkan DHCP Network
ip dhcp-server network add address=192.168.10.0/24 gateway=192.168.10.1 dns-server=202.134.1.10,202.134.0.155
* Menambahkan Server DHCP
ip dhcp-server add name=DHCP_LAN disabled=no interface=ether2 address-pool=dhcp-pool
Sekarang coba lakukan testing dari komputer klien, untuk me-request IP Address dari Server DHCP. Jika sukses, maka sekali lagi, settingannya udah bener
6. Management Bandwidth
Agar semua komputer klien pada LAN tidak saling berebut bandwidth, maka perlu dilakukan yg namanya bandwidth management atau bandwidth control, idea: (saya menggunakan simple que supaya lebih mudah ;
queue simple add name=”Billing” target-address=192.168.10.2/32 dst-address=0.0.0.0/0 interface=Local queue=default priority=8 limit-at=16000/32000 max-limit=16000/64000
queue simple add name=”Kasir” target-addresses=192.168.10.3/32 dst-address=0.0.0.0/0 interface=Local parent=Shaping priority=8 queue=default/default limit-at=0/8000 max-limit=0/256000 total-queue=default
Lanjutkan perintah tersebut untuk semua client yang ingin di limit bnadwithnya.
7. Graphing
Mikrotik ini juga dilengkapi dengan fungsi monitoring traffic layaknya MRTG biasa. Jadi kita bisa melihat berapa banyak paket yg dilewatkan pada PC Mikrotik kita.
tool graphing set store-every=5min
Berikutnya yang akan kita monitor adalah paket² yg lewat semua interface yg ada di PC Mikrotik kita, klo di komputerku ada ether1 dan ether2.
tool graphing interface add interface=all store-on-disk=yes
Sekarang coba arahkan browser anda ke IP Router Mikrotik. Klo aq di sini:
http://192.168.10.1/graphs/
Nanti akan ada pilihan interface apa aja yg ada di router Anda. Coba klik salah satu, maka Anda akan bisa melihat grafik dari paket2 yg lewat pada interface tersebut.

Setting Mulai Awal Router FreeBSD

| | 0 komentar
Yangg lagi ngebet pingin cepet bisa freebsd….liwat tol aja ya Jek :) )
1. Install FreeBSD sampek selesai
2. Masukan ip nya :
Edit file rc.conf.
- suwal#ee /etc/rc.conf
contoh :
defaultrouter=”202.xxx.xxx.xxx” –> default router
gateway_enable=”YES”
hostname=”porno.grind.net”
ifconfig_fxp0=”inet 202.xxx.xxx.xxx netmask 255.255.255.240″ -> ke arah ISP
ifconfig_fxp1=”inet 192.168.0.3 netmask 255.255.255.0″ -> ke LAN kita
keymap=”us.iso”
sshd_enable=”YES” –> aktifkan ssh
ipnat_enable=”YES” –> aktifkan ipnat
3. Adduser
suwal# adduser
Username: ahonk
Full name:
Uid (Leave empty for default):
Login group [ahonk]: wheel
Login group is wheel. Invite ahonk into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin) [sh]: tcsh
Home directory [/home/ahonk]:
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username : ahonk
Password : *****
Full Name :
Uid : 1004
Class :
Groups : wheel
Home : /home/ahonk
Shell : /bin/tcsh
Locked : no
OK? (yes/no): yes
adduser: INFO: Successfully added (ahonk) to the user database.
Add another user? (yes/no): no
Goodbye!
4. Buat file ipnat.rules nya
- suwal# ee /etc/ipnat.rules
conto nya : map fxp0 192.168.0.0/24 -> 202.xxx.xxx.xxx/32
5. Paling gampang reboot dulu, biar script di rc.conf nya ke load….
6. Selesai
7. Monggo di coba JEK. . . . . . . . . . . . . . . . . . . . . . . .
sampunnnnnnnnnnn
Nb. Untuk limit, proxy, compile kernel dll bisa dilihat di artikel sebelumnya (kalau ada, klo gak , google aja yah…):D

Setting Mikrotik sebagai Transparent Web-Proxy

| | 0 komentar
  1. Seperti biasa, kita persiapkan alat perang kita biasanya, u know what I mean (kopi ama rokok) :D
  2. Untuk konfigurasi dasar seperti setting IP Address, kita lanjutkan dari artikel sebelumnya. Jadi kita hanya tinggal menambahkan fungsi web proxy saja.
  3. Setelah kita masuk ke console dari mikrotik, kita mulai dengan membuat web-proxy itu sendiri.
    [admin@MikroTik] > ip web-proxy
    [admin@MikroTik] ip web-proxy> set enabled=yes
    [admin@MikroTik] ip web-proxy> set src-address=0.0.0.0
    [admin@MikroTik] ip web-proxy> set port=8080
    [admin@MikroTik] ip web-proxy> set hostname=proxy.infonesia.info //ganti dengan nama proxy anda
    [admin@MikroTik] ip web-proxy> set transparent-proxy=yes
    [admin@MikroTik] ip web-proxy> set parent-proxy=0.0.0.0:0
    [admin@MikroTik] ip web-proxy> set cache-administrator=web@infonesia.info //ganti dengan alamt email anda
    [admin@MikroTik] ip web-proxy> set max-object-size=4096KiB
    [admin@MikroTik] ip web-proxy> set cache-drive=system
    [admin@MikroTik] ip web-proxy> set max-cache-size=unlimited
    [admin@MikroTik] ip web-proxy> set max-ram-cache-size=unlimited
  4. Setelah langkah-langkah diatas selesai, kita akan coba forward paksa akses keluar menuju ke proxy dahulu dengan langkah-langkah sebagai berikut
    [admin@MikroTik] ip web-proxy> /ip firewall nat add chain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080
    [admin@MikroTik] ip web-proxy> /ip firewall nat add chain=dstnat protocol=tcp dst-port=3128 action=redirect to-ports=8080
    [admin@MikroTik] ip web-proxy> /ip firewall nat add chain=dstnat protocol=tcp dst-port=8080 action=redirect to-ports=8080
Ok, pembuatan proxy kita sudah selesai. Untuk mengecek apakah setup proxy  kita sudah benar, kita akan coba blokir akses untuk suatu situs. Untuk kali ini kita akan memakai contoh friendster.com untuk diblokir. Cara untuk memblokir situs sebagai berikut :
[admin@MikroTik] ip web-proxy> access add url=friendster.com method=any action=deny
Kemudian kita coba di komputer klien, dengan browser coba untuk mengakses situs friendster.com. Jika waktu membuka situs tersebut keluar seperti gambar di bawah ini, maka konfigurasi proxy anda berhasil. Jika masih bisa membuka halaman utama situs tersebut, maka konfigurasi anda masih salah. Coba trace kesalahan anda.

Selamat mencoba :)

Creating Pseudo-vector Wallpapers for Desktop (Part 1)

| | 0 komentar

Final Image Preview

Creating Pseudo-vector Wallpapers for Desktop

Step 1

Create a new document with the resolution 1900×1200 for this tutorial with white background. Select Gradient Tool (G) and drag a gradient on canvas like on image below.
Creating Pseudo-vector Wallpapers for Desktop 1
Creating Pseudo-vector Wallpapers for Desktop 2

Step 2

Select the Elliptical Marquee Tool to create selection similar to the picture below and fill it with linear gradient by using colors of #81ec00 and #41bf01 on the new layer. It will be meadow.
Creating Pseudo-vector Wallpapers for Desktop 3
Creating Pseudo-vector Wallpapers for Desktop 4

Step 3

With selection still active, apply Inner Shadow layer style to this layer.
Creating Pseudo-vector Wallpapers for Desktop 5
Creating Pseudo-vector Wallpapers for Desktop 6

Step 4

Keep selection active. Create new layer under the current layer and fill it with white color. Now remove selection with Select > Deselect (Ctrl+D) and apply Filter > Blur > Gaussian Blur with these settings:
Creating Pseudo-vector Wallpapers for Desktop 7
Set up layer opacity to 53% and you will have what i have now:
Creating Pseudo-vector Wallpapers for Desktop 8

Step 5

Now let´s start creating clouds on the sky. Create a new layer above all the layers, then use Elliptical Marquee Tool to create round selection and fill it with white color.
Creating Pseudo-vector Wallpapers for Desktop 9

Step 6

Remove selection with Ctrl+D. Duplicate this layer with Ctrl+J two times and move both duplicates like on image below. For the image on the right, click on layer to select it and then reduce the size with Edit > Free Transform.
Creating Pseudo-vector Wallpapers for Desktop 10

Step 7

Merge three of these layers in one and correct the bottom part of the cloud. Use the Pen Tool to create shape similar to the shape on my screenshot. If you prefer you can use other tools like Lasso Tool but i prefer Pen Tool in this case.
Creating Pseudo-vector Wallpapers for Desktop 11

Step 8

Click on Paths and select Path (if window not visible go to Windows > Paths), click on selection icon on the palette which says Load Path as a Selection (Ctrl+click on shape thumbnail on Path also works). Go back to layers palette, invert selection with Ctrl+Shift+I (Select > Inverse) and press Delete button to clear selected area.
Creating Pseudo-vector Wallpapers for Desktop 12
Creating Pseudo-vector Wallpapers for Desktop 13

Step 9

Finally load selection of current layer with cloud by using Select > Load Selection and fill selected area with linear gradient by using colors of #e7f6fd, #b5e4fd.
Creating Pseudo-vector Wallpapers for Desktop 14
Creating Pseudo-vector Wallpapers for Desktop 15

Step 10

Remove selection with Ctrl+D. After that apply Inner Shadow layer style to this layer.
Creating Pseudo-vector Wallpapers for Desktop 16
Creating Pseudo-vector Wallpapers for Desktop 17

Step 11

We now have one cloud but we need more. Duplicate this layer a few times with Ctrl+J and move copies to the left and right. Apply Edit > Transform > Flip Horizontal for some copies and apply Edit > Free Transform to change sizes to some of them.
Creating Pseudo-vector Wallpapers for Desktop 18

Step 12

Now we need to create flowers. Select the Elliptical Marquee Tool and create oval selection, then fill it with gradient. It will be one of flower´s petals.
Creating Pseudo-vector Wallpapers for Desktop 19
Creating Pseudo-vector Wallpapers for Desktop 20

Step 13

Remove selection with Ctrl+D and apply Drop Shadow layer style for current layer.
Creating Pseudo-vector Wallpapers for Desktop 21

Step 14

Duplicate this layer with Ctrl+J a few times. After that apply Ctrl+T to rotate each layer and organize it like i have. We now have flower’s petals.
Creating Pseudo-vector Wallpapers for Desktop 22

Step 15

Now we have to form the middle of flower. Create a new layer and using the Ellipse Tool create round shape with foreground color of #ffa200. After that apply Drop Shadow and Inner Glow layer styles to shape.
Creating Pseudo-vector Wallpapers for Desktop 23
Creating Pseudo-vector Wallpapers for Desktop 24
Creating Pseudo-vector Wallpapers for Desktop 25

Step 16

Create a new layer where we create a stem and leaves of camomile with color #9cfe15 by using the Pen Tool. Do similiar steps as used to create cloud (Load Path as selection and then fill it with color).
Creating Pseudo-vector Wallpapers for Desktop 26

Step 17

Create more camomiles on the same way and put it to the different parts of our canvas to create feeling that they were knocked up upwards.
Creating Pseudo-vector Wallpapers for Desktop 27

Part 2

Part 2 of this tutorial has been published.