X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=exec%2Fipfw-be;h=cc200c0d412c6c6b0dc1f000ef766e1df3d46d86;hb=864d8cd653876ccd7f809b25ec423698dd6a9f26;hp=22b02db76325ef59cc4e970955bef5732245ddd1;hpb=ab1e6066eb1cb3a3d7e2304883cc1f430c4c5594;p=vsys-scripts.git diff --git a/exec/ipfw-be b/exec/ipfw-be index 22b02db..cc200c0 100755 --- a/exec/ipfw-be +++ b/exec/ipfw-be @@ -182,8 +182,8 @@ add_rule() { # new_rule slice_id type arg rule pipe_base timeout ;; esac - rule_in="pipe ${pipe_in} in uid $slice_id ${rule_in} // $type $arg" - rule_out="pipe ${pipe_out} out uid $slice_id ${rule_out} // $type $arg" + rule_in="pipe ${pipe_in} in jail $slice_id ${rule_in} // $type $arg" + rule_out="pipe ${pipe_out} out jail $slice_id ${rule_out} // $type $arg" ${IPFW_CHECK} add ${rule_nr} $rule_in > /dev/null || \ abort "ipfw syntax error $rule_in" ${IPFW_CHECK} add ${rule_nr} $rule_out > /dev/null || \ @@ -351,7 +351,7 @@ process() { do_release ${SLICE_ID} $type $args ;; x"show") - # XXX should filter on uid + # XXX should filter on jail [ "$type" = "rules" ] && ${IPFW} show && return 0 [ "$type" = "pipes" ] && ${IPFW} pipe show && return 0 abort "'show' should be followed by {rules|pipes}"