Feeds:
Pos
Komentar

Archive for the ‘Bandwidth Shapping’ Category

Dimana disuatu warnet hanya mendapatkan bandwidth dari ISP 512kbps. dan banyak nya computer pada warnet tersebut sebanyak 40 PC + 2 computer operator total 42 dan ada 10 computer yang hanya digunakan sebagai Games centre. Tetapi kasusnya games selalu Lambat dan cenderung down,  padahal pada games centre hanya memakai bandwith kecil dan hanya local saja, karena server-server games kebanyakan dan hampir semua hanya local. Jadi bagaimana supaya semua kebagian merata.

####### Script ipfw ######

ipfwcmd=”/sbin/ipfw”
wan=”rl0″
lan=”rl1″
lan_ip=”192.168.0.0/24″
upstream=”64Kbit/s”
downstream=”64Kbit/s”
limit_ports=”80,8181″
downstream_local=”256Kbit/s”
downstream_games=”128Kbit/s”
games_upstream=”64Kbit/s”
games_downstream=”64Kbit/s”

$ipfwcmd add 100 pipe 10 ip from 203.77.212.0/24 to $lan_ip via $wan #Downstream Games
$ipfwcmd add 100 pipe 10 ip from 202.150.251.0/24 to $lan_ip via $wan #Downstream Games
$ipfwcmd add 100 pipe 10 ip from 202.69.100.0/24 to $lan_ip via $wan #Downstream Games
$ipfwcmd add 100 pipe 10 ip from 202.138.242.0/24 to $lan_ip via $wan #Downstream Games
$ipfwcmd add 100 pipe 10 ip from 202.10.63.0/24 to $lan_ip via $wan #Downstream Games
$ipfwcmd add 100 pipe 10 ip from 202.10.32.0/24 to $lan_ip via $wan #Downstream Games
$ipfwcmd add 100 pipe 10 ip from 202.43.167.0/24 to $lan_ip via $wan #Downstream Games
$ipfwcmd pipe 10 config bw $games_downstream mask dst-ip 0x000000ff
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 203.77.212.0/24 via $wan #Upstream Games
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 202.150.251.0/24 via $wan #Upstream Games
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 202.69.100.0/24 via $wan #Upstream Games
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 202.138.242.0/24 via $wan #Upstream Games
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 202.10.63.0/24 via $wan #Upstream Games
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 202.10.32.0/24 via $wan #Upstream Games
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 202.43.167.0/24 via $wan #Upstream Buat Games
$ipfwcmd pipe 20 config bw $games_upstream mask dst-ip 0x000000ff
$ipfwcmd add 300 pipe 30 ip from any to $lan_ip via $wan #Downstream

Buat Non-Web
$ipfwcmd pipe 30 config bw $downstream mask dst-ip 0x000000ff
$ipfwcmd add 400 pipe 40 ip from $lan_ip to any via $wan # Upstream

Buat Non-Web
$ipfwcmd pipe 40 config bw $upstream mask dst-ip 0x000000ff
$ipfwcmd add 500 pipe 50 tcp from any $limit_ports to $lan_ip via $lan  #Downstream Web
$ipfwcmd pipe 50 config bw $downstream_local mask dst-ip 0x000000ff

…………………….. Selamat Mencoba ………………………

Iklan

Read Full Post »