Page 1 of 2

Artnet output IP - Change request

Posted: Thu Jul 16, 2015 8:13 pm
by Morphinus21
Hello,

i have a Feature request. I would like to change the following thing:

Image

Problem: We use an VPN Connection to remote Control Light.

My Home Network is 192.168.20.0 The Remote Network is 192.168.30.0 (Artnet Interface 192.168.30.200).

In other Programs you could change the IP Adress to another one an send Artnet over VPN.

Could you change it, so that we can do this?

Thank you

Dominik

Re: Artnet Exit IP Change

Posted: Thu Jul 16, 2015 9:06 pm
by mcallegari
I'm not so expert of VPNs, but can't Windows expose a virtual interface to the VPN itself that you can directly use in QLC+ ?
In the end a VPN is a private network and your PC must have an IP address to access it.
If QLC+ can "see" that output address, there is no need to change the current code.

Re: Artnet Exit IP Change

Posted: Fri Jul 17, 2015 6:53 am
by adriankapka
Hi Massimo

But it may be the case when the router sets up a VPN tunnel and redirects traffic only on a given subnet, in which case it is required that the move was directed at a particular IP address by the current interface network.

Re: Artnet Exit IP Change

Posted: Fri Jul 17, 2015 6:53 am
by mcallegari
adriankapka wrote:But it may be the case when the router sets up a VPN tunnel and redirects traffic only on a given subnet, in which case it is required that the move was directed at a particular IP address by the current interface network.
Adrian, can you please tell me which netmask you have on the interface accessing the VPN ? Thanks.

Re: Artnet Exit IP Change

Posted: Mon Jul 20, 2015 9:56 pm
by Morphinus21
Hello,

adriankapka is right. The Tunnel only routes to an given subnet. So i have to change tthe net in QLC+

Re: Artnet output IP - Change request

Posted: Thu Jul 23, 2015 10:55 pm
by mcallegari
Bump. Are you interested in this change or not ?

I've made it in GIT. If you reply to this I will build a Windows test version, otherwise I won't.

Re: Artnet output IP - Change request

Posted: Fri Jul 24, 2015 11:57 am
by Morphinus21
Hello,

i am interested :)

Thank you for your help.

Re: Artnet output IP - Change request

Posted: Fri Jul 24, 2015 2:42 pm
by mcallegari
Windows test version available here:
viewtopic.php?f=12&t=3135&p=14583

Please test and report here if the artnet change works for you

Re: Artnet output IP - Change request

Posted: Fri Jul 24, 2015 3:47 pm
by Morphinus21
Hello mcallegari,

do you have uploaded it?

i cannot change the Ip-Adress yet:

Image

It should be possible to change like the "255" in The picture.

Thank you :)

Dominik

Re: Artnet output IP - Change request

Posted: Fri Jul 24, 2015 3:47 pm
by mcallegari
Morphinus21 wrote:do you have uploaded it?
Have you downloaded the today TEST version ? It should say QLC+ 4.9.2 GIT

Anyway, same question for you: which netmask are you using ?
Now the output IP "editable" boxes are based on the interface subnet mask. If you're using 255.255.255.0 it's obvious you can change only the 4th number of the IP.
For a 192.168.20.x IP you should have a netmask like 255.255.0.0, otherwise how can you possibly reach it ?
(unless this is one of the Windows misteries I will never understand...)

Re: Artnet output IP - Change request

Posted: Fri Jul 24, 2015 5:27 pm
by Morphinus21
Yeah i am an IT Technician and it is quite difficult.. How should i explain it...

I have downloaded the Test Version :)

You have an Ip-Net of 192.168.30.0/24 where the Artnet interface ist standing.

The Remote Network ( e.g. my Home) has 192.168.20.0/24

Both Sides are connected thru an Site2Site VPN

I can Ping every Adress in the Remote Network thru the Tunnel but QLC+ doesnt see the Artnet Interface.

In Pc Dimmer you can change the whole IP-Adress you will send to and you can remote doing your show:

Image.

Can you change it so, that the hole IP-Adress can be changed in a /24 Subnet?

Thx

Dominik

Re: Artnet output IP - Change request

Posted: Fri Jul 24, 2015 7:56 pm
by mcallegari
Leaving the whole IP field as editable is exactly what I wanted to avoid...

Anyway the subnet solution doesn't seem to work. So I'll think of something else.

By the way, how can Windows know how to route a 192.168.20.x packet to a 192.168.30.x network if the subnet is 255.255.255.0 ??
Basically is like not having the netmask...breaking all the rules of networking ever invented...
No wonder why Windows has all those security flaws that required hundreds of patches across the years...

Re: Artnet output IP - Change request

