I have seen numerous forum posts as well as blog posts about how to use ipfw to limit bandwidth on FreeBSD. I have also seen a few on how to use them with freenas, however those ones are usually forum posts that are unanswered. I am trying to use ipfw to limit one of my jails' incoming bandwidth over WAN (leaving LAN traffic untouched). Here is some info:
What am I doing wrong here? I noticed that if I change pipe 1's bandwidth limit to unlimited (0), it works just fine as if nothing as wrong. As soon as I put a limit on it, even if that limit is something like 20000Mbps, it still basically shuts off that jail to the outside world.
Any ideas or has anyone done this successfully?
- My freenas server has an IP of 192.168.1.100 on my local network
- The particular jail I am trying to limit has an internal (IP was assigned automatically by freenas, not my router) of 192.168.1.3.
- My freenas also appears to have an internal ip of 192.168.1.1 that it uses for the inter-network between Freenas and the jails (those IPs are not accessible outside of freenas, 192.168.1.1 would just take me to my router).
- Enabling ipfw via the loader.conf on the root shell (not jail shell).
- Created a pipe and assigned it to my jail using the following:
ipfw pipe 1 config bw 20Mbps
ipfw pipe 1 ip from not 192.168.1.0/24 to 192.168.1.3
What am I doing wrong here? I noticed that if I change pipe 1's bandwidth limit to unlimited (0), it works just fine as if nothing as wrong. As soon as I put a limit on it, even if that limit is something like 20000Mbps, it still basically shuts off that jail to the outside world.
Any ideas or has anyone done this successfully?