Watching another thread I see confusion about "public" vs "non-public" configurations of IncrediblePBX. It made me wonder why two versions are needed. Wouldn't the security scheme for the public version work fine in all scenarios?
That is correct, PUBLIC uses FQDN to allow SIP through iptables, and drops anything SIP referenced by IP. Non-public basically blocks all SIP and only allows what you enter in IPtables. Non-public is fine for anyone on static IP(s), but as soon as you want a mobile client, it's pretty much useless, and that's where PUBLIC comes in.
Public = if you're behind a double NAT (carrier grade NAT).
Just brainstorming (or brainfarting) here... if the rules were to allow traffic directed to FQDN or traffic from known local subnets, would that cover everything?I think the public version relies upon FQDN. Unless someone has the knowledge with routers to set that up, that may make it harder for some to use.
if the rules were to allow traffic directed to FQDN or traffic from known local subnets
I must be getting my methodologies mixed up. I thought iptables was allowing initial SIP requests (REGISTER, INVITE) that contained the FQDN. I will look into it more closely.The requirement for a specific FQDN is enforced by asterisk.
1394 83226 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 match-set cn src
37 1992 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 match-set ru src
2 104 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 match-set ps src
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 match-set kp src
6 304 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 match-set ua src
1 220 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 match-set md src
209 12726 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 match-set nl src
120 8005 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 match-set fr src
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 STRING match "68.232.xxx.xxx" ALGO name bm TO 65535
It's not difficult to remove sysadmin from the firewall module. The only issue is how to do it "securely."The current release unfortunately requires a commercial module
Pretty sure Ward's early iterations had an fqdn string match in iptables, but it's been a while and I may be mistaken.I thought iptables was allowing initial SIP requests (REGISTER, INVITE) that contained the FQDN. I will look into it more closely.
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.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.