Arsip untukUncategorized

Trouble Shooting TCP/IP

Trouble Shooting TCP/IP

Misalkan komputer Linux anda mestinya tersambung ke network, tapi kok tidak jalan. Bagaimana mencari tahu salahnya, sekaligus membetulkan ? Level: Wannabee

Pertama, bayangkan bahwa kalau anda kirim paket network, urut-urutan jalannya adalah sebagai berikut:

  1. Aplikasi
  2. Protocol TCP/IP
  3. Driver Kernal
  4. Card network
  5. Kabel network
  6. Komputer lain (gateway)
  7. Internet

Secara singkat, algoritma trouble shooting adalah sbb:

  1. TEST DEVICE. Kalau benar loncat ke TEST TCP/IP. Kalau salah SET DEVICE lalu coba lagi. Kalau masih salah juga, periksa CARD dan DRIVER kernel Linux anda.
  2. TEST TCP/IP. Kalau benar loncat ke TEST PING, kalau salah ke SET TCP/IP lalu coba lagi.
  3. TEST PING-GATEWAY. Kalau benar loncat ke TEST PING, kalau salah PERIKSA KABEL.
  4. TEST PING-INTERNET. Kalau benar ya sudah, selesai. Kalau salah, set routing lalu coba lagi. Kalau masih salah juga, tamat riwayat dah. Sambungan Internet anda pasti sedang putus.

Sekarang detailnya. Untuk trouble shooting kita pakai CLI (command line interface) saja. Jadi luncurkan terminal dan su jadi root, atau login di console sebagai root.TEST DEVICE

Pertama, coba test device network anda memang sudah ada. Caranya …

root@engrob4:# cat /proc/net/dev
Inter-|   Receive           |  Transmit
 face | (dipotong biar tidak kepanjangan)
    lo:   83505     .............
  eth0: 650720962 ........

Yang penting di sini, lihat kalau sudah ada baris eth0:. Kalau ada, artinya device eth0 anda sudah UP. Silahkan lanjut ke TEST TCP/IP. Kalau belum, siap-siap kerja berat :) Agar device eth0 UP, Linux anda mesti memuat driver yang sesuai dengan network card anda. Biasanya, hal ini otomatis di autodetect oleh distro anda. Di Vector Linux, coba:

root:# vlautosetup

Kalau tidak bisa autodetect, cilaka deh. Coba cara manual, edit file /etc/modules.conf. Anda mesti tambah baris seperti ini:

## Untuk ethernet card Intel Express 100
alias eth0 e100
## Ini buat NE200 compatible
# alias eth0 ne2k-pci
## Ini buat realtek
# alias eth0 8139too

Secara teknis, baris itu memberi tahu untuk memuat driver yang tepat bagi device eth0. Jadi … ya anda mesti tahu benar apa tipe network card anda, dan apa driver yang diperlukan. Driver yang disediakan kernal anda bisa dilihat di

## ganti versi sesuai kernel anda
root:# ls /lib/modules/2.4.26/kernel/drivers/net/

Duh, sorry kalau terlalu low level. Habis mau bagaimana lagi. Jadi … berdoa saja supaya autodetect-nya jalan ;-) Usaha terakhir, anda bisa coba ganti network card (barangkali rusak) atau kompile ulang kernal (barangkali driver belum ada).

TEST PROTOCOL

Ok, asumsi device sudah UP. Mari test apakah protokol TCP/IP anda sudah jalan

root:# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:A0:C9:5F:1E:DF
          inet addr:10.0.0.100  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1963997 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1883860 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:650565316 (620.4 Mb)  TX bytes:645290505 (615.3 Mb)
          Interrupt:5 Base address:0xd800 Memory:e0100000-e0100038 

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:756 errors:0 dropped:0 overruns:0 frame:0
          TX packets:756 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:83505 (81.5 Kb)  TX bytes:83505 (81.5 Kb)

