2
1
Suppose I wanted to use ipfw to throttle uploads to youtube. The uploads are made to upload.youtube.com but this domain resolves into multiple different IPs (which also appear to change over time).
Trying to create a rule for the domain results (viewed through ipfw list
) in an entry connected just to the first IP to which the domain resolved to.
How could I get my rule to automatically apply to the domain, with all of its IPs as well as future IPs to which it will resolve to?
This answer of course assumes you're using a BSD variant, which I presume you are due to your attempts with ipfw. It appears not to be an option for Linux, so if my assumptions are incorrect, don't kill yourself trying to find it. Shorewall would do the trick on Linux if necessary. – 0xDAFACADE – 2014-08-15T19:51:38.077
After going ahead and crafting this answer for you, I stumbled across this. It looks like you might actually be able to handle this with ipfw after all, by running your traffic through snort_inline. After a good few hours of hunting for this, I'll leave it to you or someone else to figure the specifics out, but figured it's worth mentioning in case you really are tied to ipfw and migrating to pf isn't an option.
– 0xDAFACADE – 2014-08-15T20:31:27.837