Hi there.
I want to use ipfw + ng_car for traffic shaping.
I store ng_ipfw hook number in ipfw table as value, then I use this value as tablearg in the rules.
The problem is that I want to use 2 tables (one for user's IP addresses + ng_ipfw hook number, second one for specific addresses on which shaping rules apply). The manual page says that if 2 tables are used, then tablearg from second(destination) is used. Is there any way to use tablearg from the first table? Tablearg in second table is always 0.
P.S.: Does anyone working on ng_pf, to pass packets to netgraph from PF?
I want to use ipfw + ng_car for traffic shaping.
I store ng_ipfw hook number in ipfw table as value, then I use this value as tablearg in the rules.
The problem is that I want to use 2 tables (one for user's IP addresses + ng_ipfw hook number, second one for specific addresses on which shaping rules apply). The manual page says that if 2 tables are used, then tablearg from second(destination) is used. Is there any way to use tablearg from the first table? Tablearg in second table is always 0.
Code:
ipfw -q add 0200 netgraph tablearg ip from table\(100\) to table\(30\) in via age0
ipfw -q add 0300 netgraph tablearg ip from table\(31\) to table\(100\) out via age0
P.S.: Does anyone working on ng_pf, to pass packets to netgraph from PF?