Lihat kalau eth0 sudah ada dan benar IP-nya. Kalau iya, anda bisa langsung loncat ke TEST PING.Kalau belum seperti itu, anda perlu set ulang TCP/IP. Di Slackware atau Vector Linux, jalankan ‘netconfig’, atau edit file /etc/rc.d/rc.inet1. Distro lain pasti ada juga menunya, coba dicari. Kalau nggak ketemu, ini cara klasik.

## ganti 10.0.0.100 dan 255.255.255.0 sesuai network anda
root:# ifconfig eth0 10.0.0.100 netmask 255.255.255.0 up

## Coba test lagi
root:# ifconfig eth0

Mestinya network anda akan jalan. Kalau sampai nggak jalan, kernel anda tidak support TCP/IP. Rasanya nggak mungkin deh.TEST PING GATEWAY

Sampai tahap ini, network internal di komputer anda sudah beres. Kita akan coba koneksi keluarnya. Untuk itu anda harus tahu alamat IP gateway di network anda.

## ganti 10.0.0.254 dengan alamat gateway anda
root:# ping -c 3 10.0.0.254
PING 10.0.0.254 (84) bytes of data.
64 bytes from 10.0.0.254: icmp_seq=1 ttl=255 time=4.61 ms
64 bytes from 10.0.0.254: icmp_seq=2 ttl=255 time=1.10 ms
64 bytes from 10.0.0.254: icmp_seq=3 ttl=255 time=1.05 ms

--- 110.0.0.254 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2023ms
rtt min/avg/max/mdev = 1.051/2.255/4.614/1.668 ms

Kalau keluarannya seperti di atas, lega. Itu artinya koneksi keluar beres. Kalau sampai timeout tidak ada balasan, coba periksa kabel dan hub ethernet anda. Atau barangkali juga si gateway-nya sedang down.TEST PING INTERNET

Nah, sekarang coba ping salah satu komputer di Internet. Biasanya, yang aman buat di-ping adalah DNS server si ISP (Internet service provider).

## Ganti 123.123.123.123 dengan alamat IP Internet yang anda tahu
root:# ping 123.123.123.123

Kalau tidak terbalas, coba lihat tabel routing. Mestinya mirip-mirip seperti ini

root:# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.0.0.254   0.0.0.0         UG    0      0        0 eth0

Perhatikan baris terakhir, destination 0.0.0.0 artinya ke semua network, dan kolom gateway-nya harus seauai dengan IP gateway anda. Konfigurator seperti netconfig mestinya sudah men-set ini buat anda. Kalau belum, coba pakai cara manual:

root:# route add default gw 10.0.0.254

Kalau default gateway sudah betul tapi ping internet masih belum bisa juga, ada beberapa kemungkinan: komputer anda di blok oleh si-gateway, setting firewall digateway salah, koneksi gateway ke ISP putus, dll. Buat tahu putusnya dimana, coba

root:# traceroute 123.123.123.123

Tapi biar sudah tahu, biasanya anda tidak bisa berbuat apa-apa, selain menunggu koneksi pulih kembali.Segitu dulu. Kesempatan depan kita bahas trouble shooting DNS.

Tutorial Mikrotik VPN : Point to Point Tunnel Protocol (PPTP)

Summary

PPTP (Point to Point Tunnel Protocol) supports encrypted tunnels over IP. The MikroTik RouterOS implementation includes support fot PPTP client and server.
General applications of PPTP tunnels:
* For secure router-to-router tunnels over the Internet
* To link (bridge) local Intranets or LANs (when EoIP is also used)
* For mobile or remote clients to remotely access an Intranet/LAN of a company (see PPTP setup for Windows for more information)
Each PPTP connection is composed of a server and a client. The MikroTik RouterOS may function as a server or client – or, for various configurations, it may be the server for some connections and client for other connections. For example, the client created below could connect to a Windows 2000 server, another MikroTik Router, or another router which supports a PPTP server.
Description
PPTP is a secure tunnel for transporting IP traffic using PPP. PPTP encapsulates PPP in virtual lines that run over IP. PPTP incorporates PPP and MPPE (Microsoft Point to Point Encryption) to make encrypted links. The purpose of this protocol is to make well-managed secure connections between routers as well as between routers and PPTP clients (clients are available for and/or included in almost all OSs including Windows).

