pf + bridge + altq
Peter Střelec
peter.strelec at e-systems.sk
Wed Apr 27 10:24:17 CEST 2005
Zdravim vsetkych,
Pokusal som sa nakonfigurovat pf + altq hfsc.
Definoval som rpavidla pre vonkajsiu siet takto:
Bridge ide z wi0 na rl0
Vnutorna siet je 192.168.10.0/24
GW je 192.168.1.1
ext_if="rl1"
int_if="rl0"
internal_net="192.168.10.0/24"
external_addr="192.168.1.2"
altq on $ext_if bandwidth 2048Kb hfsc queue {meno1, meno2...}
queue meno bandwidth 25.6Kb hfsc (realtime 25.6Kb, upperlimit 256Kb)
queue meno2 bandwidth 25.6Kb hfsc (realtime 25.6Kb, upperlimit 256Kb)
......
NAT:
nat on $ext_if from $internal_net to any -> ($ext_if)
Rules:
pass out on $int_if inet proto {tcp,udp} from any to 192.168.10.4/32
queue meno
pass out on $int_if inet proto {tcp,udp} from any to 192.168.10.4/32
queue meno2
Zaradeovanie ide podla ipciek ok. Problem nastava pri zadani neiktorych
adries. V praxi to vyzera tak, ze niektore sa nacitaju v pohode, ine
vobec. Viete mi prosim Vas poradit? Vdaka Peter
More information about the Users-l
mailing list