Can FreePBX be configured so that Asterisk listens on a particualy IP address


(James B. Byrne) #1

We have a multi-homed FreePBX system. Is it possible to configure asterisk to only listen on specific IP address instead o 0.0.0.0?


(Lorne Gaetz) #2

Yes.Bind address is set in Settings, Asterisk SIP Settings. Restart Asterisk after applying config.


(James B. Byrne) #3

These are the local network settings?


(Lorne Gaetz) #4

No, the bind address. If you’re looking for the PJSIP settings, you have to first enable “Show Advanced Settings”


(James B. Byrne) #5

We do not use pj just chan_sip. This system has not be touched since 2015


(James B. Byrne) #6

The bind address on chan_sip is set as expected but I still see connections coming to the other ip on that host. These are login attempts and I would like asterisk to simply ignore them.


#7

Block the traffic with iptables.


(James B. Byrne) #8

We were already filtering the SIP IP. This is a secondary access IP that we did not configure Asterisk to listen on. It therefore caught us by surprise when asterisk started to log attempts to authenticate on that address. That has been fixed. We just want to know if it is possible to limit what IP addresses Asterisk listens on. We have already defined just one bind address in FreePBX SIP settings, but that does not appear to have the effect that we expected.


#9

Works for me…

Do you have multiple network interfaces or do you have multiple IP addresses on the same interface?


(James B. Byrne) #10

One NIC with ip aliases


(system) closed #11

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.