PPTP includes PPP authentication and accounting for each PPTP connection. Full authentication and accounting of each connection may be done through a RADIUS client or locally.

MPPE 40bit RC4 and MPPE 128bit RC4 encryption are supported.

PPTP traffic uses TCP port 1723 and IP protocol GRE (Generic Routing Encapsulation, IP protocol ID 47), as assigned by the Internet Assigned Numbers Authority (IANA). PPTP can be used with most firewalls and routers by enabling traffic destined for TCP port 1723 and protocol 47 traffic to be routed through the firewall or router.

PPTP connections may be limited or impossible to setup though a masqueraded/NAT IP connection. Please see the Microsoft and RFC links at the end of this section for more information.
PPTP Client Setup
Submenu level : /interface pptp-client
Property Description
name (name; default: pptp-out1) – interface name for reference
mtu (integer; default: 1460) – Maximum Transmit Unit. The optimal value is the MTU of the interface the tunnel is working over decreased by 40 (so, for 1500-byte ethernet link, set the MTU to 1460 to avoid fragmentation of packets)
mru (integer; default: 1460) – Maximum Receive Unit. The optimal value is the MTU of the interface the tunnel is working over decreased by 40 (so, for 1500-byte ethernet link, set the MRU to 1460 to avoid fragmentation of packets)
connect-to (IP address)- the IP address of the PPTP server to connect to
user (string)- user name to use when logging on to the remote server
password (string; default: “”)- user password to use when logging to the remote server
profile (name; default: default) – profile to use when connecting to the remote server
add-default-route (yes | no; default: no) – whether to use the server which this client is connected to as its default router (gateway)
Example
To set up PPTP client named test2 using username john with password john to connect to the 10.1.1.12 PPTP server and use it as the default gateway:

[admin@MikroTik] interface pptp-client> add name=test2 connect-to=10.1.1.12 \
\… user=john add-default-route=yes password=john
[admin@MikroTik] interface pptp-client> print
Flags: X – disabled, R – running
0 X name=”test2″ mtu=1460 mru=1460 connect-to=10.1.1.12 user=”john”
password=”john” profile=default add-default-route=yes

[admin@MikroTik] interface pptp-client> enable 0

Monitoring PPTP Client
Command name : /interface pptp-client monitor
Property Description
Statistics:

uptime (time) – connection time displayed in days, hours, minutes, and seconds
encoding (string) – encryption and encoding (if asymmetric, separated with ‘/’) being used in this connection
status (string) – status of the client:
# Dialing – attempting to make a connection
# Verifying password… – connection has been established to the server, password verification in progress
# Connected – self-explanatory
# Terminated – interface is not enabled or the other side will not establish a connection

Example
Example of an established connection:

[admin@MikroTik] interface pptp-client> monitor test2
uptime: 4h35s
encoding: MPPE 128 bit, stateless
status: Connected
[admin@MikroTik] interface pptp-client>

PPTP Server Setup
Submenu level : /interface pptp-server server

[admin@MikroTik] interface pptp-server server> print
enabled: no
mtu: 1460
mru: 1460
authentication: mschap2
default-profile: default
[admin@MikroTik] interface pptp-server server>

Description
The PPTP server supports unlimited connections from clients. For each current connection, a dynamic interface is created.
Property Description
enabled (yes | no; default: no) – defines whether PPTP server is enabled or not
mtu (integer; default: 1460) – Maximum Transmit Unit. The optimal value is the MTU of the interface the tunnel is working over decreased by 40 (so, for 1500-byte ethernet link, set the MTU to 1460 to avoid fragmentation of packets)
mru (integer; default: 1460) – Maximum Receive Unit. The optimal value is the MTU of the interface the tunnel is working over decreased by 40 (so, for 1500-byte ethernet link, set the MTU to 1460 to avoid fragmentation of packets)
authentication (multiple choice: pap | chap | mschap1 | mschap2; default: mschap2) – authentication algorithm
default-profile (name; default: default) – default profile to use
Example
To enable PPTP server:

