Hello,
I have configured an ipfw.rules file. I am using it to limit the bandwidth for the network. I have recently installed mpd5 and OpenVPN in order to have VPN access. The problem is that I cannot limit the VPN traffic....
My ipfw.rules looks like this:
This file should limit the 172.23.0.0/23 network (which represent OpenVPN and PPTP) to 1MB/s. Still, it is not doing this. When I download something from the internet or when I do a speedtest it goes through the roof.
I have configured an ipfw.rules file. I am using it to limit the bandwidth for the network. I have recently installed mpd5 and OpenVPN in order to have VPN access. The problem is that I cannot limit the VPN traffic....
My ipfw.rules looks like this:
Code:
#General
table 1 flush
table 1 add 172.23.0.0/20
table 1 add 173.23.0.0/23
table 2 flush
table 2 add 173.23.0.0/23
table 2 add 172.22.0.0/21
table 3 flush
# 3000 KB/s
table 4 flush
table 4 add 172.23.1.16
table 4 add 172.23.1.11
table 4 add 172.23.6.61
table 4 add 172.23.8.2
table 4 add 172.23.4.1
pipe 10 config bw 1MByte/s mask src-ip 0x000007ff
pipe 11 config bw 1MByte/s mask dst-ip 0x000007ff
pipe 12 config bw 3000KByte/s
pipe 13 config bw 3000KByte/s
pipe 14 config bw 10KByte/s
pipe 15 config bw 10KByte/s
add pass all from table(2) to table(2)
add pass all from table(1) to 127.0.0.1 8021 in recv bge1
add pass all from 127.0.0.1 8021 to table(1) out xmit bge1
##3000 KB/s Limit
add pipe 12 all from table(4) to any in recv bge1
add pipe 13 all from any to table(4) out xmit bge1
# 10KB/s Limit
add pipe 14 all from table(3) to any in recv bge1
add pipe 15 all from any to table(3) out xmit bge1