Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
but get a 'forbidden' for the settings page. which is kind of expected. You currently have two options to deal with the situation: * enable password protection (and optionally add your networks to the IP allow list) * disable the check by setting the protectSettings value to a falsy value (vi is your UI to this setting :-)) ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
servus michael, i'm having the same or similar issue as the last poster. running LMS on a raspi4 (raspbian 10) in a docker container which is connected to the host network. so i can access it with 192.168.1.11 (ip of raspi) on the LMS port. which works fine and i did so on several machines yet. recently i installed tailscale (which plain rocks) so the raspi got another network device with the ip of the tailscale network (100.70.x.x) and can be accessed from anywhere. i can access LMS fine with this IP - but get a 'forbidden' for the settings page. which is kind of expected. additionally i figured it would make sense to set this raspi as a relay node on the tailscale network https://tailscale.com/kb/1019/subnets/ (which rocks even more). that way one can access any internal ip (192.168.1.x) from anywhere in the tailscale network without running the tailscale client on every device on the network. so i can use 192.168.1.11:9000 from anywhere - which works - but again i get a 403 for the settings page. annoyingly - set up this way - also when accessing LMS via the local ip on the local network. checking the logs: Code: Slim::Web::HTTP::generateHTTPResponse (1022) Access to settings pages is restricted to the local network or localhost: 100.76.xxx.xxx -> 192.168.1.11 (settings/index.html) so it would be really cool if there was a way to whitelist IPs/subnets to allow accessing settings. thanks, markus. markusk's Profile: http://forums.slimdevices.com/member.php?userid=34020 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
mherger wrote: > > > Can you tell us a little more about your environment? Tailscale would > not run in the container, would it? What IP networks are being used > where (inside and outside the container)? I've decided to uninstall Tailscale for the time being, but to answer the above, I was running Tailscale in a docker container (https://github.com/ido1990/tailscale-relay) on an Ubuntu server. Thanks for your help. I'll have to troubleshoot another time. andyss's Profile: http://forums.slimdevices.com/member.php?userid=71209 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
-[22-01-22 12:09:25.9103] Slim::Plugin::CLI::Plugin::cli_socket_accept (250) Access to CLI is restricted to the local network or localhost: - Can you tell us a little more about your environment? Tailscale would not run in the container, would it? What IP networks are being used where (inside and outside the container)? ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
mherger wrote: > > I started to have this problem after installing Tailscale on my > server > > hosting Slimserver. Does anyone know how to add the httpaddr value > to > > an instance running in a docker container? > > Edit the server.prefs file while the server is shut down. I thought that was the file to edit but adding this to the server.prefs file does nothing: -httpaddr: 192.168.1.100- I still get this in the logs: -[22-01-22 12:09:25.9103] Slim::Plugin::CLI::Plugin::cli_socket_accept (250) Access to CLI is restricted to the local network or localhost: - I'm thinking I am not entering the correct cmd. Thx. andyss's Profile: http://forums.slimdevices.com/member.php?userid=71209 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
I started to have this problem after installing Tailscale on my server hosting Slimserver. Does anyone know how to add the httpaddr value to an instance running in a docker container? Edit the server.prefs file while the server is shut down. ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
I started to have this problem after installing Tailscale on my server hosting Slimserver. Does anyone know how to add the httpaddr value to an instance running in a docker container? Thanks. andyss's Profile: http://forums.slimdevices.com/member.php?userid=71209 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
That sounds like a good idea! Where should I edit the logitechmediaserver.service file? I find this file in many directories, like /run/systemd/generator.late or /sys/fs/cgroup/systemd/system.slice Tintifax's Profile: http://forums.slimdevices.com/member.php?userid=70840 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
169.254 is the prefix used for an automatic assignment of an IP address when DHCP lookup fails. As for the rest ... I don't know the answer but can you simply delay the LMS startup until a 192.168 IP address has been assigned or the router can be pinged ... or failing that just make it wait N seconds. The typical way to do this it for wait-for-network in systemctl startup but I don't know if that treats a 169.254 as the network being available. Paul Webster author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc australia and cbc/radio-canada and, via the extra \"radio now playing\" plugin, allzic radio, caroline flashback, cesky rozhlas, dandelion radio, europa radio jazz, frequence3, fsk, jukeradio, klassikradio.de, linn radio, mother earth, naim radio, nova.fr, radioblues flac, radio espace, radio swiss, rte ireland, somehow jazz, supla finland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
This issue occured again, but fortunately this time I knew how to solve it (restart lms). I'm just curious how all of this works. Maybe someone can help me to understand this in more detail. I have lms 8.0.0 on Raspbian 10 Whenever there's a short interruption of the power supply in my home all network devices reboot at the same time. Because booting time of the device that is hosting the DHCP server is rather slow, lms on the Raspi always starts with the Raspi still having no IP, which leads to the fallback to 127.0.0.1 At least thats what server.log says: Slim::Utils::IPDetect::_init (138) Warning: Couldn't call connect() - falling back to 127.0.0.1 What I don't understand: 1) On page 2 of this thread, Michael wrote that with the change he applied in 2018, lms will retry later if there's no IP present at lms startup. Why doesn't it retry anymore? Because when I try to open the settings page after a blackout, I get the 403-error. 2) When I get this 403-error, server.log says Slim::Web::HTTP::generateHTTPResponse (1022) Access to settings pages is restricted to the local network or localhost: 192.168.1.9 -> 169.254.51.116 (settings/index.html) Why does it tell me its IP is 127.0.0.1, when in fact it's 169.254.51.116? 3) When I restart the lms-service, I can access the settings page as expected. Nevertheless, I still get the same line in the log-file after the restart: Slim::Utils::IPDetect::_init (138) Warning: Couldn't call connect() - falling back to 127.0.0.1 Why does lms fall back to 127.0.0.1, even if the Raspi has obtained an IP? And why can I access the settings page now from a different network? Tintifax's Profile: http://forums.slimdevices.com/member.php?userid=70840 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
I tried ip, dhcp upper and lower case, and parts of the IP address. Nothing related to the pi's IP: Code: pi@raspberrypi:/ $ ifconfig eth0: flags=4163 mtu 1500 inet 192.168.1.8 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::9a3f:8ce6:5746:bc5d prefixlen 64 scopeid 0x20 ether b8:27:eb:d4:55:2b txqueuelen 1000 (Ethernet) RX packets 22668222 bytes 1153166248 (1.0 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 20058306 bytes 3217567672 (2.9 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Lokale Schleife) RX packets 17322342 bytes 4580360286 (4.2 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 17322342 bytes 4580360286 (4.2 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 Tintifax's Profile: http://forums.slimdevices.com/member.php?userid=70840 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
try case insensitive and others things like dhcp and 169 and 192 Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Its Raspbian 5.10.17-v7+ Hm, dmesg|grep IP doesn't find any relevant info: Code: [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [0.001244] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000) [0.010623] SMP: Total of 4 processors activated (153.60 BogoMIPS). [4.454827] Segment Routing with IPv6 [ 66.285797] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Or does it? Tintifax's Profile: http://forums.slimdevices.com/member.php?userid=70840 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Which OS are you using? Not all will behave the same way. What does it say in dmesg regarding IP address? Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Ha! That was fast and accurate! Thanks a lot! Johannes PS: Just curious: What could have caused this? Maybe my DHCP server answered too slow (after LMS had already started) on the last reboot? But doesn't the raspberrypi wait for an IP-address until it continues the boot process? Tintifax's Profile: http://forums.slimdevices.com/member.php?userid=70840 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
169.254.x.y is the special address range used when DHCP is expected (not static assignment) and it was unable to get an IP address. Try restarting LMS now that you do have a DHCP allocated address. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Hi, I have LMS .deb running on a raspi, connected are a Boom and a Classic via Wifi. All are in the same 192.168.1.1 network and all Players work fine. Today I realized that I can not access the settings page (403 Forbidden: settings/index.html) I tried from two different devices in the same network (192.168.1.9 and 192.168.1.10, as you can see in the log): Code: [21-04-25 17:39:49.6510] Slim::Utils::SQLiteHelper::postConnect (377) Optimizing DB because of missing or empty sqlite_stat1 table [21-04-25 17:39:49.6696] Slim::Schema::forceCommit (2160) Warning: Trying to commit transactions before DB is initialized! [21-04-25 18:39:49.6533] Slim::Utils::SQLiteHelper::postConnect (377) Optimizing DB because of missing or empty sqlite_stat1 table [21-04-25 18:39:49.6728] Slim::Schema::forceCommit (2160) Warning: Trying to commit transactions before DB is initialized! [21-04-25 19:39:49.6488] Slim::Utils::SQLiteHelper::postConnect (377) Optimizing DB because of missing or empty sqlite_stat1 table [21-04-25 19:39:49.6716] Slim::Schema::forceCommit (2160) Warning: Trying to commit transactions before DB is initialized! [21-04-25 20:39:49.8290] Slim::Utils::SQLiteHelper::postConnect (377) Optimizing DB because of missing or empty sqlite_stat1 table [21-04-25 20:39:49.8478] Slim::Schema::forceCommit (2160) Warning: Trying to commit transactions before DB is initialized! [21-04-25 21:21:15.7542] Slim::Web::HTTP::generateHTTPResponse (1022) Access to settings pages is restricted to the local network or localhost: 192.168.1.9 -> 169.254.51.116 (settings/index.html) [21-04-25 21:31:10.5698] Slim::Web::HTTP::generateHTTPResponse (1022) Access to settings pages is restricted to the local network or localhost: 192.168.1.10 -> 169.254.51.116 (settings/index.html) IP of the raspi is 192.168.1.8 What is this 169.254.51.116? Thanks for any help, Johannes Tintifax's Profile: http://forums.slimdevices.com/member.php?userid=70840 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Seems like the default systemd unit entry in my case was uncorrect. This is the entry I now have and it's working! Code: [Unit] Description=Logitech Media Server Daemon After=network-online.target Wants=network-online.target [Service] User=logitechms Group=logitechms PIDFile=/var/run/lms.pid WorkingDirectory=/opt/logitechmediaserver ExecStart=/opt/logitechmediaserver/slimserver.pl \ --prefsdir /opt/logitechmediaserver/prefs \ --cachedir /opt/logitechmediaserver/cache \ --logdir /opt/logitechmediaserver/Logs \ --httpaddr 192.168.178.21 \ --httpport 9000 \ --noimage --novideo [Install] WantedBy=multi-user.target Found out about it here: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ Thank you Michael and Paul for your time and assistance! Wim De Winter's Profile: http://forums.slimdevices.com/member.php?userid=71606 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
So here's what I did, and this seems to have solved the problem. In system settings>system administration>systemd, I looked up logitechmediaserver in the tab called units and added Code: --httpaddr 192.168.178.21 to the unit file. The unit file now looks like this: Code: [Unit] Description=Logitech Media Server Daemon After=network.target [Service] User=logitechms Group=logitechms PIDFile=/var/run/lms.pid WorkingDirectory=/opt/logitechmediaserver ExecStart=/opt/logitechmediaserver/slimserver.pl \ --prefsdir /opt/logitechmediaserver/prefs \ --cachedir /opt/logitechmediaserver/cache \ --logdir /opt/logitechmediaserver/Logs \ --noimage --novideo --httpaddr 192.168.178.21 [Install] WantedBy=multi-user.target I'll reboot and let you know if this solution works for me. Wim De Winter's Profile: http://forums.slimdevices.com/member.php?userid=71606 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
When I wrote "are especially" I meant "are not especially" ! Anyway ... having more than one IP address can confuse things. You can tell LMS which IP address to listen on via the command line --httpaddr There are a bunch of IP address related command line options and they might all need setting. I don't have a Windows installation close by to check how to set them but I know it can be done because it gets read from the registry by LMS when it starts up ... so I guess it is via the LMS control applet. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Hey Paul, thanks for your answer!Paul Webster wrote: > 192.168.x.y and 10.x.y.z addresses are especially interesting to someone > outside your network because they are reserved for private networks. > So you don't really have to obscure them here. No problem doing so but > it makes it a bit harder trying to guess what might have happened. > > Take a look at your DHCP provider(s) to see where the IP addresses come > from. > Perhaps you have 2 on your LAN and they have different netmask settings. The second address (starting with 100.x.y.z by the way) is active when I use my VPN. It is switched on in network manager for general, standard use. Is there a way to let slimserver not use it? Or best to run the wizard again, but this time with VPN switched off? Wim De Winter's Profile: http://forums.slimdevices.com/member.php?userid=71606 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
192.168.x.y and 10.x.y.z addresses are especially interesting to someone outside your network because they are reserved for private networks. So you don't really have to obscure them here. No problem doing so but it makes it a bit harder trying to guess what might have happened. Take a look at your DHCP provider(s) to see where the IP addresses come from. Perhaps you have 2 on your LAN and they have different netmask settings. Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Hi Michael, Thanks for the swift reply! Short answer: that's how it ended up after installation. Long answer: (installation process): After some online search couldn't quite find Arch/Manjaro specific install instructions, so went ahead and installed this package: https://aur.archlinux.org/packages/logitechmediaserver. After installation did Code: systemctl enable logitechmediaserver and Code: systemctl start logitechmediaserver opened firefox and entered Code: xxx.yyy.zzz.ab:9000 as described here: https://wiki.slimdevices.com/index.php/Linux_Installation_Guide.html and got the error code Code: 403 Forbidden: settings/server/wizard.html After some internet search stumbled upon this thread, entered Code: xxx.yyy.zzz.ab:9000/server.log and thus found out about the IP adress rrr.sss.ttt.cd, used Code: rrr.sss.ttt.cd:9000 and could use the setup wizard that way. I stopped using numerical IP adresses and use localhost:9000 instead. That always seems to work. But my worry is that the connection between my two radio players and LMS will remain unstable. Reconnecting after reboot of the system hosting LMS seems necessary. The server.log of the last session: Code: [21-04-02 17:22:37.7405] main::init (388) Starting Logitech Media Server (v8.1.1, ARCH-AUR-GIT.8.1.1, do 01 apr 2021 20:53:30 CEST) perl 5.032001 - x86_64-linux-thread-multi [21-04-02 17:22:38.0338] Slim::Utils::IPDetect::_init (138) Warning: Couldn't call connect() - falling back to 127.0.0.1 [21-04-02 17:22:41.9426] Slim::Web::Cometd::handler (421) errorNeedsClient: 00:04:20:2e:5c:e1, status, -, 10, menu:menu, useContextMenu:1, subscribe:600 [21-04-02 17:22:42.8151] Slim::Web::Cometd::handler (421) errorNeedsClient: 00:04:20:2c:64:25, status, -, 10, menu:menu, useContextMenu:1, subscribe:600 [21-04-02 17:27:15.6191] Slim::Web::HTTP::generateHTTPResponse (1022) Access to settings pages is restricted to the local network or localhost: xxx.yyy.zzz.ab -> rrr.sss.ttt.cd (settings/index.html) [21-04-02 17:37:02.9317] Slim::Web::HTTP::generateHTTPResponse (1022) Access to settings pages is restricted to the local network or localhost: xxx.yyy.zzz.ab -> rrr.sss.ttt.cd (settings/index.html) By the way, the IP address rrr.sss.ttt.cd is slightly different ("ttt.cd" changes) after rebooting the system hosting LMS, but is unchanged after just restarting LMS without rebooting the system, so it most likely is a network problem. Wim De Winter's Profile: http://forums.slimdevices.com/member.php?userid=71606 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
network or localhost: xxx.yyy.zzz.ab -> rrr.sss.ttt.cd (settings/index.html) Why would you be accessing the settings from a different network? ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Hi all, I know, old thread, but I am using slimserver v8.1.1, ARCH-AUR-GIT.8.1.1 on manjaro and just can't get it to work properly. I can access it on my local machine with my local IP address eg xxx.yyy.zzz.ab, but can access the settings only by using the IP address as can be found in the server.log file eg rrr.sss.ttt.cd. Furthermore, the use of my two patched radios and squeezer is unstable. log file: Code: [21-04-02 10:51:55.7267] Slim::Web::HTTP::generateHTTPResponse (1022) Access to settings pages is restricted to the local network or localhost: xxx.yyy.zzz.ab -> rrr.sss.ttt.cd (settings/index.html) How do I set --httpaddr to xxx.yyy.zzz.ab in Manjaro Linux? I am unable to find the appropriate config files for slimserver. thanks! Wim De Winter's Profile: http://forums.slimdevices.com/member.php?userid=71606 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
I have a configuration where my players are on the 10.21.6/24 net and my normal network (computers, phones) are on 10.21.0/24. My server (running Ubuntu and LMS 7.9.1) has two interfaces one on each VLAN, The LMS listens to ip 0.0.0.0 in order to be found from both networks. But when I try to access the settings page i get the 403 and the log says: [19-08-14 12:49:23.8910] Slim::Web::HTTP::generateHTTPResponse (981) Access to settings pages is restricted to the local network or localhost: 10.21.0.136 -> 10.21.6.101 (settings/index.html) I thought this would be handled by the ip_is_private function: sub ip_is_private { my $packed_ip = inet_aton(shift) || return 0; # changed row due to posing rules return $packed_ip =~ m{ ^ (?: \x0A # 10.0.0.0/8 | \xAC[\x10-\x1F] # 172.16.0.0/12 | \xC0\xA8 # 192.168.0.0/16 ) }x; } Looks like anything on the 10 network should be ok... but for some reason id does not work. happi's Profile: http://forums.slimdevices.com/member.php?userid=69354 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
d6jg wrote: > Why do we frequently see people who get locked out of their LMS > installs, find their theme changed and experience sudden playing at > extreme volume at unearthly hours? > It is because they have been hacked. They have been hacked either > because they naively thought they would be immune to it (who would want > to hack my LMS?) and opened ports regardless or they weren't IT savvy > and didn't appreciate the consequences. > > Either way please do not SHOUT here particularly when the intended > recipients of your shouting are the very people that we all rely on for > support. If you can't hold your temper my advice is to get a SONOS > system. My security is MY security! I have my rights to choose at least what is good for me. Not you, not anybody else. fominator's Profile: http://forums.slimdevices.com/member.php?userid=69103 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
fominator wrote: > First of all possibility that someone can hack or even want to hack my > LMS is so small it is not even funny! Besides it's abslolutely > meaningless! AND SECOND - i can turn on access point on my smartphone to > control LMS, *BUT TURN OFF INTERNET CONNECTION*. So there is no chance > to hack me that way, but i still got it blocked. Isn't it stupid? Why do we frequently see people who get locked out of their LMS installs, find their theme changed and experience sudden playing at extreme volume at unearthly hours? It is because they have been hacked. They have been hacked either because they naively thought they would be immune to it (who would want to hack my LMS?) and opened ports regardless or they weren't IT savvy and didn't appreciate the consequences. Either way please do not SHOUT here particularly when the intended recipients of your shouting are the very people that we all rely on for support. If you can't hold your temper my advice is to get a SONOS system. VB2.4[/B] STORAGE *QNAP TS419P (NFS) [B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s *Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio) *Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones *Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s Everything controlled by iPeng d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
fominator wrote: > Again you said *everything* accept answer my question!!! HOW TO disable > this security check? I don't need your arguments about stupidity, > because FOR ME this "security" check is the most stupid and useless > thing! I NEED TO DISABLE THIS THING! Can you PLEASE just answer how to > disable it, i don't need such "security"! Is it so hard for you to > answer? Why? You said it can be disabled - HOW?So this is you asking nicely. > Wow.[emoji849] Sent from my SM-G900F using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
mherger wrote: > > OH GOD!!! *THANK YOU VERY MUCH!!* I'll try it. > > So simple thing and NO ONE could answer. > > I'm still convinced you don't really need this. But good luck with it > anyway! > > -- > > Michael First of all possibility that someone can hack or even want to hack my LMS is so small it is not even funny! Besides it's abslolutely meaningless! AND SECOND - i can turn on access point on smartphone to control LMS, *BUT TURN OFF INTERNET*. So there is no chance to hack me that way, but i still got it blocked. Isn't it stupid? fominator's Profile: http://forums.slimdevices.com/member.php?userid=69103 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
OH GOD!!! *THANK YOU VERY MUCH!!* I'll try it. So simple thing and NO ONE could answer. I'm still convinced you don't really need this. But good luck with it anyway! -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
karlek wrote: > Please calm down. > Youll find a line protectSettings: 1 that you > should set to 0 in server.prefs. Where do > you find the latter depends on the system youre running LMS on. > On my RasPi for instance its under > Code: > > /var/libs/squeezeboxserver/prefs > > . OH GOD!!! *THANK YOU VERY MUCH!!* I'll try it. So simple thing and NO ONE could answer. fominator's Profile: http://forums.slimdevices.com/member.php?userid=69103 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Please calm down. Youll find a line protectSettings: 1 that you should set to 0 in server.prefs. Where do you find the latter depends on the system youre running LMS on. On my RasPi for instance its under Code: /var/libs/squeezeboxserver/prefs . karlek's Profile: http://forums.slimdevices.com/member.php?userid=64321 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
DJanGo wrote: > This absolutely stupid "security" check is everything but stupid... > > && $prefs->get('protectSettings') What IS IT? fominator's Profile: http://forums.slimdevices.com/member.php?userid=69103 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
DJanGo wrote: > Instructions Unclear dick caught in the ceiling fan. Really? WHERE IS THE INSTRUCTION? Show me. fominator's Profile: http://forums.slimdevices.com/member.php?userid=69103 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
mherger wrote: > I claim that more than 99% of the people who no longer can access their > LMS because of this didn't understand the issue it resolves. Those > ordinary people are probably the same that don't understand that anyone > out there can access all of their files, photos and what not. > > If you try to explain your situation again, and do this nicely, I might > even be willing to help you. Again you said *everything* accept answer my question!!! HOW TO disable this security check? I don't your arguments about stupidity, I NEED TO DISABLE THIS THING! fominator's Profile: http://forums.slimdevices.com/member.php?userid=69103 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Instructions Unclear dick caught in the ceiling fan. DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
fominator wrote: > i don't understand. What should i do to disable it? Can you finally > answer this question? > You said it can be disabled using a pref in server.prefs., BUT HOW? What > is pref? What should i correct in this file? You don't realise how much > headache you brought to ordinary users with this absolutely stupid > "security" check. Please tell us how to disable it. Do you realize, that > people can't access LMS because of it? Nor to settings. So they CAN'T > SET PASSWORD! Because they can't access settings I claim that more than 99% of the people who no longer can access their LMS because of this didn't understand the issue it resolves. Those ordinary people are probably the same that don't understand that anyone out there can access all of their files, photos and what not. If you try to explain your situation again, and do this nicely, I might even be willing to help you. Michael http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo mherger's Profile: http://forums.slimdevices.com/member.php?userid=50 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
This absolutely stupid "security" check is everything but stupid... I feel I'm in a perfect situation to say no, it's not stupid. But your answer certainly is. Because it's not only wrong, but also misleading. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
fominator wrote: > i don't understand. What should i do to disable it? Can you finally > answer this question? > You said it can be disabled using a pref in server.prefs., BUT HOW? What > is pref? What should i correct in this file? You don't realise how much > headache you brought to ordinary users with this absolutely stupid > "security" check. Please tell us how to disable it. Do you realize, that > people can't access LMS because of it? Nor to settings. So they CAN'T > SET PASSWORD! Because they can't access settings Please play nice. All this is brought to you for free by people that do not count their hours, especially Michael. LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
fominator wrote: > i don't understand. What should i do to disable it? Can you finally > answer this question? > You said it can be disabled using a pref in server.prefs., BUT HOW? What > is pref? What should i correct in this file? You don't realise how much > headache you brought to ordinary users with this absolutely stupid > "security" check. Please tell us how to disable it. Do you realize, that > people can't access LMS because of it? Nor to settings. So they CAN'T > SET PASSWORD! Because they can't access settings This absolutely stupid "security" check is everything but stupid... && $prefs->get('protectSettings') DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
mherger wrote: > > I can access the settings page via the direct connection from my Mac > if > > I add a username and password. Is setting the username and password > the > > only way to do this? > > No. I knew the request would come up at some point, therefore the > feature can be disabled using a pref in server.prefs. But I haven't > exposed that pref to the UI. You'd have to set it manually in > server.prefs while LMS is down. Relevant commit is this: > > https://github.com/Logitech/slimserver/commit/aafbc2a7ef83f7f9b9d4afa2e255a5a9f6c24060#diff-a6e566b6bc12439aaf3b01431260b471R1019 > > Good luck :-) > > -- > > Michael i don't understand. What should i do to disable it? Can you finally answer this question? You said it can be disabled using a pref in server.prefs., BUT HOW? fominator's Profile: http://forums.slimdevices.com/member.php?userid=69103 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Interesting, thanks for that. I didn't realise piCorePlayer had all that built in! I might go and take another look... pag's Profile: http://forums.slimdevices.com/member.php?userid=37706 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
pag wrote: > @kidstypike I haven't yet set up the access point (just started the > project!), but the plan was to connect the Mac to the Pi via the > ethernet cable to transfer new music files as it will be quicker than > the wi-fi. I was planning to administer LMS from the Mac too, just > because it as a bigger screen. Control of the player itself will be > through Android, just as you have done. I'm glad to see I'm not the > only one who thinks this is a good solution :) I did start off thinking > of using piCorePlayer, but didn't want to learn yet another flavour of > Linux... My music files are on a portable 2TB USB HDD connected to the RPi in the car, if I have lot of files to sync to it, I can either do it over wifi (slow) or remove the USB drive and bring it indoors. All setup of piCorePlayer is done using a web browser, I don't speak a single word of Linux of whatever flavour! :) 25628 25630 +---+ |Filename: pcp apmode.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=25630| +---+ *Study/Server - LMS 7.9.2 -* Pi3B+/pCP 4.0.0/pi screen/HiFiBerry DAC+/jivelite, 25K library and playlists on WDMyCloud, LMS cache on a USB stick (formatted ntfs). *Lounge* - Pi2/pCP 4.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5 *Dining Room* - Pi3B/pCP 4.0.0 > HiFiBerry AMP+/retro radio *Garage* - Pi3B/Pi screen/HiFiBerry DAC+/pCP 4.0.0 > Edifier R980T *In car* - RPi3B/pCP in AP mode > HiFiBerry DAC+ > car's audio (files on a 2TB USB drive) *Spares* - 1xTouch, 1xSB3, 1xRadio, 1xBoom kidstypike's Profile: http://forums.slimdevices.com/member.php?userid=10436 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Thanks Micheal :) Keep up the great work, it's much appreciated! pag's Profile: http://forums.slimdevices.com/member.php?userid=37706 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
I can access the settings page via the direct connection from my Mac if I add a username and password. Is setting the username and password the only way to do this? No. I knew the request would come up at some point, therefore the feature can be disabled using a pref in server.prefs. But I haven't exposed that pref to the UI. You'd have to set it manually in server.prefs while LMS is down. Relevant commit is this: https://github.com/Logitech/slimserver/commit/aafbc2a7ef83f7f9b9d4afa2e255a5a9f6c24060#diff-a6e566b6bc12439aaf3b01431260b471R1019 Good luck :-) -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
On Sat, 2018-09-15 at 11:16 +, pag wrote: > Thanks both for the answers. > > I can access the settings page via the direct connection from my Mac > if I add a username and password. Is setting the username and > password the only way to do this? > Wired systems using CAT5 or CAT6 (twisted pair with an RJ45 plug at each end) cabling are always star topology. Each end device connects to a hub at the centre of the star and hubs can be daisy-chained together to form larger networks. This is the normal way to handle private wired ethernet and does not introduce noticeable delays. Your problem is that you've declared your Mac as both the RPi's gateway and, since its where your client web browser also runs, LMS thinks that, because the gateway and browser have the same IP, the browser belongs to somebody else out on the internet. The simple solution, if your router has more than one Ethernet port is to transfer the RPi connection to the router and set the router's IP address as its gateway. Now LMS can see that the gateway and client browser IPs differ, so won't need a username/password. If your router has only a single Ethernet socket, buy a 4-port hub (readily available for under a tenner from Amazon or Ebuyer) and a short ethernet cable (another couple of quid). Connect the hub to your router and both Mac and RPi to the hub and set the router's IP address as the RPi's gateway IP. Job done. Martin ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
It's not really clear to me what you're trying to do :( I have a RPi in my car, OS is piCorePlayer, it runs in access point mode. My phone is connected to the RPi's network to control the player with Squeeze Control. I can open a web browser on my phone and open the LMS webgui, and get to LMS/settings without problem and without password. (see signature) 25625 +---+ |Filename: AP honda.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=25625| +---+ *Study/Server - LMS 7.9.2 -* Pi3B+/pCP 4.0.0/pi screen/HiFiBerry DAC+/jivelite, 25K library and playlists on WDMyCloud, LMS cache on a USB stick (formatted ntfs). *Lounge* - Pi2/pCP 4.0.0 > HiFiBerry DIGI+ > AudioEngine DAC1 > AVI DM5 *Dining Room* - Pi3B/pCP 4.0.0 > HiFiBerry AMP+/retro radio *Garage* - Pi3B/Pi screen/HiFiBerry DAC+/pCP 4.0.0 > Edifier R980T *In car* - RPi3B/pCP in AP mode > HiFiBerry DAC+ > car's audio (files on a 2TB USB drive) *Spares* - 1xTouch, 1xSB3, 1xRadio, 1xBoom kidstypike's Profile: http://forums.slimdevices.com/member.php?userid=10436 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Thanks both for the answers. I can access the settings page via the direct connection from my Mac if I add a username and password. Is setting the username and password the only way to do this? It's not a huge issue, but as the only way I'll be able to connect is via a cable or WPA2 secured wi-fi (the Pi will be an access point for an Android based controller), so the username and password is a bit redundant. Particularly as the Pi will be off when the car's parked up! Ideally I'd like to turn off the security as the Pi is never going near the Internet - is there a way to do this please? Many thanks again :) pag's Profile: http://forums.slimdevices.com/member.php?userid=37706 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
The problem is that I want this server to be standalone (actually the plan is for it to be in the car), and once it's installed I won't be able to connect it to the home network. This is why I was hoping to be able to administer it from the Mac... If you enable password protection, you should be able to get access. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Yes. Due to long history of people leaving unprotected Lms instances connected to the internet new code now detects if requests come from the address of the default route and rejects them if so. There is a preference setting to disable this check. -Transcoded from Matt's brain by Tapatalk- -- Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0 Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums.. drmatt's Profile: http://forums.slimdevices.com/member.php?userid=59498 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Wow, thanks for the prompt reply! I've just tried with the Pi connected to my router, and things work as expected. The problem is that I want this server to be standalone (actually the plan is for it to be in the car), and once it's installed I won't be able to connect it to the home network. This is why I was hoping to be able to administer it from the Mac... Yes, the Mac is acting as the gateway when it's directly connected. Does this have some bearing on what's going on? pag's Profile: http://forums.slimdevices.com/member.php?userid=37706 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
I'm having the same issue trying to connect to the settings page. I have the simplest set up I could imagine: a Raspberry Pi connected directly to my Mac by an ethernet cable. Unfortunately it might be the simplest from a physical point of view. But it's more complicated from a networking POV. Just hook everything up to your router. The Mac's IP address is 192.168.10.1, and it's given the Pi an IP address of 192.168.10.2 Trying to connect using a browser on the Mac I get: 403 Forbidden: settings/server/wizard.html The logs show: Access to settings pages is restricted to the local network or localhost: 192.168.10.1 -> 192.168.10.2 (settings/server/wizard.html) Hmm... is the Mac acting as the gateway for your Pi? That could explain this. As I said: hook the Pi up to your router directly, and all should be fine. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
I'm having the same issue trying to connect to the settings page. I have the simplest set up I could imagine: a Raspberry Pi connected directly to my Mac by an ethernet cable. The Mac's IP address is 192.168.10.1, and it's given the Pi an IP address of 192.168.10.2 Trying to connect using a browser on the Mac I get: 403 Forbidden: settings/server/wizard.html The logs show: Access to settings pages is restricted to the local network or localhost: 192.168.10.1 -> 192.168.10.2 (settings/server/wizard.html) I can successfully connect to the server log page at http://192.168.10.2:9000/server.log I've tried various values of allowedHosts and httpaddr in the server.prefs file, and both version 7.9.1 and the nightly build of 7.9.2, all to no avail. Any help greatly appreciated! pag's Profile: http://forums.slimdevices.com/member.php?userid=37706 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
I have the same problem but I'm on Synology and I can't found the file... Depending on how you installed LMS on your NAS you'd better ask a related forum thread. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Hello, I have the same problem but I'm on Synology and I can't found the file... Many Thanks Sim7b's Profile: http://forums.slimdevices.com/member.php?userid=67162 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
cdmackay wrote: > Sorry to be dense; would someone tell me where to put the httpaddr arg > on a Debian Linux system, please? > > I don't believe there's anything wrong with my network setup (details > below), but I don't mind adding the arg, if only I knew where to add > it. > sigh, apols, I did know this, but forgot: $ grep SLIMOPTIONS /etc/default/logitechmediaserver SLIMOPTIONS="--nomysqueezebox --httpaddr=192.168.254.2" working perfectly now, thanks. apols for the noise. cdmackay's Profile: http://forums.slimdevices.com/member.php?userid=24816 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Sorry to be dense; would someone tell me where to put the httpaddr arg on a Debian Linux system, please? I don't believe there's anything wrong with my network setup (details below), but I don't mind adding the arg, if only I knew where to add it. thank you :) --- I am getting: [18-07-07 13:30:10.3001] Slim::Web::HTTP::generateHTTPResponse (981) Access to settings pages is restricted to the local network or localhost: 192.168.254.15 -> 82.27.120.181 (settings/index.html) and it looks like LMS is confused about what the local network is. Here, LMS runs on a multi-homed system. My local LAN is 192.168.254.0/24, and it's from that LAN that I'm trying to access the settings page, and getting the above. I get this even if I access the server as: http://192.168.254.2:9000/settings/index.html 82.27.120.181 is my publicly visible IP address; LMS is not exposed to the internet, since it is blocked by my firewall. cdmackay's Profile: http://forums.slimdevices.com/member.php?userid=24816 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
. Or once the lms server has been accessed by an IP of an external subnet it is definitely locked until the restart of LMS ? I think there's something wrong about your server. Can't you make sure you only have one network interface configured on your server, or make sure they all are correctly set up to access your LAN? What you're seeing is not LMS mis-behaving, or access from an external subnet, but LMS thinking it was, because the network interfaces aren't properly set up. (and overall I believe you perfectly showed why there must not be an easy option to turn off that protection: you'd have done it without understanding what the problem was. Not that it would have put you in danger, as you don't forward the port to the internet. But many people would to, in an attempt to fix some random issue) -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Paul Webster wrote: > A 169.254.x.x IP address implies that one of your (probably Windows) > systems was restarted and failed to get an IP address via DHCP. > So - the thing to do is find out which one it is and have a look at the > networking setup for it - including cabling - and perhaps give it an > otherwise unused fixed/reserved IP address in your 192.168.x.x range Mhhh if I can join the IP 192.168.0.77 of my lms server it means that my current IP is in the right subnet at that time. May be my IP has changed during few minutes during the reboot of my internet box but it shouldn't be a problem for the lms server once my IP came back in the right subnet . Or once the lms server has been accessed by an IP of an external subnet it is definitely locked until the restart of LMS ? schmurtz's Profile: http://forums.slimdevices.com/member.php?userid=57368 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
A 169.254.x.x IP address implies that one of your (probably Windows) systems was restarted and failed to get an IP address via DHCP. So - the thing to do is find out which one it is and have a look at the networking setup for it - including cabling - and perhaps give it an otherwise unused fixed/reserved IP address in your 192.168.x.x range Paul Webster http://dabdig.blogspot.com Author Radio France (FIP etc) plugin Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
mherger wrote: > > > But why would you get that message then? Maybe you want to outline your > > setup. > Yes, I've got an orange PI PC running with ARMbian (based on debian jessie), I've got a I2S sound card based on DAC Sabre ES9023. I'm running "Logitech Media Server Version: 7.9.1 - 1523349116". I've got squeezebox touch, squeezebox radio, squezelite running directly on the orange pi, a google home running with chrome bridge and a sonos working witht upnp bridge. I'm very satisfied of all this complex geek system :D Everything is running on the same network subnet in 192.168.0.x but sometimes I've got this error "Forbidden: settings/index.html" So until I found this topic I used to restart lms. In my server log I can observe : [18-05-29 23:32:08.1892] Slim::Web::HTTP::generateHTTPResponse (981) Access to settings pages is restricted to the local network or localhost: 192.168.0.10 -> 169.254.7.123 (settings/index.html) My LMS has the IP 192.168.0.77, my computer has many network interfaces but theoretically only the 192.168.0.10 is used in this case. I don't know from where the IP 169.254.7.123 comes from... It seems to be an IP no affected by DHCP server. I have restarted my internet box yesterday, may be the lms server in DHCP client is a bad idea... but it should work schmurtz's Profile: http://forums.slimdevices.com/member.php?userid=57368 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
For me, my lms is not exposed on internet But why would you get that message then? Maybe you want to outline your setup. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
May be the checkbox can be provided with a big warning when it is activated and with an url link to the lms documentation which explain and resume information which is in this topic ? The warning would say "don't use this option, because people will have fun waking you up at night and watching all your photos". Ok, assuming you understood that warning. Why would you still want to enable it? What exactly is your use case why you even run into this problem? -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
mherger wrote: > > The whole purpose of that change is to protect people who opened up > their LMS to the world without knowing about its consequences. Providing > > a button to disable it would render the whole feature obsolete, as > people would click that button without knowing about the consequences > again. > > Are you running Docker on your ARMbian? > Michael I clearly understand your point of view and to be honest I expected this answer :D May be the checkbox can be provided with a big warning when it is activated and with an url link to the lms documentation which explain and resume information which is in this topic ? I'm not running lms in a docker but I saw some dockers sources for lms, I 'll be curious to see the behaviour of lms security in this kind of environnement... For example : https://hub.docker.com/r/larsks/logitech-media-server/ schmurtz's Profile: http://forums.slimdevices.com/member.php?userid=57368 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
same problem here on ARMbian (based on debian Jessie). May be that a checkbox in the web interface to deactivate this filter could be a good idea. With the use of dockers and other technologies like that accessing from different subnet It will happening more and more often. The whole purpose of that change is to protect people who opened up their LMS to the world without knowing about its consequences. Providing a button to disable it would render the whole feature obsolete, as people would click that button without knowing about the consequences again. Are you running Docker on your ARMbian? -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Hi, same problem here on ARMbian (based on debian Jessie). May be that a checkbox in the web interface to deactivate this filter could be a good idea. With the use of dockers and other technologies like that accessing from different subnet It will happening more and more often. I don't find the file where I have to put the --httpaddr argument... schmurtz's Profile: http://forums.slimdevices.com/member.php?userid=57368 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Hi Michael, Coming back on the streaming issue to older devices reported earlier this year. Version 7.9.2 is working fine with --httpaddr argument supplied on all players. I am not sure what was changed in the code but thankfully it all works fine again! Many Thanks. mherger wrote: > > All players are on the same subnet 192.168.111.x and I did factory > reset > > of the boom but it did not help. > > Boom can browse and communicate with the squeezebox server but would > not > > stream. > > I think enabling debug logging for slimproto might tell you what server > > IP is announced to the players when they connect. But that's probably > really a subject for a different discussion, as it has nothing to do > with these recent changes. > > -- > > Michael skydreamer's Profile: http://forums.slimdevices.com/member.php?userid=67816 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
But when on the same network, why would you use the proxy? Sounds like solving a problem where there‘s none? I agree that using a proxy is not the most logical thing in this case. I use this setup because I want to have the same url scheme for all my web applications, both those that are available on the internet, and those that are only available on my internal network. And nowadays browsers start complaining if a site is not secure while other sites on the same domain are. Ok, it might make sense under very specific circumstances. I hope you protect access from the outside with a password or something? Feel free to provide a patch for the xff header support. I lack the resources to work on this for a valid, but really exotic use case. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
What else did you expect from a Network Specialist? Django - respect and manners are something I expect from everyone. No matter whether network specialist (all lower case), accountant or music lover. Unfortunately you all too often lack these. Please stop lecturing others while hardly ever being helpful. Thanks. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
vco1 wrote: > And nowadays browsers start complaining if a site is not secure while > other sites on the same domain are. Thats a whole different story about certificates and has nothing to do with that topic. LMS didnt use https for internal things, only external radiostreams. DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
vco1 wrote: > What an unexpected, strange and rather hostile answer to a sincere > technical question. > . What else did you expect from a Network Specialist? You wouldnt believe what kind of things i had to solve that are made by my colleges who should know it better? Networking looks easy is easy (if you really know the rules) but isnt. for everyone. LMS supports logfiles to help - xyz isnt helpful here... Technical enough? DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
DJanGo wrote: > wrong thinking... > eg 11.11.11. is a public IP > > writing these lines without adding some helpful information tolds me - > you didnt want any help. > bye What an unexpected, strange and rather hostile answer to a sincere technical question. By reading the thread before posting my initial question I understood I am not the only one who has some issues getting this new functionality to work on his environment. I hoped for some assistance here, in getting it to work within my network setup. vco1's Profile: http://forums.slimdevices.com/member.php?userid=68036 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
vco1 wrote: > Good to know. I don't think it makes much of a difference if x.y.z is > 192.168.0 or 11.11.11.. wrong thinking... eg 11.11.11. is a public IP writing these lines without adding some helpful information tolds me - you didnt want any help. bye DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
DJanGo wrote: > Hi, > > hiding private ips here in case of "need help" is a little bit over the > top and not helping anyone. > > using placeholder like x.y.z.1 or x.y.z.50 only make a little bit of > sense when x;y and z are always "whatever" > basically you describing something like i am using a reverse proxy and > one system thats in the same network like the proxy cant connect, > > That means: > The proxy isnt configured the right way. > Without know the setup/config its a unsolvalbe issue. xyz didnt help and > xyz isnt needed fpr private adresses !. > (These lines told me something - you wouldnt like to read) Good to know. I don't think it makes much of a difference if x.y.z is 192.168.0 or 11.11.11. Thankfully the proxy is configured correctly, otherwise I'd have great difficulties in accessing my web apps. ;-) It's just that the latest release of LMS is not playing nicely in this setup. And I was hoping to get some advice or suggestions here. vco1's Profile: http://forums.slimdevices.com/member.php?userid=68036 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
mherger wrote: > But when on the same network, why would you use the proxy? Sounds like > solving a problem where theres none? I agree that using a proxy is not the most logical thing in this case. I use this setup because I want to have the same url scheme for all my web applications, both those that are available on the internet, and those that are only available on my internal network. And nowadays browsers start complaining if a site is not secure while other sites on the same domain are. vco1's Profile: http://forums.slimdevices.com/member.php?userid=68036 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
vco1 wrote: > The error that I get in the logfile is > > Code: > > Web::HTTP::generateHTTPResponse (981) Access to settings pages is restricted to the local network or localhost: x.y.z.1 -> x.y.z.50 > > > Hi, hiding private ips here in case of "need help" is a little bit over the top and not helping anyone. using placeholder like x.y.z.1 or x.y.z.50 only make a little bit of sense when x;y and z are always "whatever" basically you describing something like i am using a reverse proxy and one system thats in the same network like the proxy cant connect, That means: The proxy isnt configured the right way. Without know the setup/config its a unsolvalbe issue. xyz didnt help and xyz isnt needed fpr private adresses !. (These lines told me something - you wouldnt like to read) DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
vco1 wrote: > .1 is the gateway and the box on which the reverse proxy runs. I'm > accessing LMS from different ip's. In this case it was .20. The .50 in > my logfile is the server LMS is running on. > > Actually, I think it should work if LMS took the X-FORWARDED-FOR header > set by the reverse proxy into consideration. Kind of like this (which is > not my code as I'm not very fluent in Perl): > > > Code: > > $ip = $ENV{'HTTP_X_FORWARDED_FOR'} || $ENV{'REMOTE_ADDR'}; > > But when on the same network, why would you use the proxy? Sounds like solving a problem where theres none? And no, using that header would fix anything. It would only disable the security check. It doesnt tell LMS that the connection comes from a safe place. Michael http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo mherger's Profile: http://forums.slimdevices.com/member.php?userid=50 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
mherger wrote: > Is .1 the gateway? What ip are you accessing LMS from? .1 is the gateway and the box on which the reverse proxy runs. I'm accessing LMS from different ip's. In this case it was .20. The .50 in my logfile is the server LMS is running on. Actually, I think it should work if LMS took the X-FORWARDED-FOR header set by the reverse proxy into consideration. Kind of like this (which is not my code as I'm not very fluent in Perl): Code: $ip = $ENV{'HTTP_X_FORWARDED_FOR'} || $ENV{'REMOTE_ADDR'}; vco1's Profile: http://forums.slimdevices.com/member.php?userid=68036 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Is .1 the gateway? What ip are you accessing LMS from? Michael http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo mherger's Profile: http://forums.slimdevices.com/member.php?userid=50 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Accessing Webfrontend from 192.168.2.101 (my Desktop PC). DHCP done by HW-Firewall: 192.168.2.100 Ok, then LMS is working as expected: you're accessing it from a different network. This is no longer possible without further configuration. If you want us/me to help you "fix" the issue (work around that security feature), then you'll have to explain how these networks are connected to each other. How things are set up. Because this is not a standard installation, we need more information. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Accessing Webfrontend from 192.168.2.101 (my Desktop PC). DHCP done by HW-Firewall: 192.168.2.100 JerryF's Profile: http://forums.slimdevices.com/member.php?userid=67969 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Whats the IP address of the computer youre accessing the settings from? Whats your routers address? Michael http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo mherger's Profile: http://forums.slimdevices.com/member.php?userid=50 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
mherger wrote: > > I'm running LMS on ClearOS7 (Centos 7) > > Ok, then you should have a file /etc/sysconfig/squeezeboxserver. Add > --httpaddr to the startup parameters, telling LMS which IP address to > bind to. > > -- > > Michael SQUEEZEBOX_HTTPADDR="192.168.1.1" did the trick Thanks for the support !! - Patrick madpatrick's Profile: http://forums.slimdevices.com/member.php?userid=4929 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
I'm running LMS on ClearOS7 (Centos 7) Ok, then you should have a file /etc/sysconfig/squeezeboxserver. Add --httpaddr to the startup parameters, telling LMS which IP address to bind to. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
mherger wrote: > > Is there maybe already an solution for this. > > Fix your setup :-). > > You might want to tell us more about your system. It seems it has > multiple IP addresses? Is it exposed to the internet? > > > [18-03-14 22:09:07.3485] Slim::Web::HTTP::generateHTTPResponse > (981) Access to settings pages is restricted to the local network or > localhost: 192.168.1.204 -> 31.151.192.11 (settings/index.html) > > Hmm... I thought I had fixed that case. But as I said: more information > > is needed. > > -- > > Michael Hello Michael, Please let me know which information you want. I'm running LMS on ClearOS7 (Centos 7) > > Hostnaam: pdebrabander.nl > IP-adres van server: 31.151.192.11 > HTTP-poortnummer van server: 9000 > Besturingssysteem: Red Hat - NL - utf8 > Platformarchitectuur: x86_64-linux > Perl-versie: 5.16.3 - x86_64-linux-thread-multi > Audio::Scan: 0.95 > Databaseversie: DBD::SQLite 1.34_01 (sqlite 3.7.7.1) > Model van muzieksysteem: Squeezebox Radio > Type muzieksysteem: baby > Firmware: 7.7.3-r16676 > IP-adres van muzieksysteem: 192.168.1.100 > MAC-adres van muzieksysteem: 00:04:20:26:23:70 > Model van muzieksysteem: Squeezebox Touch > Type muzieksysteem: fab4 > Firmware: 7.8.0-r16754 > IP-adres van muzieksysteem: 192.168.1.201 > MAC-adres van muzieksysteem: 00:04:20:22:22:70 Somehow LMS has the IP adres of my external IP and local IP - Patrick madpatrick's Profile: http://forums.slimdevices.com/member.php?userid=4929 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Is there maybe already an solution for this. Fix your setup :-). You might want to tell us more about your system. It seems it has multiple IP addresses? Is it exposed to the internet? [18-03-14 22:09:07.3485] Slim::Web::HTTP::generateHTTPResponse (981) Access to settings pages is restricted to the local network or localhost: 192.168.1.204 -> 31.151.192.11 (settings/index.html) Hmm... I thought I had fixed that case. But as I said: more information is needed. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Hi, Is there maybe already an solution for this. I'm having the same problem after update to the latest version. Settings page is not accesable. Code: [18-03-14 22:09:07.3485] Slim::Web::HTTP::generateHTTPResponse (981) Access to settings pages is restricted to the local network or localhost: 192.168.1.204 -> 31.151.192.11 (settings/index.html) - Patrick madpatrick's Profile: http://forums.slimdevices.com/member.php?userid=4929 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
All players are on the same subnet 192.168.111.x and I did factory reset of the boom but it did not help. Boom can browse and communicate with the squeezebox server but would not stream. I think enabling debug logging for slimproto might tell you what server IP is announced to the players when they connect. But that's probably really a subject for a different discussion, as it has nothing to do with these recent changes. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Boom binds either to the local LAN IP interface or the Public IP on the Squeezebox server. It depends on how the server is started. With httpaddr parameter it links with the server's NIC local IP but does not stream and without it Boom binds to the public IP and streams fine. skydreamer's Profile: http://forums.slimdevices.com/member.php?userid=67816 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Is the boom configured to talk to the internal or external address of LMS server? (Assuming I have the right end of the stick..) -Transcoded from Matt's brain by Tapatalk- -- Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0 Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums.. drmatt's Profile: http://forums.slimdevices.com/member.php?userid=59498 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
I completely agree it makes no sense. All players are on the same subnet 192.168.111.x and I did factory reset of the boom but it did not help. Boom can browse and communicate with the squeezebox server but would not stream. skydreamer's Profile: http://forums.slimdevices.com/member.php?userid=67816 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
When httpaddr argument with the local IP address is used Squeezebox boom, Squeezebox radio and duet receiver stop working. They do not stream the local music and hang at "33% buffering" or thereabouts on Internet radio. Also the spotify plugin is affected by the same. There are no errors in the server log. Rebooting the players or the server made no difference. It does not affect softsqueeze or touch players, they both play back just fine. This doesn't make sense... unless the players aren't all on the same network. Are they all on the same? On which one? You might want to do a factory reset on one of the none-working units, as it does store some of the connection data on device. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Hi Michael, I discovered possibly a new bug that is related to the httpaddr argument regardless of the squeezeboxserver version or your patch. It may deserve its own thread. When httpaddr argument with the local IP address is used Squeezebox boom, Squeezebox radio and duet receiver stop working. They do not stream the local music and hang at "33% buffering" or thereabouts on Internet radio. Also the spotify plugin is affected by the same. There are no errors in the server log. Rebooting the players or the server made no difference. It does not affect softsqueeze or touch players, they both play back just fine. That is rather peculiar? skydreamer's Profile: http://forums.slimdevices.com/member.php?userid=67816 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
An app that binds to "all local addresses" when it opens a socket doesn't do so in an order as such. The question is more about the way the function decides which address to return when you ask what it is... It should probably return all the addresses in a list in fact. The ordering of that list is probably to do with either the order the NICs were registered with the kernel at boot (old eth0, eth1 behaviour), or alphabetical based on the NIC name. -Transcoded from Matt's brain by Tapatalk- -- Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0 Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums.. drmatt's Profile: http://forums.slimdevices.com/member.php?userid=59498 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Indeed I can open open the settings page after your patch but it requires the httpaddr parameter to be present. Great, thanks! It is weird that squeezeboxserver picks out the only public IP out of all available addresses on my PC. The rest are all private. Is there some order in which it binds to the network interfaces or completely random? TBH: I don't know... -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Indeed I can open open the settings page after your patch but it requires the httpaddr parameter to be present. It is weird that squeezeboxserver picks out the only public IP out of all available addresses on my PC. The rest are all private. Is there some order in which it binds to the network interfaces or completely random? skydreamer's Profile: http://forums.slimdevices.com/member.php?userid=67816 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Thanks for the patch Michael that was really quick! After applying it the settings page can be accessed when httpaddr parameter with the local IP is supplied to the squeezeboxserver and produces 403 error when omitted as before. You'd confirm that it is working as expected? -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Thanks for the patch Michael that was really quick! After applying it the settings page can be accessed when httpaddr parameter with the local IP is supplied to the squeezeboxserver and produces 403 error when omitted as before. skydreamer's Profile: http://forums.slimdevices.com/member.php?userid=67816 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] Forbidden: settings/index.html
Oh... you might be on to something... Would the following change fix the behaviour for you? Could you please test this with and without the httpaddr startup parameter? Code: diff --git a/Slim/Utils/Network.pm b/Slim/Utils/Network.pm index 53facd175..f0bd1969f 100644 --- a/Slim/Utils/Network.pm +++ b/Slim/Utils/Network.pm @@ -456,9 +456,9 @@ sub ip_is_host { my $ip = shift || return; return 1 if $ip eq '127.0.0.1'; - return 1 if $ip eq hostAddr(); + return 1 if $ip eq serverAddr(); - return intip($ip) == intip(hostAddr()) ? 1 : 0; + return intip($ip) == intip(serverAddr()) ? 1 : 0; } =head1 ip_is_gateway($ip) @@ -497,7 +497,7 @@ sub ip_on_different_network { # if our host IP is 127.0.0.1 (lookup failed), then all networks would be different - ignore return if hostAddr() eq '127.0.0.1'; - return ip_is_private(hostAddr()) ? !ip_is_private($ip) : ip_is_private($ip); + return ip_is_private(serverAddr()) ? !ip_is_private($ip) : ip_is_private($ip); } =head1 SEE ALSO hostAddr() would indeed ignore that parameter. Thanks for the heads up! Michael http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo mherger's Profile: http://forums.slimdevices.com/member.php?userid=50 View this thread: http://forums.slimdevices.com/showthread.php?t=108599 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter