- Joined
- May 16, 2019
- Messages
- 93
- Reaction score
- 46
Ran into what I thought was a strange behaviour and likely should be considered a bug or at least a lazy programmer.
Client has a pool of public IPs assigned to the company so they use legitimate ARIN assigned IP addresses on their internal network (probably got them in the early 90's when you just had to ask nicely). So instead of doing NAT their firewall just filters traffic without translation. Nobody from the outside can connect to internal computers but each computer has a public IP and that entire subnet is considered the internal LAN.
Installed a trial 3cx for them to evaluate.
The 3cx server is installed internally with another legitimate public IP in the same subnet range as the phones.
So based on the network mask should indicate that these are on the LAN.
It appears like the checkbox for blocking "Disallow use of extension outside the LAN (Remote extensions using Direct SIP or STUN will be blocked)" is still blocking these local phones from registering because the filter is too dumb to check if the subnet of the network matches between the client and the local network card on the server. Not doing any vlan or routing tricks here. Essentially the phone and server are on the same dumb switch.
I would consider this a bug. It should recognize the local subnet as being on LAN in addition to assuming that 192.168.x.x, 10.x.x.x, and 172.16.x.x - 172.31.x.x are valid LAN addresses.
So now I have to allow registering from WAN on this site (or other workarounds I'm considering)
Client has a pool of public IPs assigned to the company so they use legitimate ARIN assigned IP addresses on their internal network (probably got them in the early 90's when you just had to ask nicely). So instead of doing NAT their firewall just filters traffic without translation. Nobody from the outside can connect to internal computers but each computer has a public IP and that entire subnet is considered the internal LAN.
Installed a trial 3cx for them to evaluate.
The 3cx server is installed internally with another legitimate public IP in the same subnet range as the phones.
So based on the network mask should indicate that these are on the LAN.
It appears like the checkbox for blocking "Disallow use of extension outside the LAN (Remote extensions using Direct SIP or STUN will be blocked)" is still blocking these local phones from registering because the filter is too dumb to check if the subnet of the network matches between the client and the local network card on the server. Not doing any vlan or routing tricks here. Essentially the phone and server are on the same dumb switch.
I would consider this a bug. It should recognize the local subnet as being on LAN in addition to assuming that 192.168.x.x, 10.x.x.x, and 172.16.x.x - 172.31.x.x are valid LAN addresses.
So now I have to allow registering from WAN on this site (or other workarounds I'm considering)