Results 1 to 3 of 3
Hi i am new to IPTABLES so unsure how to do this -
I want to stop a video stream which is on a known port e.g. 554 using the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-25-2003 #1Just Joined!
- Join Date
- Nov 2003
- Posts
- 3
iptables
Hi i am new to IPTABLES so unsure how to do this -
I want to stop a video stream which is on a known port e.g. 554 using the Helix server to a particular IP address using iptables.
Then at some point when it has been decided that the user at that IP address is allowed to view the stream again I want to allow output to that IP address using IPTABLES again.
Any help in this matter would be greatly appreciated.
GH
- 12-10-2003 #2Linux User
- Join Date
- May 2003
- Location
- CA
- Posts
- 370
this should work, I have the same on my system:
-A INPUT -p tcp -m tcp --destination <ip-addr> --dport 554 --syn -j REJECT
and replace the "REJECT" with the "ACCEPT" once you want to revert the
rule.
- 12-16-2003 #3Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Adding an additional "ACCEPT" rule won't revert the rule; it will just append an "ACCEPT" rule to the end of the chain which won't be checked since the "REJECT" rule will already have terminated the walk-through.
Instead, run "iptables -L", look up the index of the rule (1-based; if you don't have any other rules, the index is 1), and then run "iptables -D INPUT index" to remove the rejecting rule.


Reply With Quote
