Showing ipfw configured pipes

ipfw

Using ipfw I'm configuring pipes, but not actually adding/binding them to a port. For example:

ipfw pipe 1 config bw 100KByte/s
ipfw pipe 2 config bw 200KByte/s

Above I've configured pipes 1 and 2 if not mistaken. Unfortunately, if I run:

ipfw pipe show

I get no output. Except if I actually "ipfw add" the pipes to a rule, then I can see what their configuration is.

The reason I'm asking this question is I'd like to write a script to create pipes but check to see if there are any pipes already configured so I don't overwrite them with my own pipes.

Best Answer

You first add a rule bound to a pipe then you configure the pipe settings.

You could get a list of ipfw rules that are bound to pipes and derive which pipes exist from that.

Related Topic