[admin@MikroTik] interface pptp-server server> set enabled=yes
[admin@MikroTik] interface pptp-server server> print
enabled: yes
mtu: 1460
mru: 1460
authentication: mschap2
default-profile: default
[admin@MikroTik] interface pptp-server server>

PPTP Server Users
Submenu level : /interface pptp-server
Description
There are two types of items in PPTP server configuration – static users and dynamic connections. A dynamic connection can be established if the user database or the default-profile has its local-address and remote-address set correctly. When static users are added, the default profile may be left with its default values and only P2P user (in /ppp secret) should be configured. Note that in both cases P2P users must be configured properly.
Property Description
name – interface name
user – the name of the user that is configured statically or added dynamically

Statistics:

mtu – shows (cannot be set here) client’s MTU
client-address – shows (cannot be set here) the IP of the connected client
uptime – shows how long the client is connected
encoding (string) – encryption and encoding (if asymmetric, separated with ‘/’) being used in this connection
Example
To add a static entry for ex1 user:

[admin@MikroTik] interface pptp-server> add user=ex1
[admin@MikroTik] interface pptp-server> print
Flags: X – disabled, D – dynamic, R – running
# NAME USER MTU CLIENT-ADDRESS UPTIME ENC…
0 DR ex 1460 10.0.0.202 6m32s none
1 pptp-in1 ex1
[admin@MikroTik] interface pptp-server>

In this example an already connected user ex is shown besides the one we just added.
PPTP Router-to-Router Secure Tunnel Example
The following is an example of connecting two Intranets using an encrypted PPTP tunnel over the Internet.

There are two routers in this example:

* [HomeOffice]
Interface LocalHomeOffice 10.150.2.254/24
Interface ToInternet 192.168.80.1/24

* [RemoteOffice]
Interface ToInternet 192.168.81.1/24
Interface LocalRemoteOffice 10.150.1.254/24

Each router is connected to a different ISP. One router can access another router through the Internet.

On the PPTP server a user must be set up for the client:

[admin@HomeOffice] ppp secret> add name=ex service=pptp password=lkjrht
local-address=10.0.103.1 remote-address=10.0.103.2
[admin@HomeOffice] ppp secret> print detail
Flags: X – disabled
0 name=”ex” service=pptp caller-id=”” password=”lkjrht” profile=default
local-address=10.0.103.1 remote-address=10.0.103.2 routes==””

[admin@HomeOffice] ppp secret>

Then the user should be added in the PPTP server list:

[admin@HomeOffice] interface pptp-server> add user=ex
[admin@HomeOffice] interface pptp-server> print
Flags: X – disabled, D – dynamic, R – running
# NAME USER MTU CLIENT-ADDRESS UPTIME ENC…
0 pptp-in1 ex
[admin@HomeOffice] interface pptp-server>

And finally, the server must be enabled:

[admin@HomeOffice] interface pptp-server server> set enabled=yes
[admin@HomeOffice] interface pptp-server server> print
enabled: yes
mtu: 1460
mru: 1460
authentication: mschap2
default-profile: default
[admin@HomeOffice] interface pptp-server server>

Add a PPTP client to the RemoteOffice router:

[admin@RemoteOffice] interface pptp-client> add connect-to=192.168.80.1 user=ex \
\… password=lkjrht disabled=no
[admin@RemoteOffice] interface pptp-client> print
Flags: X – disabled, R – running
0 R name=”pptp-out1″ mtu=1460 mru=1460 connect-to=192.168.80.1 user=”ex”
password=”lkjrht” profile=default add-default-route=no

[admin@RemoteOffice] interface pptp-client>

Thus, a PPTP tunnel is created between the routers. This tunnel is like an Ethernet point-to-point connection between the routers with IP addresses 10.0.103.1 and 10.0.103.2 at each router. It enables ‘direct’ communication between the routers over third party networks.

To route the local Intranets over the PPTP tunnel – add these routes:

[admin@HomeOffice] > ip route add dst-address 10.150.1.0/24 gateway 10.0.103.2
[admin@RemoteOffice] > ip route add dst-address 10.150.2.0/24 gateway 10.0.103.1

