LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2015, 09:31 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 546

Rep: Reputation: 37
configure iptables to control access to video stream


I'm running red5-server-1.0.3 on a centos 6 64bit vps and wish to do live-camera webcasting with it.
In order for me to upload the video stream, and for site visitors to see the image I have to open port 1935 in iptables and I've learnt that if I have red5 running on my server anyone - not just me - can connect to it and upload/stream their own video, which is a real security risk. I have to have the port (1935) open in iptables otherwise no-one can view the video stream. Is there a way to configure iptables so that only I can feed it the input video, but anyone can view it? The line I have in iptables right now is:
Code:
-A INPUT -p tcp -m tcp -d <red5-svr-ip.addr/32> --dport 1935 -j ACCEPT
I've also been looking into the red5 app itself but so far can see no way of closing this gaping hole.

Last edited by tonj; 04-26-2015 at 09:32 AM.
 
Old 04-27-2015, 08:33 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
This sounds more of a red5 issue and not a firewall issues. red5 is allowing users to add streams and you need to block this at the server.

I would suggest that you move away from port based firewall to connection based firewall. You have better control over how people connect to your system.

For example your firewall is allowing any traffic to port 1935 which allows anyone to inject anything they want as long as it is going to port 1935.

With a connection based firewall you can say for example if there is a new connection and it doesn't have the SYN flag set, drop it. This would only allows new connection that are SYN requests instead of blindly allowing anything go to port 1935.
 
Old 04-27-2015, 08:41 AM   #3
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
yes I thought this might be a red5 issue too but securing red5 is a nightmare, I've been at it for three days and still can't work out how to restrict the red5 input source, that's why I was hoping for a firewall based solution.
Where does one start in getting a connection based firewall?
 
Old 04-27-2015, 09:34 AM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Have you googled this?
 
Old 04-27-2015, 01:22 PM   #5
tonj
Member
 
Registered: Sep 2008
Posts: 546

Original Poster
Rep: Reputation: 37
yes but google doesn't find much on 'connection based firewall'. Would such a firewall go by a different name?
 
Old 04-27-2015, 01:50 PM   #6
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Try configure red5 streaming
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gateway server - how to configure NICs and iptables to control Internet access tuxmariner Linux - Networking 4 12-11-2012 06:48 PM
ffmpeg mixing audio/video - trying to end vid after video stream completes joejoe99 Linux - Software 2 06-21-2012 11:44 PM
Can iptables control what internal LAN clients can configure it? paddyjoesoap Linux - Security 21 02-22-2010 10:11 AM
LXer: BSDCan 2008: Stream Control Transmission Protocol LXer Syndicated Linux News 0 05-17-2008 07:00 PM
Dynamic Input Stream control lucky6969b Programming 1 01-13-2006 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration