QUESTION How do I allow registrations from separate subnet?

Sean Hunter

New Member
Joined
Jul 17, 2016
Messages
3
Reaction score
0
It's all in the title, folks!

I've a server install on network 192.168.1.0/24 and clients on 192.168.2.0/24 and I want to make them talk to each other.
 

Paul Rowell

New Member
Joined
Feb 5, 2016
Messages
29
Reaction score
5
I might be missing something here but could you change the broadcast mask to 255.255.254.0?
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,639
Reaction score
525
A mask of 254 would give you
11111111.11111111.11111110.00000000
But allows 192.168.2.0 won't allow 192.168.3.0

A mask of 255.255.252.0
equates to 11111111.11111111.11111100.00000000
The third octet allows the use of 0, 01, 02, and 03 for your lan network, instead of them being in separate subnets. Its easier if they are not separate subnets and removing that part of the mask achieves this by t using a mask such as
255.255.0.0 which saves you calculating which bits you need for your requirement and allows you to use anything in the 3rd and 4th octets from 1 to 254.

See NV on Getting Rid of One-Way Audio

Code:
[email protected]:~ $ cat /etc/asterisk/sip_custom.conf
; # from http://nerdvittles.com/?p=196

;# externip=            ;# myexternaIPaddress for static external IP (commented out in my case)
externhost=my(sub)domain.tld       ;# for dynamic ddns lookup
localnet=192.168.0.0/255.255.0.0
 
Last edited:

Sean Hunter

New Member
Joined
Jul 17, 2016
Messages
3
Reaction score
0
Thought I should post an update: I had set those settings via the GUI. Turns out my issue was mostly unrelated to PBXinaFlash; my RPi had decided independently to associate with a nearby open WiFi network. I managed to disable the network, but I'm still not sure why Raspbian is going around promiscuously associating with any nearby WiFi network that it can find. On top of that, even once the network was offline, the default route remained in the routing table, royally screwing my attempts to register outside of that broadcast domain.

Many thanks to the above posters for taking the time to help me. Maybe NV should consider offering a 'disable wireless' option in the setup menu?
 

Members online

No members online now.

Forum statistics

Threads
25,839
Messages
167,933
Members
19,264
Latest member
baata
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top