On the PPTP server it can alternatively be done using routes parameter of the user configuration:

[admin@HomeOffice] ppp secret> print detail
Flags: X – disabled
0 name=”ex” service=pptp caller-id=”” password=”lkjrht” profile=default
local-address=10.0.103.1 remote-address=10.0.103.2 routes==””

[admin@HomeOffice] ppp secret> set 0 routes=”10.150.1.0/24 10.0.103.2 1″
[admin@HomeOffice] ppp secret> print detail
Flags: X – disabled
0 name=”ex” service=pptp caller-id=”” password=”lkjrht” profile=default
local-address=10.0.103.1 remote-address=10.0.103.2
routes=”10.150.1.0/24 10.0.103.2 1″

[admin@HomeOffice] ppp secret>

Test the PPTP tunnel connection:

[admin@RemoteOffice]> /ping 10.0.103.1
10.0.103.1 pong: ttl=255 time=3 ms
10.0.103.1 pong: ttl=255 time=3 ms
10.0.103.1 pong: ttl=255 time=3 ms
ping interrupted
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 3/3.0/3 ms

Test the connection through the PPTP tunnel to the LocalHomeOffice interface:

[admin@RemoteOffice]> /ping 10.150.2.254
10.150.2.254 pong: ttl=255 time=3 ms
10.150.2.254 pong: ttl=255 time=3 ms
10.150.2.254 pong: ttl=255 time=3 ms
ping interrupted
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 3/3.0/3 ms

To bridge a LAN over this secure tunnel, please see the example in the ‘EoIP’ section of the manual. To set the maximum speed for traffic over this tunnel, please consult the ‘Queues’ section.

Connecting a Remote Client via PPTP Tunnel
The following example shows how to connect a computer to a remote office network over PPTP encrypted tunnel giving that computer an IP address from the same network as the remote office has (without need of bridging over eoip tunnels)

Please, consult the respective manual on how to set up a PPTP client with the software You are using.

The router in this example:

* [RemoteOffice]
Interface ToInternet 192.168.81.1/24
Interface Office 10.150.1.254/24

The client computer can access the router through the Internet.

On the PPTP server a user must be set up for the client:

[admin@RemoteOffice] ppp secret> add name=ex service=pptp password=lkjrht
local-address=10.150.1.254 remote-address=10.150.1.2
[admin@RemoteOffice] ppp secret> print detail
Flags: X – disabled
0 name=”ex” service=pptp caller-id=”” password=”lkjrht” profile=default
local-address=10.150.1.254 remote-address=10.150.1.2 routes==””

[admin@RemoteOffice] ppp secret>

Then the user should be added in the PPTP server list:

[admin@RemoteOffice] interface pptp-server> add name=FromLaptop user=ex
[admin@RemoteOffice] interface pptp-server> print
Flags: X – disabled, D – dynamic, R – running
# NAME USER MTU CLIENT-ADDRESS UPTIME ENC…
0 FromLaptop ex
[admin@RemoteOffice] interface pptp-server>

And the server must be enabled:

[admin@RemoteOffice] interface pptp-server server> set enabled=yes
[admin@RemoteOffice] interface pptp-server server> print
enabled: yes
mtu: 1460
mru: 1460
authentication: mschap2
default-profile: default
[admin@RemoteOffice] interface pptp-server server>

Finally, the proxy APR must be enabled on the ‘Office’ interface:

[admin@RemoteOffice] interface ethernet> set Office arp=proxy-arp
[admin@RemoteOffice] interface ethernet> print
Flags: X – disabled, R – running
# NAME MTU MAC-ADDRESS ARP
0 R ToInternet 1500 00:30:4F:0B:7B:C1 enabled
1 R Office 1500 00:30:4F:06:62:12 proxy-arp
[admin@RemoteOffice] interface ethernet>

ref: http://www.mikrotik.com/documentation//manual_2.7/Interface/PPTP.html

Entri ini ditulis oleh Yoyok Riawan dan dikirimkan oleh Agustus 21, 2007 at 2:32 am dan disimpan di bawah Mikrotik. Tandai permalink. Telusuri setiap komentar di sini dengan RSS feed kiriman ini

