Bandwidth Prioritas Menggunakan Ipfw pada FreeBSD

Mungkin ini simple script pada ipfw yang memungkinkan pembagian bandwith secara merata. Kasus yang terjadi mengapa saya membuat script ini y...

Mungkin ini simple script pada ipfw yang memungkinkan pembagian bandwith secara merata. Kasus yang terjadi mengapa saya membuat script ini yaitu pada di suatu warnet hanya mendapatkan bandwidth dari ISP 512kbps dan banyaknya
computer pada warnet tersebut sebanyak 40 PC + 2 computer operator total 42. (bayangkan!!!)
ada 10 computer yang hanyak digunakan sebagai Games centre. tetapi kasus nya 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. untuk memaksimalkan games centre tersebut saya mengunakan bandwidth prioritas. itu mungkin nama yang saya bikin "BW PRIORITAS" lucu yah? heheheh :P egp lah.

berikut script yang saya pakai. (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 Buat Games
$ipfwcmd add 100 pipe 10 ip from 202.150.251.0/24 to $lan_ip via $wan #
Downstream Buat Games
$ipfwcmd add 100 pipe 10 ip from 202.69.100.0/24 to $lan_ip via $wan #
Downstream Buat Games
$ipfwcmd add 100 pipe 10 ip from 202.138.242.0/24 to $lan_ip via $wan #
Downstream Buat Games
$ipfwcmd add 100 pipe 10 ip from 202.10.63.0/24 to $lan_ip via $wan #
Downstream Buat Games
$ipfwcmd add 100 pipe 10 ip from 202.10.32.0/24 to $lan_ip via $wan #
Downstream Buat Games
$ipfwcmd add 100 pipe 10 ip from 202.43.167.0/24 to $lan_ip via $wan #
Downstream Buat 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 Buat Games
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 202.150.251.0/24 via $wan
#Upstream Buat Games
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 202.69.100.0/24 via $wan
#Upstream Buat Games
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 202.138.242.0/24 via $wan
#Upstream Buat Games
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 202.10.63.0/24 via $wan
#Upstream Buat Games
$ipfwcmd add 200 pipe 20 ip from $lan_ip to 202.10.32.0/24 via $wan
#Upstream Buat 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 Buat Web
$ipfwcmd pipe 50 config bw $downstream_local mask dst-ip 0x000000ff
diatas script yang saya maksud. prioritas yang saya pakai melalu IP
server games tersebut.
sebelumnya saya coba melalui Port. tapi kurang maksimal dan port itu
buanyak sekali dan bisa ajah peluang di gantinya pun ga tentu. beda
dengan menggunakan IP. dan syukur alhamdulilah para gamers tidak mengeluh.
semua kebagian bandwidth merata.

Greetz : sieko and Bayu krisna

COMMENTS

Name

Application Support,19,database server,1,Desktop/XWindow,1,DNS Server,2,Email Server,3,Firewall,1,FTP Server,2,General,2,IPFilter,1,Kernel,2,Networking,8,Proxy Server,4,Security,6,Tips and Trick,5,Web Server,2,
ltr
item
IndoFreeBSD: Bandwidth Prioritas Menggunakan Ipfw pada FreeBSD
Bandwidth Prioritas Menggunakan Ipfw pada FreeBSD
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcEmJJl7HNj4iJJ2CN99oAlvhzBHfGuZczGz1CXZZ2K6Y1-IhUqi_fd6bEN2i_N0RZKnaNQv9IsFQgUboyFvkVmKbPoAu099iLyiQBEFTU8YSGbXbGVsLhXQ1XNWm7-XP44uu8pF8KmSbG/s1600/dummynet.gif
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcEmJJl7HNj4iJJ2CN99oAlvhzBHfGuZczGz1CXZZ2K6Y1-IhUqi_fd6bEN2i_N0RZKnaNQv9IsFQgUboyFvkVmKbPoAu099iLyiQBEFTU8YSGbXbGVsLhXQ1XNWm7-XP44uu8pF8KmSbG/s72-c/dummynet.gif
IndoFreeBSD
http://www.indofreebsd.or.id/2015/02/bandwidth-prioritas-menggunakan-ipfw.html
http://www.indofreebsd.or.id/
http://www.indofreebsd.or.id/
http://www.indofreebsd.or.id/2015/02/bandwidth-prioritas-menggunakan-ipfw.html
true
1901051463523757307
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content