PDA

View Full Version : [GiGaBlue QUAD+ PLUS] Stream HTTP authentication not working / unable to change stream port?



outrage_uk
01-12-15, 20:12
Im sick of having to manually disconnect strangers that are streaming from my box.

Ive tried to turn on HTTP authentication (Menu -> Setup -> System -> Customise -> "Require authentication for http streams") but neither VLC or direct entering username/password works (http://root:*password*@xxxx.xxxx.xxxx:8001/1:0:1:1933:7FF:2:11A0000:0:0:0::101 - BBC One Yorks)

Also "Fallback remote receiver streaming port" doesn't seem to change streaming port number (probably getting the function of this wrong).

I've checked in OpenWebIF and "Disable access for root user is set to no".

46015

46014

abu baniaz
01-12-15, 20:14
http://www.world-of-satellite.com/showthread.php?46802-Guide-Setting-up-SSH-with-public-private-keys

outrage_uk
02-12-15, 00:00
Thanks, but forgive me for been thick - but what will that actually do.

abu baniaz
02-12-15, 00:01
To make your receiver more secure against people streaming from you.

judge
02-12-15, 00:56
Im sick of having to manually disconnect strangers that are streaming from my box.


Thanks, but forgive me for been thick - but what will that actually do.

You should never have to disconnect strangers from your box.
Look at your networking needs & have a read of the post Abu pointed you to.

judge
02-12-15, 00:59
If you're leaving your box open to streaming to anyone, you have a lot bigger issues to worry about on your home network by the way.

outrage_uk
02-12-15, 02:39
I have a £150 Asus router that seemly can't block incoming WAN IP addresses (it's all or nothing for port forwarding). I've blocked outgoing ports which works fine now, just find it annoying how specific incoming connections can't be blocked, but that's another problem for another forum.

judge
02-12-15, 02:47
I have a £150 Asus router that seemly can't block incoming WAN IP addresses (it's all or nothing for port forwarding). I've blocked outgoing ports which works fine now, just find it annoying how specific incoming connections can't be blocked, but that's another problem for another forum.

Doesn't matter how much your router cost you, if you set it up incorrectly, it's your problem, not an E2 or image issue.

birdman
02-12-15, 03:04
I have a £150 Asus router that seemly can't block incoming WAN IP addresses (it's all or nothing for port forwarding).I've only seen incoming filter rules on modems, rather than routers. So it's not on my Asus router either, but is on my Billion modem.
Not that I use it, though.

outrage_uk
02-12-15, 16:26
Doesn't matter how much your router cost you, if you set it up incorrectly, it's your problem, not an E2 or image issue.

Yes im aware of that and as I say, that problem was for another forum - the router issue is now sorted
(iptables -t nat -I VSERVER 3 -p tcp -m tcp -s x.x.x.x --dport 8001 -j DNAT --to x.x.x.x)

The problem with E2/Openvix I refer to is still there however, when you enable HTTP authentication - it doesn't work with the root credentials. VLC repeatedly re-requests logins, and a direct url reports an error.

outrage_uk
13-12-15, 10:26
Any chance of this getting looked into?

Same problem here:

http://www.world-of-satellite.com/showthread.php?43737-Streaming-from-OpenWebif-asks-for-username-password-for-realm-streamserver

birdman
13-12-15, 15:34
Ive tried to turn on HTTP authentication (Menu -> Setup -> System -> Customise -> "Require authentication for http streams") but neither VLC or direct entering username/password works (http://root:*password*@xxxx.xxxx.xxxx:8001/1:0:1:1933:7FF:2:11A0000:0:0:0::101 - BBC One Yorks)


I've checked in OpenWebIF and "Disable access for root user is set to no".I've just tested authentication on my box with vlc.
It works OK using a non-root account for authentication.
It doesn't seem to work with root.

I can't see that the OpenWebif "Disable access for root user" setting actually makes any difference, as the streaming port (8001) isn't run by OpenWebif anyway. Min you, the code which handles it (enigma2/lib/dvb/streamserver.cpp) doesn't do any checking of the account name so the non-working for root is a little mysterious.

Anyway, as a workaround, try this.


Login to the box and create a non-root account (useradd streamer)
Set a password for it (passwd streamer)
Use that in the vlc authentication prompt.

outrage_uk
14-12-15, 02:00
Good suggestion, sadly adding a non root account still does not allow streaming with authentication.

What is strange, if you keep trying username and password time and time again, i eventually does work as a one off.

As you implied, I believe the fault lies somewhere within: enigma2/lib/dvb/streamserver.cpp (https://github.com/OpenViX/enigma2/blob/master/lib/dvb/streamserver.cpp)

@Huevos , i'd imagine you know more about this.

birdman
14-12-15, 03:50
What is strange, if you keep trying username and password time and time again, i eventually does work as a one off.Odd. Worked first time every time for my non-root account and never for root.

outrage_uk
15-12-15, 06:31
Which box, image and build are you using?

birdman
15-12-15, 10:12
Which box, image and build are you using?I'm using a MiracleBox Premium Twin, and was using 3.2-027, but the code is generic. Also, the only recent change has been to add some code to allow you to list connected clients from python code.

outrage_uk
15-12-15, 20:20
Which version of VLC are you using?

birdman
15-12-15, 22:03
Which version of VLC are you using?

2.1.6 (Rincewind). On Linux, but I could check on Windows too.

imish
01-06-16, 01:06
Good suggestion, sadly adding a non root account still does not allow streaming with authentication.

What is strange, if you keep trying username and password time and time again, .

having the same issue - can't stream successfully when streaming authentication is switched on.

how exactly is this feature supposed to be used?