We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8feba61 commit cbe0d33Copy full SHA for cbe0d33
1 file changed
misc/do-rtmpsuck.sh
@@ -6,13 +6,13 @@ sudo sysctl -w net.inet.ip.forwarding=1
6
# apply the pf rules:
7
echo '
8
rdr pass log on lo0 proto tcp from en0 to any port 1935 -> 127.0.0.1
9
-pass out on en0 route-to lo0 inet proto tcp from en0 to any port 1935 keep state
+pass out on en0 route-to lo0 inet proto tcp from en0 to any port 1935 keep state user != root
10
' | sudo pfctl -ef -
11
12
# check the pf rules:
13
# sudo pfctl -s all
14
15
-rtmpsuck -z;
+sudo rtmpsuck $@;
16
17
# clear the pf rules:
18
sudo pfctl -F all -f /etc/pf.conf
0 commit comments