Instalasi USB WLAN ZD1211 di Linux untuk Wajanbolic e-goen

Salah satu cara untuk menghemat investasi peralatan akses ke Internet menggunakan peralatan wireless internet adalah menggunakan teknik wajanbolic e-goen http://pg.photos.yahoo.com/ph/gunpwk/my_photos. Teknik wajanbolic e-goen sangat kreatif dengan menggunakan USB WLAN, yang dimasukan ke antenna kaleng, dan di extend kabel USB-nya menggunakan kabel UTP dan sebuah wajan sebagai reflector. Dengan teknik ini, biaya disisi pelanggan dapat di tekan menjadi hanya sekitar Rp. 350.000,- saja, jadi jauh di bawah sebuah handphone – tapi dapat digunakan untuk akses Internet kecepatan 54Mbps!!

Sedikit penjelasan tentang teknik membuat wajanbolic e-goen ini dapat dibaca di situs Sejarah Internet Indonesia http://wikihost.org/wikis/indonesiainternet/ pada link Wajanbolic e-goen. Detail material yang dibutuhkan untuk membuat wajanbolic e-goen adalah:

l Tutup panci atau Wajan penggorengan yang cukup besar dengan diameter 70+ cm.

l Pipa Pralon 3″ untuk feeder

l Tutup pralon 3″ : 2 buah

l Pralon 1″ , buat support pemasangan Wifi USB

l Tutup pralon 1″ : 1 buah

l Baut besar : 1 buah

l Baut kecil : 1 buah

l Aluminum tape, untuk melapisi pralon 3″ yg dipakai buat feeder

l Rubber Tape, untuk nutup Pipa listrik

l Pipa listrik yg kecil (diameter 1 cm), untuk pelindung sambungan kabel UTP

Hardware yang butuhkan

l USB WLAN, saya kebetulan mempunyai USB WLAN LevelOne & JAHT.

l USB 2.0 Extender cable, salah satu yang di sarankan oleh Pak E-goen adalah ATen Model No. UE-250.

Beberapa ukuran yang perlu di perhatikan adalah,

l Untuk wajan dengan ke dalaman 20cm, diameter 70cm, maka titik fokus para bola kira-kira berada pada 15.3 cm. Untuk wajan yang berbeda ukuran diameter-nya maka titik fokus akan berbeda.

l Panjang pralon 3” yang harus ditutup rubber tape adalah 25cm.

l Total panjang pralon 3” yang dibutuhkan adalah panjang fokus di tambah pralon yang ditutup rubber tape, jadi total sekitar 41cm. Titik fokus lebih kritis, jadi harus tepat di 15.3cm, sementara rubber tape tidak kritis, jadi dapat lebih panjang.

l Posisi lubang untuk USB WLAN di pralon 3” adalah 8.3cm dari ujung pralon yang ber-rubber tape,

File spreadsheet utk menghitung berbagai dimensi antenna ini dapat di ambil di http://www.telkomspeedy.com di pojok Onno di sebelah kiri bawah di bagian file masuk ke folder /library-onno-eng/practical-guide-rebelnet/the-guide/wifi/.

Gain antenna wajanbolic e-goen ini cukup tinggi sekitar 21-23dBi, dapat digunakan untuk menyambungkan sebuah rumah ke Access Point Wireless dalam jarak 2-3 km dengan relatif mudah.

Salah satu kesulitan dalam menggunakan USB WLAN adalah memperpanjang kabel USB ke komputer. Kabel USB WLAN bawaan biasanya sangat pendek kurang dari satu (1) meter. Untuk memperpanjang kabel USB WLAN ini agar komputer di dalam rumah dapat di sambungkan ke antenna Wajanbolic yang berada di luar rumah dapat dilakukan dengan memperpanjang kabel USB menggunakan USB Extender dan memotong kabel USB dan menyambungkannya dengan kabel UTP.

Seperti kita tahu, kabel UTP mempunyai 8 kabel sementara kabel USB hanya ada 4 kabel. Kita perlu menyolder kabel

