Limiter di FreeBSD

Assalamu’alaikum Wr Wb,

Kali ini, penulis akan menuliskan beberapa contoh limiter yang bisa berjalan dengan baik di FreeBSD

1. Limiter dengan ipfw
contohnya adalah

ipfw add queue 49 ip from any to xxx.xxx.xxx.xxx
ipfw queue 49 config weight 60 pipe 49 mask all
ipfw pipe 49 config bw 128Kbit/s queue 150KBytes gred 0.002/5/15/0.1

ipfw add queue 50 ip from xxx.xxx.xxx.xxx to any
ipfw queue 50 config weight 60 pipe 50 mask all
ipfw pipe 50 config bw 128Kbit/s queue 150KBytes gred 0.002/5/15/0.1

2. Limit dengan pf
altq on rl0 bandwidth 100Mb hfsc queue {dflt,icmp,dns,client}
queue dflt bandwidth 10Mb qlimit 500 hfsc(red ecn default upperlimit 10Mb)
queue icmp bandwidth 256Kb priority 5 qlimit 500 hfsc (red ecn upperlimit 256Kb)
queue dns bandwidth 128Kb priority 6 qlimit 500 hfsc (red ecn upperlimit 128Kb)

#Client
queue client bandwidth 64Kb hfsc (red ecn realtime 64Kb linkshare 64Kb upperlimit 64Kb )

pass out quick on rl0 from any to xxxx.xxx.xxx.xxx keep state queue client

Itu dulu deh..

Yang lain entar🙂

Wssalamu’alaikum Wr Wb,
Al-Faqir, Saudi Arabia

Leave a comment

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s