1.9.09
Downgrade USB 2.0 ke 1.0 (buat usb wifi - homemade)
Rubah Setting BIOS Komputer dari USB version 2.0 ke 1.1 atau ke 1.0
Jika di BIOS Komputer tidak ada fasilitas tersebut,
Gunakan cara ke 2:
Di Windows XP/2000/ME
Klik START - SETTINGS - CONTROL PANEL
Lalu pilih SYSTEM - HARDWARE - DEVICE MANAGER
Terus DISABLE "USB enhanced host controller"
5.5.09
Operating System for Router/Firewall
This list contains Linux distributions or Unix distributions specifically designed to be used as the operating system of a machine acting as a router and/or a firewall.
- BrazilFW
- BrazilFW is a Router/firewall distribution based on Coyote Linux
- Cflinux
- Cflinux is intended to be a small, embedded linux based system, mostly usable for firewall (Linux kernel 2.4 with iptables), router (ripd, ospfd, even bgpd from quagga), 802.11a/b/g access point (hostap and madwifi drivers), IPSEC gateway (openswan), PPPoE server (with radius authentication, kernel PPPoE), PPTP access servers
- CiscoASA
- Cisco ASA 8.x.x is Linux distribution used in Cisco ASA Security Appliances. An article in German, describing the contents of the package
- ClarkConnect
- Router/firewall distribution
- Collax Business Server
- A Router/firewall & web-, email- and database server distribution
- Collax Security Gateway
- A specialized Router/firewall/IDS/IPS server distribution
- Coyote Linux
- Router/firewall distribution
- Devil-Linux
- firewall/router/server distribution running from CD
- DD-WRT
- Embedded firewall distribution
- eBox
- Router/Firewall and NAS/PDC
- Eisfair
- small easy to install server
- Endian Firewall
- Unified Threat Management distribution (Router/Firewall, Gateway Anti-Spam & Anti-Virus for Web, FTP and Email, Hotspot functionality)
- EnGarde Secure Linux
- A Router/firewall & web-, email- and database server distribution
- Fli4l
- a single floppy ISDN, DSL and Ethernet-Router
- floppyfw
- floppyfw is a router with the advanced firewall-capabilities in Linux that fits on one single floppy disc.
- FREESCO
- a free replacement for proprietary routers supporting up to 10 network cards and up to 10 modems.
- Gibraltar
- Router/firewall distribution.
- IPCop
- Router/firewall distribution
- IPFire
- Router/firewall/homeserver distribution with webbased paketmanager
- LEAF Project
- a customizable embedded Linux network appliance used as an Internet gateway, router, firewall, and wireless access point.
- Ideco Gateway
- Advanced Router/Firewall distro
- OpenWrt
- Modular embedded distribution for ARM, MIPS, PPC and x86 devices.
- M0n0wall
- A Router/firewall distribution based on FreeBSD.
- PfSense
- A free, open source customized distribution of FreeBSD tailored for use as a firewall and router.
- PyramidLinux
- A wireless router distribution for x86 embedded systems.
- redWall
- Router/firewall distribution
- Sentry Firewall
- A firewall, server or intrusion detection system distribution
- SME Server
- A Router/firewall[citation needed] & web-, file-, email- and database server distribution based on CentOS
- SmoothWall
- Router/firewall distribution
- The Linux Router Project
- Router distribution (Defunct as of 2003)
- Trustix
- Router/firewall distribution with SSH and GCC included if desired.(Defunct as of jan 2009)
- Untangle
- GPLv2 Firewall & Router that runs 12 open source applications including Spam Blocker, Virus Blocker, Web Filter, OpenVPN & More.
- Vyatta
- Enterprise-class routing, security and traffic management with simple-to-use interfaces designed as a network operating system that runs on Intel/AMD as well in virtual environments.
- Zeroshell
- Web administrable router/firewall live CD with QoS features. It is also able to act as a Wi-Fi Access Point with advanced features such as the Multiple SSID and 802.1x RADIUS Authentication. Zeroshell supports VLAN trunking (802.1q), bridging and WAN load balancing and failover features.
9.4.09
surat terbuka buat komunitas "hacker" Indonesia
Pemilu merupakan kegiatan akbar penyaluran aspirasi politik yang menentukan kemajuan bangsa Indonesia sehingga seluruh rakyat berkepentingan mendukung suksesnya pelaksanaan Pemilu 2009.
Dengan berbagai keterbatasan yang ada, rekan-rekan BPPT (sebagai Tim TI KPU) dan ID-SIRTII, bersama-sama dengan berbagai komunitas yang berhubungan dengan keamanan informasi, antara lain: Coder, Echo, Jasakom, Komunitas Keamanan Informasi (KKI), Virologi, dan komunitas lainnya berusaha meningkatkan keamanan TI Pemilu 2009 sesuai dengan kapasitas masing-masing.
Kami menghimbau kepada siapapun yang merasa sebagai bagian dari bangsa Indonesia dan merasa memiliki negara ini, terutama rekan-rekan yang bergabung dalam berbagai komunitas teknologi informasi untuk bersama-sama menyukseskan Pemilu 2009 dengan cara:
1. Tidak melakukan hal-hal yang berpotensi melanggar hukum, terutama UU ITE, terhadap sistem Pemilu dan infrastruktur yang digunakan.
2. Memberikan berbagai masukan atau informasi yang diterima dari sumber manapun yang berkaitan dengan keamanan TI Pemilu 2009 ke nomer Hotline 087883728787, Fax : 021-56957634 atau email ke
pemilu2009@echo.or.id
pemilu2009@coder.web.id
pemilu2009@jasakom.com
pemilu2009@securityfirst.or.id
pemilu2009@virologi.info
Terimakasih atas kesediaan rekan-rekan meneruskan himbauan ini kepada rekan-rekan lainnya.
Salam,
Coder, Echo, Jasakom, KKI, Virologi dan Komunitas-Komunitas TI Lainnya
8.4.09
7.4.09
Selamat datang di Portal Insan Mikrotik Banjarmasin, Kalimantan Selatan (ITIK Banjar). Media ini kami buat untuk menyatukan komunitas pengguna Mikrotik Router OS di Kalimantan Selatan agar dapat saling berbagi dan share knowledge seputar system ini. Kami harapkan kawan-kawan yang mengunjungi portal ini dapat mendaftarkan dirinya disini guna melakukan pendataan anggota untuk selanjutnya akan kita adakah kopi darat sebagai langkah berikutnya untuk membuat struktur organisasi yang harapan kami, dengan adanya struktur organisasi ini nantinya ITIK Banjar akan lebih solid dan tetap terjaga kesinambungannya.
Demikian, Semoga dapat diterima oleh kawan-kawan dengan baik, khususnya insan pengguna Mikrotik Router OS di Banjarmasin.
semoga dapat bermanfaat untuk kemajuan TI di Kalimantan Selatan
13.2.09
Why I think PayDotCom is the Best Affiliate Marketplace on the Net!
rahmad rizani here...
If you are familiar with Clickbank.com (R), or even if you are not but you want to make profits online, then you will want to check this out ASAP ...
While I like Clickbank, and they are a great marketplace... they are limited to many restrictions to sell products or earn affiliate commissions...
Well, there is a GREAT NEW SERVICE now...
It is a new FREE marketplace where you can sell any product you want.
Yours OWN product...
- OR - (the best part)
You can become an INSTANT Affiliate for ANY item in their HUGE marketplace.
It is called PayDotCom.com!
Did I mention it is 100% FREE to Join!
This site is going to KILL all other marketplaces and I by now, almost EVERY SINGLE SERIOUS online marketer has an account with PayDotCom.com
So get yours now and see how much they offer...
OH! - Also, they have their won affiliate program now that pays you COLD HARD cash just for sharing the site with people like I am doing with you...
They give you cool tools like BLOG WIDGETS, and they even have an advertising program to help you get traffic to your site.
If you want an ARMY of affiliates to sell your products for you, they also allow you to have Free placement in their marketplace!
Even better... If your product becomes one of the Top 25 products in its category in the marketplace (not that hard to do)...
...then you will get Free advertising on the Blog Widget which is syndicated on THOUSANDS of sites World Wide and get Millions of impressions per month.
So, what are you waiting for...
PayDotCom.com ROCKS!
Get your FREE account now...
http://paydotcom.net/?affiliate=539050
Thanks,
rahmad rizani
P.S. - Make sure to get your Account NOW while it is Free to join.
Installing OpenWrt with RedBoot
Once you have gained access to !RedBoot either by telnet or the serial console you can install !OpenWrt with the following method.NOTE: If you changed RedBoot’s baud rate to something different than 9600bps, revert that change unless your terminal program does auto baud detection — OpenWrt logs to its serial console with 9600bps, so having the same baud rate in RedBoot is a good idea.Note: instructions below also worked on FON2200
You have to download two files (right click and save as).
openwrt-atheros-vmlinux.lzma
openwrt-atheros-root.squashfs
Copy openwrt-atheros-vmlinux.lzma and openwrt-atheros-root.squashfs to /tftpboot/ and flash them like this:
^C
RedBoot> ip_address -h 192.168.5.2 -l 192.168.5.75/24
IP: 192.168.5.75/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.5.2RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma
Using default protocol (TFTP)
Raw file loaded 0×80041000-0×800f0fff, assumed entry at 0×80041000
RedBoot> fis initThe values for the -e and -r switches in the ‘fis create’ RedBoot command below is the Kernel entry point. Do not change this value.
RedBoot> fis create -e 0×80041000 -r 0×80041000 vmlinux.bin.l7
An image named ‘vmlinux.bin.l7′ exists - continue (y/n)? y
… Erase from 0xa8730000-0xa87e0000: ………..
… Program from 0×80041000-0×800f1000 at 0xa8730000: ………..
… Erase from 0xa87e0000-0xa87f0000: .
… Program from 0×80ff0000-0×81000000 at 0xa87e0000: .“fis free” will print the first and last free block
RedBoot> fis free
0xA80F0000 .. 0xA87E0000Now do the math (last - first, cause you need the difference)
server:~# bc
obase=16
ibase=16
A87E0000 - A80F0000
6F0000Replace 0xLENGTH with the value above (0×006F0000 in my case) and flash the the rootfs:
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs
Using default protocol (TFTP)
|
Raw file loaded 0×80041000-0×80200fff, assumed entry at 0×80041000
RedBoot> fis create -l 0xLENGTH rootfs
An image named ‘rootfs’ exists - continue (y/n)? y
… Erase from 0xa8030000-0xa8730000: ………………………………………………………………………………………………….
… Program from 0×80041000-0×80741000 at 0xa8030000: ………………………………………………………………………………………………..
… Erase from 0xa87e0000-0xa87f0000: .
… Program from 0×80ff0000-0×81000000 at 0xa87e0000: .
RedBoot> resetIf everything is okay, then it will now look like this:
+PHY ID is 0022:5521
…
== Executing boot script in 1.000 seconds - enter ^C to abort
RedBoot> fis load -l vmlinux.bin.l7
Image loaded from 0×80041000-0×80290085
RedBoot> exec
Now booting linux kernel:
Base address 0×80030000 Entry 0×80041000
Cmdline :
Linux version 2.6.21.5 (ubuntu@ubuntu-laptop) (gcc version 4.1.2) #1 Sat Sep 29 11:04:17 CEST 2007
CPU revision is: 00019064
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Built 1 zonelists. Total pages: 4064
Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit
Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 64 (order: 6, 256 bytes)
Using 92.000 MHz high precision timer.
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13504k/16384k available (1955k kernel code, 2880k reserved, 292k data, 116k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Radio config found at offset 0xf8(0×1f
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A
eth0: Dropping NETIF_F_SG since no checksum feature.
eth0: Atheros AR231x: 00:18:84:14:39:94, irq 4
cmdlinepart partition parsing not available
Searching for RedBoot partition table in spiflash at offset 0×7d0000
Searching for RedBoot partition table in spiflash at offset 0×7e0000
5 RedBoot partitions found on MTD device spiflash
Creating 5 MTD partitions on “spiflash”:
0×00000000-0×00030000 : “RedBoot”
0×00030000-0×000f0000 : “vmlinux.bin.l7″
0×000f0000-0×007e0000 : “rootfs”
0×00200000-0×007e0000 : “rootfs_data”
0×007e0000-0×007ef000 : “FIS directory”
0×007ef000-0×007f0000 : “RedBoot config”
nf_conntrack version 0.5.0 (128 buckets, 1024 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear
All bugs added by David S. Miller
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 116k freed
Warning: unable to open an initial console.
eth0: Configuring MAC for full duplex
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
- init -
init started: BusyBox v1.4.2 (2007-09-26 19:44:01 CEST) multi-call binary
Please press Enter to activate this console. device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
PPP generic driver version 2.4.2
wlan: 0.8.4.2 (svn r256
ath_hal: module license ‘Proprietary’ taints kernel.
ath_hal: 0.9.30.13 (AR5212, AR5312, RF2316, TX_DESC_SWAP)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (svn r256
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_ahb: 0.9.4.5 (svn r256
ath_pci: switching rfkill capability off
ath_pci: switching per-packet transmit power control off
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 11.0 phy 4.8 radio 7.0
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3
jffs2_scan_eraseblock(): End of filesystem marker found at 0×0
jffs2_build_filesystem(): unlocking the mtd device… done.
jffs2_build_filesystem(): erasing all blocks after the end marker… done.
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
BusyBox v1.4.2 (2007-09-26 19:44:01 CEST) Built-in shell (ash)
Enter ‘help’ for a list of built-in commands.
_______ ________ __
| |.—–.—–.—–.| | | |.—-.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (7.09) ———————————–
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
—————————————————
root@OpenWrt:/#
6.9.08
8 Easy Firefox Tweaks for Super Fast Web Browsing
Fast loading web pages while surfing the Internet may have more to do with your web browser settings and preferences than your Internet connection speed.
Try these easy Firefox tweaks and you’ll see that you’re surfing the Internet from 3 to 30 times faster!
To get started, open your Firefox web browser. In the address/location bar type [about:config] and then press your Enter key. (NOTE: DON’T TYPE THE BRACKETS.)
In the Filter bar type [network.http.pipelining]. Then, double-click on this line under Preference Name in order to change the value from false to true.
Tweak #2:
In the Filter bar type [network.http.pipelining.maxrequests]. Then, double-click on this line under Preference Name and change the value from 4 to a higher number anywhere from 10 to 30. I set mine to 30.
Tweak #3:
In the Filter bar type [network.http.proxy.pipelining]. Then, double-click on this line under Preference Name in order to change the value from false to true.
Tweak #4:
In the Filter bar type [network.dns.disableIPv6]. Then, double-click on this line under Preference Name in order to change the value from false to true.
Tweak #5:
In the Filter bar type [plugin.expose_full_path]. Then, double-click on this line under Preference Name in order to change the value from false to true.
Tweak #6:
In the Filter bar type [network.protocol-handler.external.ms-help]. Now, you are going to create a new Preference Name with an Integer Value. To do this, right-click on this line under Preference Name and select New, then Integer.
In the New Integer value box type in [nglayout.initialpaint.delay] and click OK. Then in the Enter Integer value box type [0] (that’s a zero) and click OK.
Tweak #7:
In the Filter bar again type [network.protocol-handler.external.ms-help]. Now, you are going to create another new Preference Name with an Integer Value. To do this, right-click on this line under Preference Name and select New, then Integer. In the New Integer value box type in [content.notify.backoffcount] and click OK. Then in the Enter Integer value box type [5] and click OK.
Tweak #8:
In the Filter bar again type [network.protocol-handler.external.ms-help]. Now, you are going to create another new Preference Name with an Integer Value. To do this, right-click on this line under Preference Name and select New, then Integer. In the New Integer value box type in [ui.submenuDelay] and click OK. Then in the Enter Integer value box type [0] (that’s a zero) and click OK.
Now, close your web browser and restart it. You’ll see how much faster web pages are loading. I sure did.
Let me know if these tweaks increase your Internet browsing speed. Know of any other tweaks or tricks? Let me know and I’ll add them.
5.9.08
Modem CDMA Venus VT-10 di Ubuntu 6.06 (kutipan)
Colokin modem USB, tentunya dengan kartu CDMA didalamnya (saya pake FREN). Lihat dmesg jika ada pesan seperti berikut berarti modem usb sudah dikenali.
[17179589.504000] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
[17179589.508000] usbcore: registered new driver cdc_acm
[17179589.508000] drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver for USB modems and ISDN adapters
Konfigurasi /etc/wvdial.conf sebagai berikut:
[Dialer FREN]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 230400
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = #777
Password = m8
Username = m8
Auto DNS = 1
Stupid Mode = 1
Auto Reconnect = on
Jalankan wvdial.
$ sudo wvdial FREN
Sengaja wvdial tidak saya jalankan di background supaya mudah dalam mengidentfikasi pesan error. Jika tidak terdapat masalah akan terlihat message berikut di terminal
--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sat Apr 21 09:34:43 2007
--> Pid of pppd: 5638
--> Using interface ppp0
--> pppd: ??[05][08]H?[05][08]
--> pppd: ??[05][08]H?[05][08]
--> pppd: ??[05][08]H?[05][08]
--> pppd: ??[05][08]H?[05][08]
--> local IP address 10.128.19.150
--> pppd: ??[05][08]H?[05][08]
--> remote IP address 10.21.9.1
--> pppd: ??[05][08]H?[05][08]
--> primary DNS address 10.21.4.77
--> pppd: ??[05][08]H?[05][08]
--> secondary DNS address 10.21.7.7
--> pppd: ??[05][08]H?[05][08]
Untuk memutus koneksi tinggal tekan Ctrl+C di terminal tersebut.
Jika sebelumnya sudah ada koneksi ethernet yang berjalan, kemungkinan default gateway tidak melalui ppp0. Untuk itu harus diubah default gateway ke ppp0.
$ sudo route del default
$ sudo route add default gw dev ppp0
Untuk monitoring bandwidth di Linux, bisa menggunakan KtrafficAnalyzer. Karena tidak menemukan paket untuk Dapper, saya pakai alien untuk menginstall paket rpm KtrafficAnalyzer.
Selain itu bisa juga menggunakan vnstat. Untuk cara instalasi silahkan baca disini . Karena saya hanya akan memonitor modem CDMA, maka vnstat saya jalankan agar memonitor interface ppp0
$ sudo vnstat -u -i ppp0
Oh iya, tips untuk menghemat quota bandwidth juga berlaku di Linux. Enaknya pake Linux, gak usah khawatir tiba-tiba ada download/upload misterius yang ngabisin quota. Tentu saja entri crontab juga harus diperiksa ^^
Demikianlah, semoga bermanfaat ^^.
Fonera Flash oswave/open wrt
- mount a serial adapter to the fonera device(the serial adapter documentation can be found at http://wiki.openwrt.org/OpenWrtDocs/Hardware/Fon/Fonera)
- set your terminal client to 9600-8-N-1
- enter the RedBoot console by pressing CTRL+C
- copy linux.bin to your tftp server directory
- configure the RedBoot bootloader IP and TFTP server settings using ip_address -l [local ip address] -h [remote server address]
- flash the unit by entering the following commands ;
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa83e0000-0xa83f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa83e0000: .
load -r -v -b 0x80041000 linux.bin
Using default protocol (TFTP)
Raw file loaded 0x80041000-0x802e3fff, assumed entry at 0x80041000
RedBoot> fis create linux
... Erase from 0xa8030000-0xa82f0000: ............................................
... Program from 0x80041000-0x80301000 at 0xa8030000: ............................................
... Erase from 0xa83e0000-0xa83f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa83e0000: .
fconfig
enter the bootscript:
fis load -l linux
exec
save the config and do
reset
PCQ (Per Connection Queue) -- Part I
Pembagian Bandwidth Sama Rata Untuk Multi Users
Gunakan queue jenis PCQ bila kita ingin membagi bandwidth secara rata (dan mengatur max-limit) untuk beberapa user. Kita akan memberikan contoh untuk pembagian limit bandwidth download sebesar 64 kbps dan upload sebesar 32 kbps.
Ada dua cara untuk melakukan ini :
- Menggunakan mangle dan queue tree
- Menggunakan Simple Queue
1. Mark paket dengan mark-packet all :
Code:
/ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=all passthrough=no
2. Tambahkan 2 PCQ Type, satu untuk download dan satunya lagi untuk upload. Dst-Address adalah pengklasifikasian untuk traffic Download, sedang Src-Address adalah pengklasifikasian untuk traffic Upload :
Code:
/queue type add name=”PCQ_download” kind=pcq pcq-rate=64000 pcq-classifier=dst-address
/queue type add name=”PCQ_upload” kind=pcq pcq-rate=32000 pcq-classifier=src-address
3. Akhirnya, 2 buah rule queue ditambahkan, untuk download dan upload :
Code:
/queue tree add parent=global-in queue=PCQ_download packet-mark=all
/queue tree add parent=global-out queue=PCQ_upload packet-mark=all
Dengan Simple Queue
Jika anda tidak suka menggunakan mangle dan queue tree, anda dapat menggunakan satu rule queue seperti dibawah ini :
Code:
/queue simple add queue=PCQ_upload/PCQ_download target-addresses=192.168.0.0/24
Sekedar tambahan buat tulisan diatas
First of all kan marking packet yang buat up dulu nih :
/ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=up passthrough=no
terus buat marking yang download-an kita pake kaya gini :
/ip firewall mange add chain=forward action=mark-connection new-mark-connection=down-conn passthrought=yes
/ip firewall mangle add chain=forward in-interface=Public mark-connection=down-conn action=mark-packet new-packet-mark=down passthrough=no
jangan lupa chain di set forward, dan passthrought di set no untuk connection-mark dan di set yes untuk packet-mark
setelah itu baru deh kita buat queque typenya :
/queue type add name=”PCQ_download” kind=pcq pcq-rate=64000 pcq-classifier=dst-address
/queue type add name=”PCQ_upload” kind=pcq pcq-rate=32000 pcq-classifier=src-address
ini kalo kita ingin membatasi up 32k dan down 64k, kalo kita pengen dia otomatis kaya yang bro ALOE tanyain kita bisa masukin ajah pcq-rate=0 jadi nantinya dia akan langsung menyesuaikan bandwidth yang ada dan pengguna yang ada di jaringan Local
selanjutnya tinggal bikin deh wuewue tree nya :
/queue tree add name=upload parent=global-in
/queue tree add name=download parent=Local
untuk upload kita menggunakan parent global-in karena kita ingin membatasi semua yang masuk menuju router, sedangkan untuk download kita menggunakan parent Local, karena inilah interface yang menuju ke jaringan lokal kita
selanjutnya tinggal bikin ajah anakan dari tree induk yang sudah kita buat diatas:
/queue tree add name=client-upload parent=upload queue=PCQ_upload packet-mark=up
/queue tree add name=”download” parent=Local queue=PCQ_download packet-mark=down
Nah sekarang setiap client kita akan mendapatkan bw 32k/64k dan kalau kita menggunakan 0 pada saat menset queue type bw akan otomatis terbagi
Proxy Server , Squid 2.6. Ubuntu
One important thing you need is install Ubuntu Server edition, Just install basic package than configure the server to connected to internet properly. If needed, set the /etc/apt/sources.list to link to local repository server which near with your location for new version of package or just installed from your CD/DVD installer. For this tutorial, I’m using squid 2.6. Let’s go to run.
me@simplyeko:~$ sudo apt-get install squid
After all finished, edit the file configuration. Use your favorite editor. For this tutorial, I’m using “vi” as my favourite editor
me@simplyeko:~$ sudo vi /etc/squid/squid.conf
Find this in squid.conf and change it
visible_hostname proxy.simplyeko.com
cache_mgr admin@simplyeko.com
http_port 3128 transparent
always_direct allow all
That’s all you need to change on squid.conf, but if you want more configuration file for squid.conf you can use this setting in here as comparison. The keyword for transparent proxy configuration on squid.conf is http_port 3128 transparent.
Now create the cache directory by typing
me@simplyeko:~$ sudo squid -z
Now you can run the squid
me@simplyeko:~$ sudo /etc/init.d/squid start
Transparent proxy already set. Transparent proxy means that we don’t have to enter any proxy address on browser. If you browse a website, you are going to port 80. But with this tutorial, we’re forwarding any connection that’s going to port 80 to our squid server automatically. So let’s start setting this.
me@simplyeko:~$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward
This method is to enabling ip forwarding
Put that script in your startup scripts.
Now you have to put masquerading method so you can forward the connection
me@simplyeko:~$ sudo apt-get install ipmasq
The last..
me@simplyeko:~$ sudo iptables -A PREROUTING -t nat -p tcp –dport 80 -j REDIRECT –to-port 3128
This command is for forward any request on port 80, will be forwarded to port 3128 (our squid port)
Now you can run transparent squid proxy
me@simplyeko:~$ sudo /etc/init.d/squid start
Congratulations….!!! You have Transparent Proxy on your server and ready for production.
28.8.07
update freebsd 6.2-release
Untuk mengupdate software freeBSD menjadi versi terbaru dapat dilakukan dengan menggunakan software cvsup. Software ini dapat mengupdate software di freeBSD menjadi versi yang lebih baru / STABLE. disini saya melakukan instalasi freeBSD 6.2-RELEASE dan melakukan update dengan cvsup, dengan langkah sebagai berikut.
“disclaimer : apa yang saya tulis disini berdasarkan hasil dari penggabungan referensi di internet agar lebih jelas silahkan membaca dokumentasi resmi dari freeBSD. Saya menuliskannya disini agar tidak lupa.
1. Pastikan anda terkoneksi dengan internet.
2. Install cvsup dari port freeBSD
#cd /usr /ports/net/cvsup
Kemudian lakukan proses instalasi
#make install clean
Tahap ini cukup lama dan pada tahap instalasi akan melakukan pemeriksaan file cvsup-snap-16.1h.tar.gz dan ezm3 yang berada di /usr/ports/distfiles/ jika belum ada maka file tersebut akan fetching secara otomatis. tunggulah sampai instalasi cvsup selesai
3. Setelah instalasi selesai maka saatnya untuk melakukan konfigurasi cvs-supfile
#cd /usr/share/examples/cvsup
#cp stable-supfile cvsbaru
4. Edit file cvsbaru tadi
#pico cvsbaru dan lakukan konfigurasi dengan konfigurasi seperti ini.
*default host=cvsup.id.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_6
*default delete use-rel-suffix
*default compress src-all
disini saya menggunakan mirror cvsup.id.freebsd.org untuk mirror lain silahkan dipilih disini
5. eksekusi update tsb
#cvsup -g -L 2 cvsbaru
tunggu sampai selesai, biasanya 1 jam / tergantung koneksi anda. silahkan ditinggal nonton tv
6. Kemudian melakukan konfigurasi ports-supfile
#cd /usr/share/examples/cvsup
#cp ports-supfile portsbaru
7. Edit file portsbaru
#pico portsbaru lakukan konfigurasi
*default host=cvsup.id.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
# collections,
ports-all
8. Lakukan eksekusi update terhadap file portsbaru tsb
#cvsup -g -L 2 portsbaru
Tunggu hingga selesai, cukup lama, anda bisa sambil ngerokok, makan, nonton televisi..
9. Update freeBSD telah selesai dilakukan…7.6.07
Tiger OS x86 on HP 500
Notebook HP500 (RW854AA)
Proc Intel Celeron M 1,4 Ghz
1024 DDR 2 PC-5200
HD 40 G
Chipset i915GML
Vga i900
Linux Ubuntu 7.04 --> untuk bantu install ..hehehe
Cara menginstall Tiger OS x86 versi linux
1. jalan kan console sebagi root ketikan su -
2. ketikan perintah cfdisk
3. Buat partisi kosong pilih New \ Primary \ Type \ ketikan AF* partisi min 7 GB max seterah anda
4. Setelah membuat partisi jangan lupa pilih write \ yes
5. Siapkan File Tiger Osx86 yg telah anda extrax
6. perintah dasar dd [ ketikan man dd]
dd if=/[nama file yg mau d exstrak] of=/[tempat file yg mau d extrax]
ketikan dd bs=512 skip=63 if=/home/kiki/down/tiger/tiger-x86-flat.img of=/dev/hda3
** password default'y = bovinity
15.5.07
FreeBSD 6.1 + PF Transparent Proxy + Squid 2.6
| FreeBSD 6.1 + PF Transparent Proxy + Squid 2.6 |
| Tuesday, 27 March 2007 | |
| by : godril ( godril@indofreebsd.or.id )This e-mail address is being protected from spam bots, you need JavaScript enabled to view it Latar Belakang Seorang teman menginginkan untuk menerapkan transparent proxy untuk semua host yang ada di LAN kantornya, kecuali untuk beberapa host yang memang sangat penting trafiknya untuk tidak dilewatkan ke transparent proxy. Karena satu hal dan lain sebagainya, susunan jaringan yang berjalan adalah sebagai berikut:
Oke, memang tampak aneh karena seharusnya mikrotik menjadi router utama menjadi gateway ke internet sedangkan seharusnya sebuah cache server tidak berada di sana, di posisi paling depan menghadap ke internet. Ceritanya panjang sekali, but whatever it is, yang jadi permasalahan sekarang adalah bagaimana setting cache server untuk jaringan yang agak unik tersebut. |
Router FreeBSD
Router FreeBSD
edit kernel anda, tambahkan options seperti dibawah ini:
---------------kernel----------------------------
#natd
options IPDIVERT
#filter & transparant
options IPFILTER
options IPFILTER_LOG
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT
options IPFIREWALL_FORWARD
#beberapa options lainnya untuk memacu performa
options NBUF=4096
options NMBCLUSTERS=8192
---------kernel---------------------------------
edit rc.conf Kompilasi Kernel
cd /usr/src/sys/i386/conf
config GENERIC
cd ../compile/GENERIC
make cleandepend && make depend && make && make install && reboot
-------------------------------------------------------------
----------rc.conf-------------------------------
#firewall ,
firewall_enable="YES"
firewall_type="OPEN"
gateway_enable="YES"
#natd (rl0 adalah lan ip luar / PUBLIC IP)
natd_enable="YES"
natd_interface="rl0"
inetd_enable="YES"
#named (untuk resolve dns)
named_enable="YES"
#squid
Squid_enable="YES"
Membangun Mesin DVB Dengan Linux
Membangun Mesin DVB Dengan Linux
Membangun Mesin DVB Dengan Linux
Instalasi Linux Secara Umum.
Pada dasarnya kita menyiapkan dulu mesin dengan OS linux seperti RedHat, Mandrake,
Debian, Slackware, atau linux lainnya. Cara installnya pun tidak jauh beda, package-packagenya
juga hampir sama, hanya tiap OS linux mempunyai cara instalasi sendiri.
Di sini contoh menggunakan OS RedHat 7.3 yang notabene stable dan ringan untuk aplikasi
server/router sehingga tidak terlalu banyak proccess yang harus dijalankan.
Packages yang harus ada/exist untuk disiapkan sebagai mesin server/router adalah sebagai
berikut:
- Minimalisasi tanpa X Windows, Gnome, Kde, printing, sound, multimedia, dll.
- Yang harus ada Group packages untuk Advanced Router, Firewall, DNS, Utility,
Software Development, Libraries.
- Usahakan untuk memakai/mengaktifkan option Select Individual Packages agar bisa
memilih packages program tambahan.
- Packages tambahan yang harus ada antara lain sebagai berikut:
o Mc. Ini visual shell yang mirip file manager, include command mcedit untuk
editor file.
o Snmp. Protokol untuk network management. Bisa memakai ucd-snmp atau yang
terbaru net-snmp juga dengan utils-nya juga ucd-snmp-utils atau net-snmputils.
o Lynx. Text browser untuk browsing di console.
o Iptraf. Console-based network monitoring utility.
- Packages tambahan lain (Optional) jika ingin mengembangkan:
o Mrtg. Ini tool untuk memonitor traffic dengan mengambil data dari snmp yang
kemudian ditampikan dalam bentuk grafik html.
o Apache. Webserver yang dipake untuk menampilkan grafik dari mrtg.
o Squid. Aplikasi untuk cache proxy server.
Jika sudah selesai instalasi, masuk dengan login ROOT dan passwordnya.
Edit configurasi program dalam startup:
- Ketik : setup
- Aktifkan snmp, dan non-aktifkan program-program seperti apmd, atd, gpm.
Edit modules nya untuk meminimalisasi pemakaian IRQ. Ini penting nantinya untuk DVB
karena IRQ Pentavalue tidak boleh sharing/conflig.
mcedit /etc/modules.conf
Buang option : parport dan usb-uhci dengan memberi pagar (#) depannya
Jika untuk SSH nya di set root login = NO, maka untuk SSH user akan selalu di suruh ngetik full
path walau sudah su.
mcedit /etc/ssh/sshd_config
ubah bagian ini menjadi no:
PermitRootLogin no
Maka untuk mengakalinya menggunakan cara ini:
- Sebelum create new user, edit dulu /etc/skel/.bash_profile dan tambahin isinya menjadi
sbb:
mcedit /etc/skel/.bash_profile
Tambahin bagian path menjadi:
PATH=$PATH:$HOME/bin:/sbin:/bin:/usr/sbin:/usr/bin
-
- Jika sudah terlanjur create user misal media, maka yang diedit adalah /
home/media/.bash_profile dan isikan sama seperti diatas.
mcedit /home/media/.bash_profile
Untuk mengaktifkan sudo, yang dilakukan adalah sebagai berikut:
- edit /etc/sudoers dengan command dan
mcedit /etc/sudoers
- Aktifkan 2 hal dibawah ini:
# Uncomment to allow people in group wheel to run all commands
%wheel ALL=(ALL) ALL
# Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
Kemudian masukkan user yang akan dimasukkan dalam daftar sudoers ke dalam group wheel
(root) dengan cara:
usermod –G 10 media
Kompilasi Kernel
Compile kernel sebenarnya ditujukan untuk optimasi program-program di linux (advanced user).
Tanpa compile kernel pun sudah jalan.
Hal yang perlu diperhatikan dalam compile kernel adalah:
- Kita mengetahui benar hardware komputer yang bersangkutan seperti processor,
motherboard, sound card, ethernet card, dll.
- Kita mengetahui linux secara keseluruhan, apa yang kita butuhkan dan apa tidak.
- Hal yang paling penting adalah Kita mengetahui apa saja yang kita setting, karena jika
tidak, keinginan kita untuk optimasi tidak berhasil malah jadi hancur, yang ditandai
dengan kernel panic pada waktu booting.
Langkah-langkah yang harus dilakukan, ketik sbb:
Ambil source linux terbaru versi 2.4 (linux-2.4.22.tar.bz2 ) atau 2.6 (linux-2.6.4.tar.bz2)
Taruh file tersebut di /usr/src kemudian extract
tar jxpf linux-2.4.22.tar.bz2
Bikin link linux biar mudah, juga untuk kepentingan compile DVB nanti.
ln –s linux-2.4.22 linux
Sehingga untuk selanjutnya tidak usah masuk ke directory /usr/src/linux-2.4.22, tapi
tinggal langsung ke /usr/src/linux
cd /usr/src/linux
make menuconfig
Lakukan pemilihan menu mana yang diaktifkan, mana yang sebagai modules dan mana yang
dinon-aktifkan.
(Tidak saya include-kan di sini karena optionnya sangat banyak sekali. Karena itu ini untuk
ADVANCE USER).
Pada intinya yang diaktifkan adalah:
- Driver untuk masing-masing hardware yang kita punya baik itu processor, motherboard,
soundcard dan ethernet card 10/100 Mbps..
- Aktifkan File system sepert ReiserFS, Ext3, Ext2. Juga jika ingin mengaktifkan partisi
windows agar bisa dibaca di linux, aktifkan Fat, Fat95.
- Aktifkan Option untuk NAT (Network Address Translation), Firewall dan Advance
routing.
- Bisa juga jika menginginkan tambahan untuk management bandwidth, aktifkan QOS
packer scheduler bisa memakai CBQ atau HTB.
Setelah selesai memilih semuanya, pilih exit dan save.
Kemudian ketik:
make dep
make bzImage
make modules
make modules_install
Setelah semuanya berhasil dengan baik, tidak ada error, kita tinggal mengkopikan hasilnya ke /
boot:
cp System.map /boot/System-map-DVB
cp arch/i386/boot/bzImage /boot/vmlinuz-DVB
Setelah itu edit /etc/lilo.conf seperti dibawah ini, tambahan dibawah sendiri.
mcedit /etc/lilo.conf
prompt
timeout=10
default=DVB
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.18-3
label=linux
initrd=/boot/initrd-2.4.18-3.img
read-only
root=/dev/hda1
image=/boot/vmlinuz-DVB
label=DVB
read-only
root=/dev/hda1
Setelah selesai edit, jalankan menggunakan perintah:
lilo –v
Jika hasilnya seperti dibawah ini, berarti tambahan di lilo sukses:
LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger
'lba32' extensions Copyright (C) 1999,2000 John Coffman
Reading boot sector from /dev/hda
Merging with /boot/boot.b
Mapping message file /boot/message
Boot image: /boot/vmlinuz-2.4.18-3
Mapping RAM disk /boot/initrd-2.4.18-3.img
Added linux
Boot image: /boot/vmlinuz-dvb
Added dvb *
/boot/boot.0300 exists - no backup copy made.
Writing boot sector.
========================
Instalasi DVB
=================================
Dalam hal ini kita memakai Pentavalue card.
Ambil source terbaru pentaval untuk RedHat: pentaval-RHx-2.1.10_021111.tar.gz atau untuk
selain RedHat memakai pentaval-2.1.10_021111.tar.gz.
Extract file tsb dan jalankan command di bawah ini:
tar zxpf pentaval-RHx-2.1.10_021111.tar.gz
cd pentaval-RHx-2.1.10
autoheader
autoconf
aclocal
automake
./configure
make
make install
Jika sudah selesai dan berhasil, copykan file pentavalm, pentavalt dan pentavald ke /bin agar
mudah untuk execute nya.
cp pentaval* /bin/
Kemudian buat file /etc/pentaval.conf dengan isinya (dengan konfigurasi satelit Agila2):
[Transponder]
SatName=Agila2
Name=Trans1
Frequency=3660.000000
Symbol rate=15.000000
Polar=HOR
Band=C
22Khz=Off
LnbPower=On
Viterbi=3/4
;Aviterbi lists -> 1/2, 2/3, 3/4, 5/6, 7/8, Auto
LnbType=Universal
;LNB type lists -> None, 9300, 9750, 10000, 10600, 10750, 11300,
Universal
DISEqC=None
;DISEqC lists -> None, Port1, Port2 ~ Port16
Count=2
PID0=585
;PID0=516
;PID1=512
AutoPID=Off
CrcChecksum=Off
[Option]
SIP Count=0
;SIP0=4.5.6.7
;SIP1=1.2.3.4
;SIP2=0.0.0.0
;VMAC0=00:30:1D:00:41:B2
;VMAC0=00:D0:C1:01:12:57
[End]
kemudian buat file /etc/init.d/pentaval untuk init runningnya:
#!/bin/bash
# PENTAVAL
PATH=/usr/bin:/sbin:/bin:/usr/sbin
export PATH
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# check if the pentaval conf file is present
[ -f /etc/pentaval.conf ] || exit 0
pentavalt=/bin/pentavalt
pentavald=/bin/pentavald
pentavalm=/bin/pentavalm
prog="pentaval"
RETVAL=0
start() {
echo -n $"Starting $prog: "
$pentavalt -a -d pentaval0 -f /etc/pentaval.conf
RETVAL=$?
# [ $RETVAL -eq 0 ] && echo_success
# [ $RETVAL -ne 0 ] && echo_failure
echo
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
$pentavalt -q
RETVAL=$?
# [ $RETVAL -eq 0 ] && echo_success
# [ $RETVAL -ne 0 ] && echo_failure
echo
return $RETVAL
}
restart() {
stop
start
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $httpd
RETVAL=$?
;;
restart)
stop
start
;;
*)
echo $"salah mas"
echo $"Pakai ini mas: $prog {start|stop|restart}"
exit 1
esac
exit $RETVAL
Chmod file /etc/init.d/pentaval menjadi 755
chmod 755 /etc/init.d/pentaval
Kemudian jalankan perintah untuk restart device pentaval:
/etc/init.d/pentaval restart
Agar tiap reboot ulang device pentaval langsung start, tambahkan option ini di /etc/rc.local:
mcedit /etc/rc.local
tambahin:
/etc/init./pentaval start
Jika parabola sudah dipointing dengan benar arah satelitnya, maka tinggal menancapkan
kabelnya ke device pentaval di komputer.
Untuk monitoring ketik pentavalm, maka akan terdisplay seperti ini:
----------------------------------
Monitor for Pent@VALUE (Ver 1.0.1)
----------------------------------
[Driver/Device info]
# Device name : pentaval0
# Driver status : Enable
# Driver version : 2.1.a
# MAC address : 00:30:6a:80:66:41
[Rx data info]
# Total RX packets : 7219657
# RX data rate : 0.248[Mbps]
[Tuner info]
# LNB Lock status: lock
# Viterbi decoded BER : 0
# Signal to Noise Ratio: 8.409477 [dB]
# Reed Solomon Corrected errors: 26824
# Reed Solomon Uncorrected errors: 124
# CRC/Checksum errors: 34
# LLC/SNAP encapsulation: Disable
Press the 'q' key to finish it !
Penjelasan:
#Signal to Noise Ratio : menunjukkan signal dari parabola, semakin besar semakin bagus.
Standar minimum adalah 7 dB
#Total RX packets : 7219657. Jika ini lebih dari 0 packet, maka data sudah bisa lewat. Namun
juga tetap 0, ada 2 penyebab:
1. IRQ terjadi conflig atau sharing. Cara untuk melihatnya adalah dengan mengetik cat /
proc/interrupts
2. Beberapa komputer tidak compatible dengan pentaval seperti merk Compaq.
# RX data rate : 0.248[Mbps]. Ini menunjukkan current downstream bandwidth usage.
=======================
Konfigurasi SNMP
=======================
Mcedit /etc/snmp/snmp.conf
Isikan/rubah setingan menjadi seperti di bawah ini:
# sec.name source community
com2sec public 0.0.0.0/0 public
# groupName securityModel securityName
group mediaselaras v1 public
group mediaselaras v2c public
group mediaselaras usm public
# Third, create a view for us to let the group have rights to:
#group context sec.model sec.level prefix read write notif
access mediaselaras "" any noauth exact all none none
## incl/excl subtree mask
view all included .1 80
## -or just the mib2 treeview
mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
# System contact information
syslocation Lokasi anda
syscontact info@mediaselaras.net
Dibawah ini beberapa site yang berhubungan dengan hal ini.
Source Kernel:
http://www.kernel.org/pub/linux/kernel/v2.4 <--- untuk versi 2.4 http://www.kernel.org/pub/linux/kernel/v2.6 <--- untuk versi 2.6 Source Pentaval: Untuk Redhat http://www.pentamedia.com/english/supports/down/Linux/pentaval-RHx-2.1.10_021111.tar.gz selain Redhat http://www.pentamedia.com/english/supports/down/Linux/pentaval-2.1.10_021111.tar.gz Beberapa source dan konfigurasi sudah disediakan, bisa diambil dari: http://www.mediaselaras.net/dvb/pentaval http://www.mediaselaras.net/dvb/pentaval.conf http://www.mediaselaras.net/dvb/pentaval-RHx-2.1.10_021111.tar.gz
Posted by erunix at 2:20 AM 0 comments
Mikrotik Load Balancing
/ ip address
add address=10.0.160.254/24 network=10.0.160.0 broadcast=10.0.160.255 interface=ether1 comment="" \
disabled=no
add address=10.0.150.155/24 network=10.0.150.0 broadcast=10.0.150.255 interface=ether2 \
comment="" disabled=no
add address=192.168.100.188/24 network=192.168.100.0 broadcast=192.168.100.255 interface=ether3 \
comment="" disabled=no
/ ip firewall mangle
add chain=prerouting in-interface=ether1 connection-state=new nth=1,1,0 \
action=mark-connection new-connection-mark=odd passthrough=yes comment="" \
disabled=no
add chain=prerouting in-interface=ether1 connection-mark=odd action=mark-routing \
new-routing-mark=odd passthrough=no comment="" disabled=no
add chain=prerouting in-interface=ether1 connection-state=new nth=1,1,1 \
action=mark-connection new-connection-mark=even passthrough=yes comment="" \
disabled=no
add chain=prerouting in-interface=ether1 connection-mark=even action=mark-routing \
new-routing-mark=even passthrough=no comment="" disabled=no
/ ip firewall nat
add chain=srcnat connection-mark=odd action=src-nat to-addresses=10.0.150.155 \
to-ports=0-65535 comment="" disabled=no
add chain=srcnat connection-mark=even action=src-nat to-addresses=192.168.100.188 \
to-ports=0-65535 comment="" disabled=no
/ ip route
add dst-address=0.0.0.0/0 gateway=10.0.150.254 scope=255 target-scope=10 routing-mark=odd \
comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.100.254 scope=255 target-scope=10 routing-mark=even \
comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.100.254 scope=255 target-scope=10 comment="" \
disabled=no
dvb set routing
dvb set routing
*nat
:PREROUTING ACCEPT [1624:115710]
:POSTROUTING ACCEPT [1:124]
:OUTPUT ACCEPT [247:18549]
#-A POSTROUTING -d 202.0.0.0/255.0.0.0 -j SNAT --to-source 61.8.75.28
#-A POSTROUTING -d 61.8.64.0/255.255.240.0 -j SNAT --to-source 61.8.75.28
#-A POSTROUTING -d 203.130.192.0/255.255.224.0 -j SNAT --to-source 61.8.75.28
-A POSTROUTING -d 202.0.0.0/255.0.0.0 -j SNAT --to-source 222.124.182.35
-A POSTROUTING -d 61.8.64.0/255.255.240.0 -j SNAT --to-source 222.124.182.35
-A POSTROUTING -d 203.130.192.0/255.255.224.0 -j SNAT --to-source 222.124.182.35
-A POSTROUTING -d 0.0.0.0/0.0.0.0 -j SNAT --to-source 202.51.63.82
[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:15:E9:F0:32:DB
inet addr:10.0.160.254 Bcast:10.0.160.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4945 errors:0 dropped:0 overruns:0 frame:0
TX packets:5426 errors:405 dropped:0 overruns:0 carrier:810
collisions:35 txqueuelen:100
RX bytes:989404 (966.2 Kb) TX bytes:4213947 (4.0 Mb)
Interrupt:11
eth1 Link encap:Ethernet HWaddr 00:15:E9:6A:23:7F
inet addr:222.124.182.35 Bcast:222.124.182.39 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2233 errors:0 dropped:0 overruns:0 frame:0
TX packets:6551 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:564876 (551.6 Kb) TX bytes:1140146 (1.0 Mb)
Interrupt:5 Base address:0x2000
eth1:1 Link encap:Ethernet HWaddr 00:15:E9:6A:23:7F
inet addr:202.51.63.82 Bcast:202.51.63.87 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5 Base address:0x2000
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:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:296 (296.0 b) TX bytes:296 (296.0 b)
pentaval0 Link encap:Ethernet HWaddr 00:30:6A:80:B8:2F
inet addr:10.1.1.2 Bcast:255.255.255.255 Mask:255.255.255.255
UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:5658 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4394629 (4.1 Mb) TX bytes:0 (0.0 b)
Interrupt:9 Base address:0xd000
[root@localhost root]# more /etc/sysconfig/network-scripts/ifcfg-eth1:1
DEVICE=eth1:1
ONBOOT=yes
BOOTPROTO=static
IPADDR=202.51.63.82
NETMASK=255.255.255.248
[root@localhost root]# more /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
#IPADDR=61.8.75.28
#IPADDR=10.0.150.254
IPADDR=222.124.182.35
NETMASK=255.255.255.248
# GATEWAY=61.8.75.25
GATEWAY=222.124.182.33
Memisahkan Bandwidth Lokal dan International menggunakan Mikrotik
Memisahkan Bandwidth Lokal dan International menggunakan Mikrotik
- Proses mangle berdasarkan address-list
- Pemisahan traffic Indonesia dan overseas lebih akurat
(ISP) yang menawarkan paket bandwidth lokal atau IIX yang lebih besar dibandingkan bandwidth Internet Internasional, hal ini seiring dengan semakin banyaknya pengelola RT-RW Net yang mampu menyediakan layanan koneksi Internet yang lebih terjangkau bagi lingkungan sekitarnya.
- Mikrotik Router dengan 2 Network Interface Card (NIC) Ether1 dan Ether3, dimana Ether1 adalah Ethernet yang terhubung langsung ke ISP dan Ether3 adalah Ethernet yang terhubung langsung dengan jaringan 192.168.2.0/24
- Bandwidth dari ISP misalnya 256Kbps internasional dan 1024Kbps lokal IIX
- Komputer 192.168.2.4 akan diberi alokasi bandwidth 128Kbps internasional dan 256Kbps lokal IIX
Gambar 2. Hasil Query http://lg.mohonmaaf.com untuk perintah “show ip bgp”
Lebih jelasnya adalah sbb:
Selanjutnya buat script berikut untuk dapat diimport oleh router Mikrotik
/ ip firewall address-list
add list=nice address=58.65.240.0/23 comment="" disabled=no
add list=nice address=58.65.242.0/23 comment="" disabled=no
add list=nice address=58.65.244.0/23 comment="" disabled=no
add list=nice address=58.65.246.0/23 comment="" disabled=no
add list=nice address=58.145.174.0/24 comment="" disabled=no
add list=nice address=58.147.184.0/24 comment="" disabled=no
add list=nice address=58.147.185.0/24 comment="" disabled=no
dst…
untuk mendapatkan script diatas dapat melalui URL berikut:
http://www.datautama.net.id/harijanto/mikrotik/ip_firewall_address_list_nice.php
URL diatas secara online akan melakukan query ke router NICE dari http://lg.mohonmaaf.com
dari hasil URL diatas copy lalu paste ke mikrotik dengan menggunakan aplikasi putty.exe ssh ke ipmikrotik tersebut, caranya setelah di copy teks hasil proses URL diatas lalu klik kanan mouse pada jendela ssh putty yang sedang meremote mikrotik tersebut. Cara ini agak kurang praktis tetapi karena jika script diatas dijadikan .rsc ternyata akan bermasalah karena ada beberapa baris ip blok yang saling overlap sebagai contoh:
\... add address=222.124.64.0/23 list="nice"
[datautama@router-01-jkt] > /ip firewall address-list \
\... add address=222.124.64.0/21 list="nice"
address ranges may not overlap
dimana 222.124.64.0/21 adalah supernet dari 222.124.64.0/23 artinya diantara dua blok ip tersebut saling overlap, sehingga pada saat proses import menggunakan file .rsc akan selalu berhenti pada saat menemui situasi seperti ini.
Sampai saat ini saya belum menemukan cara yang praktis utk mengatasi hal tersebut diatas.Kalau saja kita bisa membuat address-list dari table prefix BGP yang dijalankan di mikrotik maka kita bisa mendapatkan address-list dengan lebih sempurna.
Selanjutnya pada /ip firewall mangle perlu dilakukan konfigurasi sbb:
/ ip firewall mangle
add chain=forward src-address-list=nice action=mark-connection \
new-connection-mark=mark-con-indonesia passthrough=yes comment="mark all \
indonesia source connection traffic" disabled=no
add chain=forward dst-address-list=nice action=mark-connection \
new-connection-mark=mark-con-indonesia passthrough=yes comment="mark all \
indonesia destination connection traffic" disabled=no
add chain=forward src-address-list=!nice action=mark-connection \
new-connection-mark=mark-con-overseas passthrough=yes comment="mark all \
overseas source connection traffic" disabled=no
add chain=forward dst-address-list=!nice action=mark-connection \
new-connection-mark=mark-con-overseas passthrough=yes comment="mark all \
overseas destination connection traffic" disabled=no
add chain=prerouting connection-mark=mark-con-indonesia action=mark-packet \
new-packet-mark=indonesia passthrough=yes comment="mark all indonesia \
traffic" disabled=no
add chain=prerouting connection-mark=mark-con-overseas action=mark-packet \
new-packet-mark=overseas passthrough=yes comment="mark all overseas \
traffic" disabled=no
Langkah selanjutnya adalah mengatur bandwidth melalui queue simple, untuk mengatur bandwidth internasional 128Kbps dan bandwidth lokal IIX 256Kbps pada komputer dengan IP 192.168.2.4 dapat dilakukan dengan contoh script sbb:
/ queue simple
add name="harijant-indonesia" target-addresses=192.168.2.4/32 \
dst-address=0.0.0.0/0 interface=all parent=none packet-marks=indonesia \
direction=both priority=8 queue=default/default limit-at=0/0 \
max-limit=256000/256000 total-queue=default disabled=no
add name="harijanto-overseas" target-addresses=192.168.2.4/32 \
dst-address=0.0.0.0/0 interface=all parent=none packet-marks=overseas \
direction=both priority=8 queue=default/default limit-at=0/0 \
max-limit=128000/128000 total-queue=default disabled=no
Script diatas berarti hanya komputer dengan IP 192.168.2.4 saja yang di batasi bandwidthnya 128Kbps internasional (overseas) dan 256Kbps lokal IIX (indonesia) sedangkan yang lainnya tidak dibatasi.
Hasil dari script tersebut adalah sbb:
Dengan demikian maka komputer 192.168.2.4 hanya dapat mendownload atau mengupload sebesar 128Kbps untuk internasional dan 256Kbps untuk lokal IIX.
Untuk mengujinya dapat menggunakan bandwidthmeter sbb:
Dengan demikian berarti Mikrotik telah berhasil mengatur pemakaian bandwidth internasional dan lokal IIX sesuai dengan yang diharapkan pada komputer 192.168.2.4.
Pada penjelasan versi-3 ini proses mangle terhadap traffic “overseas” dapat lebih akurat karena menggunakan address-list dimana arti dari src-address=!nice adalah source address “bukan nice” dan dst-address=!nice adalah destination address “bukan nice”.
Sehingga demikian traffic “overseas” tidak akan salah identifikasi, sebelumnya pada penjelasan versi-2 traffic “overseas” bisa salah indentifikasi karena traffic “overseas” di definisikan sbb
add connection-mark=mark-con-indonesia action=mark-packet new-packet-mark=indonesia chain=prerouting comment="mark indonesia"
add packet-mark=!indonesia action=mark-packet new-packet-mark=overseas chain=prerouting comment="mark all overseas traffic"
packet-mark=!indonesia artinya “packet-mark=bukan paket Indonesia”, padahal “bukan paket Indonesia” bisa saja paket lainnya yang telah didefinisikan sebelumnya sehingga dapat menimbulkan salah identifikasi.
http://www.mikrotik.com/docs/ros/2.9/RouterOS_Reference_Manual_v2.9.pdf
Script diatas dapat diimplementasikan pada Mikrotik Versi 2.9.27 , untuk versi mikrotik sebelumnya kemungkinan ada perbedaan perintah.
Reference:
* http://www.mikrotik.com
* http://www.mikrotik.co.id
* http://wiki.mikrotik.com
Selamat mencoba.
Setting Network di OpenBSD
I. Pengecekan network card
Pada tahap installasi kan kita sudah setting network jadi sebenarnya sudah tidak di perlukan setting lagi kecuali ada yang mau di rubah.
Coba kita gunakan command ifconfig
Gateway# ifcongfig –a
lo0: flags=8009
inet 127.0.0.1 netmask 0xff000000
ne3: flags=8863
media: Ethernet autoselect (10baseT)
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
pflog0: flags=141
sl0: flags=c010
sl1: flags=c010
ppp0: flags=8010
ppp1: flags=8010
tun0: flags=10
tun1: flags=10
enc0: flags=0<> mtu 1536
bridge0: flags=0<> mtu 1500
bridge1: flags=0<> mtu 1500
vlan0: flags=0<> mtu 1500
vlan1: flags=0<> mtu 1500
gre0: flags=8010
gateway#
coba liat network interface yang ada ne3 sudah terpasang address dengan ip 192.168.0.1 dengan netmask 0xffffff00 = 255.255.255.0
berarti network card kita udah up sekarang test untuk memastikan apa benar benar up.
Lakukan command ping untuk local LAN anda
Contoh :
Gateway# ping 192.168.0.100
PING 192.168.0.100 (192.168.0.100): 56 data bytes
64 bytes from 192.168.0.100: icmp_seq=0 ttl=128 time=0.644 ms
64 bytes from 192.168.0.100: icmp_seq=1 ttl=128 time=0.509 ms
64 bytes from 192.168.0.100: icmp_seq=2 ttl=128 time=0.469 ms
nah berarti network sudah jalan sukses selamat anda layak di cium om obsd :P
nah kalu masih blom isa gimana ? berarti anda gagal dalam instalasi network pada saat install jadi gimana donk ?? yah udah gini aja
sekarang kamu bisa man ifconfig untuk lebih jelasnya
tapi pastikan kalu Ethernet card situ emang terpasang dengan benar kabel UTP HUP atau router dengan baik. Dan pastinya ke detect ama openbsd anda.
Cara cecknya liat lah dmesg mu
Gateway# dmesg | more
Cari yang berbau bau merek network card situ seperti ini :
ne3 at pci0 dev 9 function 0 "Realtek 8029" rev 0x00: irq 11
ne3: address 00:80:c8:c2:c4:65
berarti network interface daku ne3 . yah sutra lakukan edit manual dengan ifconfig atau dengan mengedit langsung file di /etc yaitu hostname.ne3 < forwarding="1" 1="Permit" forwarding="1" 1="Permit" forwarding="1"> 1
selesai jadi deh computer situ sebagai gateway J
III. IP alias
Pada mesin BSD anda tentu ada kala nya anda perlu lebih dari 1 ip address elo karena itu di obsd juga dapat anda lakukan yaitu dengan cara :
Anda dapat lakukan dengan ifconfig . man ifconfig untuk melakukan ini
Atau langsung dengan menedit file /etc/hostname.xxx
Cara :
Gateway# vi /etc/hostname.ne3
inet 192.168.0.1 255.255.255.0 NONE
inet alias 192.168.0.200 255.255.255.0 NONE
ifconfig :
gateway# ifconfig ne3 inet alias 192.168.0.200 netmask 255.255.255.0
setelah itu reboot mesin anda dan coba liat dengan command ifconfig –a apakah ip alias sudah terpasang di network interface ne3
-
https://www.qrz.com/db/YD8KKR Loading Coil = Enamel 1,8mm , 90 turn , 1 inch diameter , 18cm length Magic Antenna , Just 3...
-
Capacitor code table European capacitor material codes FKC = metal foil and polycarbonate FKP = metal foil and polypropylene MKC = met...
-
Q. How do I use Cisco Configuration Professional with an integrated services router that does not have a factory default configuration?...
zte c300 trunk mode
gpon profile tcont PPPOE type 4 maximum 9900000 profile tcont 100M type 4 maximum 100000 profile tcont 50M-TRUNK type 4 maximum 5000...