All pastes #79126 Raw Edit

Untitled

public text v1 · immutable
·published 2006-07-04 23:13 UTC
rendered paste body

ext_if="rl0"
int_if="rl1"
net_dload_realtime="1Kb"
metro_dload_realtime="10Kb"
net_dload_upperlimit="256Kb"
metro_dload_upperlimit="50Mb"

scrub in all

altq on $int_if hfsc bandwidth 180Mb queue { ext_download, int_download, def, ext_upload, int_upload  }

queue int_download bandwidth 88Mb hfsc(upperlimit 88Mb)
queue def bandwidth 1Mb hfsc(default, upperlimit 512Kb)
queue ext_download bandwidth 1Mb hfsc(upperlimit 1Mb)

queue int_upload bandwidth 88Mb hfsc(upperlimit 88Mb)

queue ext_upload bandwidth 1Mb hfsc(upperlimit 1Mb)

nat on $ext_if from 89.35.250.0/24 to any -> ($ext_if)

block in quick on $ext_if from any to {86.55.13.202, 89.35.250.1 }
pass out quick on $ext_if from 86.55.13.202 to any keep state


pass out quick on $int_if from <metropolitan> to 89.35.250.0/24 queue int_download
pass in quick on $int_if from 89.35.250.0/24 to <metropolitan> queue int_upload
anchor extern_download from any to 89.35.250.0/24
anchor extern_upload from 89.35.250.0/24 to any