`echo <something> | pfctl -mf -` overriding instead of modifying

Niklaas Baudet von Gersdorff stdin at niklaas.eu
Wed May 18 08:23:39 UTC 2016


Dewayne Geraghty [2016-05-18 17:46 +1000] :

> Niklaus,
> Would you please reverse the order and advise?  That is try:
>      exec.poststart += "echo 'rdr pass on vtnet0 inet6 proto { udp tcp } to
> vtnet0 port domain ->   $private_ip6' | pfctl -a 'jails/$name' -mf -";
>    exec.poststart += "echo 'rdr pass on vtnet0 inet  proto { udp tcp } to
> vtnet0 port domain ->   $private_ip4' | pfctl -a 'jails/$name' -f -";

If I reverse th order, it is only the last redirect that is applied (in this
case inet). The same things happen if I use `-mf -` for the second entry in the
example above.
    
    Niklaas


More information about the freebsd-questions mailing list