Posted: Fri Jul 24, 2015 8:03 pm
by Morphinus21
Windows doesn't know it, the firewall (Router or HArdware Firewall like Sophos UTM) (who ist making the VPN) knows how to route... Windows is sending the uknown Pakets to the Firewall and is routing it to the correct network.

So if you enter in QLC+ the whole IP Adress the Firewall knows how to route it.

Re: Artnet output IP - Change request

Posted: Fri Jul 24, 2015 8:03 pm
by mcallegari
Morphinus21 wrote:Windows is sending the uknown Pakets to the Firewall and is routing it to the correct network.
This doesn't make any sense to me.
It means, as I said, that the subnet mask has totally no value in Windows.
A network stack should match each packet with the subnet mask and decide to forward or discard it.

So basically you're telling me that if I send a packet to 172.13.100.2 on an interface with IP 192.168.20.100, Windows will let the "unknown packet" through to the router/firewall ??
Total non sense in my opinion. It's a perfect vehicle for network flooding and spoofing.

I'd be curious to see if Linux works differently from this...

Re: Artnet output IP - Change request

Posted: Fri Jul 24, 2015 8:29 pm
by mcallegari
Anyway, can you please set your interface netmask to 255.255.0.0 and see if the test version works ?

Re: Artnet output IP - Change request

Posted: Fri Jul 24, 2015 8:29 pm
by Morphinus21
If the Firewall/Router dont know what do to and if you configured it right, nothing happends and the Paket is dropped.

"Normal" Users and Environments normally doesn't send such Pakets to others Networks, because they have no need to do this.

It would be nice if the Option to Send to an IP Adress entered could be possible :) Windows is special in some things i know.

Edit: Yeah i can change my Subnet Mask and tell you

Re: Artnet output IP - Change request

Posted: Fri Jul 24, 2015 8:35 pm
by Morphinus21
Image

If i chance the Subnet Mask you can change the 3 Field of the IP Adress

Re: Artnet output IP - Change request

Posted: Sun Jul 26, 2015 4:15 am
by mcallegari
Can you please copy the output of the command "ipconfig /all" here ? Thanks.

Re: Artnet output IP - Change request

Posted: Sun Jul 26, 2015 9:49 am
by rawbengal
Hi,

Just a quick response here about the networking discussion. I'm probably missing something but it seems that the debate is about the basic operation of packet routing in an IP network. I think there may be some confusion about the role of netmask. The function of a netmask is to tell the IP network stack how to distinguish local IP addresses (hosts that are connected to the same local net as my machine) from those IP addresses that are remote (must be routed).

> So basically you're telling me that if I send a packet to 172.13.100.2 on an interface with IP 192.168.20.100, Windows
> will let the "unknown packet" through to the router/firewall ?? Total non sense in my opinion. It's a perfect vehicle for
> network flooding and spoofing.

Assuming that the 192.168.20.100 interface has been configured with a default route set up to a router, then, yes, this is exactly what needs to happen. Otherwise you would never be able to contact any machines other than those on your local network. Note that you don't "send a packet to 172.13.100.2 on an interface with IP 192.168.20.100"... you send a packet to 172.13.100.2. It is the network stack that figures out where it goes based on its connected interfaces and routing table.

When I try to ping "www.google.com," after the appropriate DNS lookup, I get some IP address (74.125.224.147) which is not directly connected to my local network. The network stack knows this by looping through all my directly connected interfaces and seeing if the network address (IPaddr bitwise_and not netmask) matches the network address for Google's IP. If it does, the message is just sent on the local interface directed at the IP address in question. If it isn't, then it looks first for a route that is specific to this network and then for a default route. For most machines, the default route points to a router on the one network interface. The packet is sent to the router where it will forward it out one of its *other* interfaces on its way to the destination. If at any point the packet cannot be forwarded because of a missing route, a "no route to host" response is returned (if using TCP).

In other words, IP addresses that are not on your local network (as defined by the interface netmask) will get sent to your router for further processing. If this didn't happen, you probably couldn't be reading this message.

So, what I believe the OP is asking is to say, "I want to connect to a specific ArtNet device by IP address and that address is not on my local network. Just let me type in the address of the device." For that matter, a host name resolved through DNS should also be legitimate here. This seems like a reasonable request when dealing with lighting equipment at remote sites.

As an aside, the netmask is also used to determine the broadcast IP address for your local network... (yourIPaddr bitwise_or netmask).

Apologies if this is all terribly remedial and I completely missed the point of your discussion... :)

Rob

Re: Artnet output IP - Change request

Posted: Sun Jul 26, 2015 5:46 pm
by pengumaniac
A few pears among the apples will give a good cider!

AFAI can remember, TCP/IP is in that case like the russian Matryoshka puppets, the foreign IP package is wrapped and covered by the sender.
In this local-net box it reaches the gateway and then the router "frees" that foreign package again...
or am I wrong?