l USB Warna Putih ke UTP warna putih

l USB Warna Hijau ke UTP warna hijau

l USB Warna Merah ke 2 kabel UTP (dapat merah dan satu lagi yang lain).

l USB Warna Hitam ke sisa kabel UTP yang ada, supaya cukup arus yang besar.

Kesulitan utama bagi penggunakan Linux untuk mengadopsi teknik ini adalah mencari driver USB yang cocok untuk USB WLAN yang digunakan. Saya kebetulan menggunakan USB WLAN LevelOne dan USB WLAN JAHT yang kedua-nya menggunakan driver yang sama yaitu ZD1211 dari Atheros. Pada kesempatan ini saya coba jelaskan teknik menginstalasi driver ZD1211 di Fedora Core 5 yang sudah saya modifikasi kernel-nya menggunakan kernel 2.6.16.20, saya belum sempat mencoba dengan kernel yang baru 2.6.17.11.


Driver USB WLAN ZD1211 dapat di ambil di http://www.atheros.com/RD/downloads/download_ZD1211.htm. Beberapa file yang mungkin menarik untuk di ambil dan sangat membantu dalam proses instalasi ada dibagian Linux (kernel 2.4/2.6), adalah,

l Drvier 2_6_0_0

l WPA Supplicant

l User Guide

sebelum melakukan instalasi, cek apakah “echi-hcd” terinstall menggunakan perintah

# lsmod | grep ehci-hcd

umumnya ehci-hcd terinstall. Instalasi driver ZD1211 tidak sukar, yang perlu dilakukan adalah

# cp ZD1211LnxDrv_2_6_0_0.tar.gz /usr/local/src

# cd /usr/local/src

# tar zxvf ZD1211LnxDrv_2_6_0_0.tar.gz

# cd /usr/local/src/ZD1211LnxDrv_2_6_0_0

edit Makefile supaya

# if the kernel is 2.6.x, trun on this

KERN_26=y

KERNEL_SOURCE=/usr/src/linux-2.6.16.20

# if the kernel is 2.4.x, trun on this

#KERN_24=y

#KERNEL_SOURCE=/usr/src/linux-2.4.26

Bagi anda yang mengunakan LevelOne / JAHT berarti anda membutuhkan driver ZD1211, proses compile dan install driver menggunakan perintah

# make clean

# make ZD1211REV_B=0

# make ZD1211REV_B=0 install

Bagi anda yang membutuhkan ZD1211B maka proses install yang dilakukan adalah menggunakan perintah,

# make clean

# make ZD1211REV_B=1

# make ZD1211REV_B=1 install

Untuk melihat daftar USB WLAN yang membutuhkan ZD1211 & ZD1211b dapat dilihat pada URL http://zd1211.ath.cx/

Lakukan depmod

# depmod

Boot linux anda. PC anda akan secara automatis akan mendeteksi USB WLAN dan mulai dapat di operasikan.

Biasanya langkah pertama yang akan dilakukan adalah menscan frekuensi untuk melihat apakah USB WLAN yang kita gunakan dapat memonitor frekuensi atau tidak. Perintah yang perlu di jalankan adalah

# iwlist scanning

Contoh hasil sebuah proses scannning adalah sebagai berikut

# iwlist scanning

eth1 Scan completed :

Cell 01 – Address: 00:02:B3:35:42:71

ESSID:”SWADAYA-JAHT”

Protocol:IEEE 802.11bg

Mode:Master

Channel:1

Encryption key:off

Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s

9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s

48 Mb/s; 54 Mb/s

Quality=86/100 Signal level=-44 dBm

Extra: Last beacon: 220ms ago

Cell 02 – Address: 00:16:B6:EC:DC:F9

ESSID:”<hidden>”

Protocol:IEEE 802.11b

Mode:Master

Channel:1

Encryption key:off

Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s

Quality=87/100 Signal level=-42 dBm

Extra: Last beacon: 248ms ago

