Reply
 
Thread Tools Display Modes
  #11  
Old 01-27-09, 05:16 AM
jroper jroper is offline
Guru
 
Join Date: Oct 2007
Posts: 3,333
Hi

To clear up one point, Tom is the Guru behind passwd-master.

The point about all of this, is that your PBX is simply another network application, and should be treated as such. The main issue is that being hacked is not just an inconvenience, it can be expensive.

The tools that are provided with the PBX are just the the basics or a starting point for security - there is shedloads more work to do to tighten it all down.

Looking at the firewall rules in Webmin shows what ports are open on the PBX - and you need to close them down one by one, either using the linux firewall, or your external firewall.

Lets look at each one in turn: -

1. SSH - ports 22 and 9022 - do you need access from the outside world - can you use an existing VPN solution to get access to the network, if not, you can move the entry points to another port - but obscurity is not security, so get a copy of puttygen from here - http://www.chiark.greenend.org.uk/~s.../download.html and disallow username password access via webmin, and only enter using your public / private key. Therefore no SSH passwords to hack.

2 80 and 9080 - do you need web access to the server from outside your building - did you know with Putty, you can use SSH tunnelling, and pass the traffic through that. so they can be closed off.

3. 443 -thats SSL, it's only in there for my A2Billing apps so I can use Paypal - remove it, unless you are using https.

4. 9001 - that's webmin - again you can use an SSH tunnel - and you can switch the service off - service webmin stop. Close the port.

5. 4569 - the IAX port - I open it sometimes for test calls, but close it afterwards - you do not need this port open unless some external IAX device or asterisk server is going to access the system. If the other end is on a fixed IP, you can use the deny=0.0.0.0/0.0.0.0 which denies everything from the outside, and permit 123.123.123.123/255.255.255.255 to only allow from a particlular IP address where 123... is your IP address. this is done in the trunk or extension definition. You might as well close down the firewall as well to all places but your other IAX device. If your server is sending traffic out to a IAX carrier, like ours, then you DO NOT NEED TO OPEN ANY ports. - The act of registration keeps the NAT device and firewall open to that IP for inbound calls.

6. 5000-5082 and 10,000 to 20,000 - the SIP ports - you are ging to have to open these ports if you are using a SIP carrier - so use permit and deny on all your sip extensions and trunks, use fail2ban, use secure passwords, and in the external firewall, only allow traffic from your carrier. If you need external extensions, consider using a VPN or Hamachi tunnel - or putting another PBX at the other end and do IAX trunking. Think carefully about allowig remote extensions.

7. 4445 - FOP - do you need access to FOP from the outside?

8. 123 - Timeserver - do you need access to this from the outside?

9. 69 - TFTP - do you need access from the outside?



These are all the entry points there are.

Do an audit on these, and you should be good to go, and relatively safe.


Joe
Reply With Quote
  #12  
Old 01-27-09, 10:11 AM
sanitycheck sanitycheck is offline
Member
 
Join Date: Mar 2008
Posts: 42
Originally Posted by wardmundy View Post
[WM: Huh? Our RSS Feed works with any feed reader including most browsers: http://pbxinaflash.com/rssfeed.xml]
Thank you for that link!! Where is it published on your website!?

I've monitored the Nerdvittles.com feed for at least 6 months, probably longer. The PIAF site lists a feed http://pbxinaflash.net/rssfeed.xml (lower right corner), but that one has only one entry and does not seem to get updated ever. Is the wrong address listed?

Please consider posting that feed link prominently on the main PIAF page. You may want to describe what the feed will contain, highlighting the point that hot security topics will be featured.

Please consider including feed entries about program additions or updates such as the Kennonsoft UI update (maybe I'm late to the party, and that entry got pushed out already).

Originally Posted by wardmundy View Post
If you don't have time for Asterisk security (see today's article), either hire someone to manage your PBX or switch to Vonage and shut down your PBX.
I agree completely, but having an efficient means of getting the word out to users will go a long way to help people help themselves.

As you pointed out, Nerdvittles and PIAF is one of the best-documented free projects out there. I would respectfully argue, however, that the large volume of information can work against the end user if you simply want to keep up-to-date. It also helps when the information comes looking for you (unlike the forum).

That's where a hot-topic RSS feed and mailing list can help. If an end-user can't be bothered to monitor an RSS feed or messages from a mailing list, as you said, PIAF is not for them.

Last edited by sanitycheck : 01-27-09 at 11:45 AM.
Reply With Quote
  #13  
Old 03-16-09, 03:44 AM
awair awair is offline
Junior Member
 
Join Date: Mar 2009
Posts: 15
Could you confirm that the vulnerability relates only to the Orgasmatron builds [ie with extensions ready to use]?

I have just set up a PIAF server, which will be linked to 2nd remote site. However my plan is to configure this manually.

If this assumption is correct, a possible fix would be for an additonal stage in the scripts to force users to change extension passwords during setup [or when they run password-master].

As a newbie to PIAF, I find the volume and quality of the information extremely impressive but daunting. Despite trying to keep up with sources of security information, this is the first time I realised the possibility of extension 'masquerading'.

I have been running a remote TB [with the assistance of NV documentation] for two years without a security problem, but I can't claim to have read or considered everything.

I do appreciate that using public free wi-fi can expose the system to password sniffing, but a vpn connection is not always possible or practical. On this note, has anyone been able to succesfully setup a Nokia E65 or E51 to use a VPN access point to connect to any kind of service? [I believe it is meant to be possible, and this could close my main vulnerability].

Many thanks for PIAF and the great information.

Last edited by awair : 03-16-09 at 04:01 AM.
Reply With Quote
  #14  
Old 03-17-09, 12:48 AM
jeremywillden jeremywillden is offline
Guru
 
Join Date: Feb 2008
Posts: 145
One more suggestion that might help the Orgasmatron builds (and anyone setting up their system):

On all extensions, set NAT to NEVER on the extension configuration page in FreePBX. This will (in my experience) prevent that extension from being used from outside the local network, with or without the correct password.

The default when creating a new extension is NAT=yes, making you less secure. Only use that setting if you want to allow a remote extension (with or without a VPN).
Reply With Quote
  #15  
Old 07-07-10, 09:36 AM
flatpack flatpack is offline
Junior Member
 
Join Date: Apr 2010
Posts: 4
this is really very helpfull, couldnt get PBXINF for remote extension but now i think i m getting there,
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:02 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2008, Ward Mundy & Associates