Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-23 Thread jeroen2
paul- wrote: > It cannot be a dummy address, it will need to be a real address. You > might be able to create a virtual interface on your system. Then you > will need a real webserver running on that interface to handle the > redirect. > I just noticed that there's an index.html file in the s

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-10 Thread jeroen2
gregklanderman wrote: > > > Now to find something else that isn't really broke to take apart and > "fix"... > > from my experience, there is always an unlimited supply of such things.. Especially now. COVID days, become COVID weeks, become COVID months.. 2021 doesn't seem much different from

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-10 Thread gregklanderman
Awesome, congratulations! > Now to find something else that isn't really broke to take apart and > "fix"... :) from my experience, there is always an unlimited supply of such things.. gregklanderman's Profile: http://fo

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-10 Thread wactuary
Woo hoo! Thanks for the help pointing me in the right direction and helping me learn some new tools in the process. - Used iproute2 to add a new virtual interface and create a secondary IP to address the server. - Modified the docker-compose-yml to bind only to OldIP:80 instead of the ov

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-10 Thread gregklanderman
wactuary wrote: > I am starting to see where I'm having trouble. It's a docker session > that is currently listening on :80, and looking at my lsof output, it's > grabbing *:80 to listen on. I think I need to get the docker to only > listen on OldIP:80. Because as you say, I can only have one

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-10 Thread gregklanderman
I know you're using Ubuntu, but you also mentioned possibly bringing an RPi into the mix. FWIW the host I showed that has multiple IP addresses is an RPi running raspian, which uses dhcpcd by default which does not support multiple IP addresses. You have to turn off dhcpcd for the interface, in

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-10 Thread wactuary
I am starting to see where I'm having trouble. It's a docker session that is currently listening on :80, and looking at my lsof output, it's grabbing *:80 to listen on. I think I need to get the docker to only listen on OldIP:80. Because as you say, I can only have one app listen on any specif

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-10 Thread gregklanderman
Roland0 is correct.. you need to make sure the existing http server on port 80 is configured to listen only on the old IP address (you may also want to listen on the localhost address, 127.0.0.1), and configure the proxy (or slimserver; see more below) to listen on the new IP (what you called the

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-10 Thread d6jg
You have 2 options then A second IP but that will be very fiddly to set up and LMS may not like it. A reverse proxy on your existing machine that runs port 80 where http://ipaddress/LMS reverses to http://ipaddress:9000 You don’t need a new IP for the second method but you do need a web server eg

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread Roland0
wactuary wrote: > The NewIP is present and accessible from other machines within my local > network, however it serves pages and acts indentically to OldIP. > Because NewIP is bound to the same ports as OldIP, I couldn't run the > reverse proxy from NewIP:80 to OldIP:9000. > > An ip address i

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread wactuary
Roland0 wrote: > Not sure what you mean by "virtual device" in this context. Waht you'are > trying to archive is usually called 'IP aliasing' > (https://wiki.archlinux.org/index.php/Network_configuration#IP_address_aliasing) > You should use the iproute2 tools (ip specifically) instead if the >

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread wactuary
d6jg wrote: > It’s easy to run Apache & LMS on the same machine and have Apache > reverse proxy LMS so that :9000 is never visible but you are not really > explaining why you want to do it. Is this actually an attempt to access > LMS remotely? If so it’s not secure doing it this way. I'm not try

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread Roland0
wactuary wrote: > > Perhaps I should create the virtual device in some other manner? > Not sure what you mean by "virtual device" in this context. Waht you'are trying to archive is usually called 'IP aliasing' (https://wiki.archlinux.org/index.php/Network_configuration#IP_address_aliasing) You

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread d6jg
wactuary wrote: > OK, partially solved and good enough for now! I have not yet been able > to get this to work on just the LMS server box, but I have another > Ubuntu box that is usually on and was not hosting any web services. > Maybe I'll fire up a spare rpi as something lower powered so I do

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread wactuary
OK, partially solved and good enough for now! I have not yet been able to get this to work on just the LMS server box, but I have another Ubuntu box that is usually on and was not hosting any web services. Maybe I'll fire up a spare rpi as something lower powered so I don't need to keep this ot

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread jeroen2
wactuary wrote: > Maybe? I tried 8080 and 8443 but both are both blocked. As was 81. > Not sure how in Windows to test which ports are allowed through without > random/brute force testing in a browser. But finding another open port > would certainly be an easier solution if I can find one th

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread wactuary
jeroen2 wrote: > Surely there must be other ports accessible, otherwise it would be quite > unusable. Maybe you can try LMS on port 8080 or 443? Maybe? I tried 8080 and 8443 but both are both blocked. As was 81. Not sure how in Windows to test which ports are allowed through without random/b

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread wactuary
paul- wrote: > It cannot be a dummy address, it will need to be a real address. You > might be able to create a virtual interface on your system. Then you > will need a real webserver running on that interface to handle the > redirect. > > The only other option I can think of is owning a domai

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread jeroen2
wactuary wrote: > My work PC has non-standard ports blocked, but I can see > 192.168.1.xxx:80 from that machine. I'd like to be able to access the > server on a port 80 address. Surely there must be other ports accessible, otherwise it would be quite unusable. Maybe you can try LMS on port 80

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread paul-
It cannot be a dummy address, it will need to be a real address. You might be able to create a virtual interface on your system. Then you will need a real webserver running on that interface to handle the redirect. The only other option I can think of is owning a domain, in that case you can se

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread wactuary
bpa wrote: > Have you looked at this thread > > https://forums.slimdevices.com/showthread.php?113093-server-on-port-80 Thanks for finding that, but I don't think that solves my issue. I could start LMS running on Port 80, but I already have another service running on that port which I would

Re: [SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread bpa
Have you looked at this thread https://forums.slimdevices.com/showthread.php?113093-server-on-port-80 bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/sh

[SlimDevices: Unix] Redirect from ip1:9000 to newip:80

2021-01-09 Thread wactuary
This isn't really a LMS question but more of a linux/router config question, but I'm hoping someone here may know the answer. LMS is running on a Ubuntu 20.04 server, standard configuration and visible on port 192.168.1.xxx:9000. While working from home, my work PC has non-standard ports blocke