Ada beberapa informasi yang dapat kita lihat dari sebuah proses scanning, seperti, Access Point mana saja yang dapat di monitor, kekuatan sinyal, kecepatan yang didukung, protokol yang digunakan, mode operasi Access Point, MAC address Access Point dll.

Beberapa perintah yang akan membantu proses operasional USB WLAN yang terdeteksi sebagai eth0 yang akan menggunakan Access Point dengan SSID NAMASSID, gateway 192.168.0.1 dan IP 192.168.0.2 adalah sebagai berikut.

# iwconfig eth0 essid NAMASSID

# ifconfig eth0 192.168.0.2

# route add default gw 192.168.0.1

Contoh hasil peritah iwconfig sesudah PC kita berasosiasi dengan Access Point NAMASSID

# iwconfig

eth0 unassociated ESSID:”NAMASSID”

Mode:Managed Frequency=2.412 GHz Access Point: 00:02:B3:35:42:71

Bit Rate=54Mb/s Tx-Power:16 dBm

Retry limit:15 RTS thr:off Fragment thr:off

Encryption key:off

Power Management:off

Link Quality:0 Signal level:0 Noise level:0

Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0

Tx excessive retries:0 Invalid misc:309 Missed beacon:0

Jika digunakan DHCP dalam jaringan Wireless, maka dapat digunakan perintah

# dhclient eth0

Semoga tulisan singkat ini dapat bermanfaat untuk membuat RT/RW-net sederhana yang dapat dikembangkan menggunakan NAT, Squid di PC Linux kita untuk menyebarkan ke tetangga.by Onno W. Purbo

web-proxy clean automatic

NAT PROXY
/ ip firewall nat add chain=dstnat src-address=10.0.0.0/16 dst-address=0.0.0.0/0 protocol=tcp dst-port=80 \
action=redirect to-ports=3126 comment=”Proxy” disabled=no

Proxy-off
/ system script add name=”Proxy-off” source=”/ip firewall nat set \[/ip firewall nat find \
comment=\”Proxy\”\] disable=yes
\n/ip web-proxy set enabled=no” \
policy=ftp,reboot,read,write,policy,test,winbox,password

Proxy-limpacache
/ system script add name=”Proxy-limpacache” source=”/ip web-proxy clear-cache” \
policy=ftp,reboot,read,write,policy,test,winbox,password

Proxy-on
/ system script add name=”Proxy-on” source=”/ip web-proxy set enabled=yes
\n/ip firewall nat \
set \[/ip firewall nat find comment=\”Proxy\”\] disable=no
\n” \
policy=ftp,reboot,read,write,policy,test,winbox,password

scheduler proxy-off
/ system scheduler add name=”control-proxy-off” on-event=Proxy-off start-date=nov/29/2006 start-time=02:30:00 interval=15d comment=”” disabled=no

scheduler proxy-limpacache
/ system scheduler add name=”control-proxy-limpacache” on-event=Proxy-limpacache start-date=nov/29/2006 start-time=02:31:00 interval=15d comment=”” disabled=no

scheduler proxy-on
/ system scheduler add name=”controle-proxy-on” on-event=Proxy-on start-date=nov/29/2006 start-time=02:40:00 interval=15d comment=”” disabled=no

cara membuat Friendster

Untuk membuat friendster lebih atraktif dan personal ada beberapa cara yang lazim digunakan, salah satunya adalah membuat FS kita ber-wallpaper foto kita. Bagaimana caranya? ikuti tips berikut :

1. Pastikan anda punya foto hosting. Jika belum daftar di flickr, gratis kok.

2. Kalo udah daftar, silahkan login ke foto hosting tersebut.

3. Upload foto yang akan dijadikan background di FS.

4. Kalo sudah, klik foto tersebut. Pilih ke resolusi yang diinginkan (klik all size).

3. Kemudian masuk ke friendster-tweakers.

4. Pilih Friendster Editor -> Profil Editor
5. di kolom Image URL ketik url foto anda yang di dapat setelah anda klik ukuran yang diinginkan. Di bawah gambar no 2 (Grab the photo’s URL:—alamat URL—)

6. Setelah itu klik generate CSS code

7. Copy kode tersebut ke FS mu