Автор Тема: asterisk very unsafe  (Прочетена 1484 пъти)

Bogo

  • Напреднали
  • *****
  • Публикации: 632
  • Distribution: Debian
  • Window Manager: cmd
    • Профил
asterisk very unsafe
« -: Jun 05, 2016, 17:34 »
Здравейте, имам asterisk малка PBX от 5 години го ползвам. Един DID с няколко екстеншъна, но спра ли firewall веднага ми опразват акаунта който имам при didforsale .
Във firewall трябва да съм задал конкретно айпи което да се свързва със сървъра, в противен случай на сутринта съм на минус.

asterisk + firewall е ОК докато не ми се наложи да ползвам SIP клиент на мобилния ми телефон, тогава айпи-тата се сменят често и работата става невъзможна.

Има ли някакво решение на мъките ми ?

Благодаря
Активен

live free or die хард :)

4096bits

  • Напреднали
  • *****
  • Публикации: 6213
    • Профил
Re: asterisk very unsafe
« Отговор #1 -: Jun 05, 2016, 20:46 »
Вместо IP може ли да се задава уеб адрес в firewall-a
Ако може, регистринаш си едно едресче в някой сайт, предлагащ dynamic dns услуга и си готов.

Има ги и безплатни
Активен

As they say in Mexico, "Dasvidaniya!" Down there, that's two vidaniyas.

BRADATA

  • Напреднали
  • *****
  • Публикации: 833
  • Distribution: Slackware/Mint/CentOS
  • Window Manager: console/KDE/LXDE
    • Профил
    • WWW
Re: asterisk very unsafe
« Отговор #2 -: Jun 06, 2016, 06:19 »
OpenVPN
Активен

Bogo

  • Напреднали
  • *****
  • Публикации: 632
  • Distribution: Debian
  • Window Manager: cmd
    • Профил
Re: asterisk very unsafe
« Отговор #3 -: Jun 06, 2016, 17:27 »
Попаднах на това и в момента го тествам, да видя какво ще стане, в [default] контекста ми бяха изходящите. Спрял съм firewall и чакам ..

Цитат
Default Context
Your [default] context in extensions.conf should be empty. This context is used when other contexts might not match a peer. You should explicitly refer to a non-default context for remote SIP calls.

sip.conf configuration
In the [general] section, define:


[general]
...
context=bogus
allowguest=no
alwaysauthreject=yes
...


The context line will refer to a context (which you *must define* in extensions.conf!) that should handle "default" SIP calls. This should go to a context with nothing in it (unless you want to play with them - then, if you have the bandwidth, feel free to play a recording or such!). Obviously if you want to accept anonymous SIP calls, send them to the proper context (but *never* a context that can dial out!).

The "allowguest" line disables anonymous SIP calls to your PBX. Some SIP providers connect as a guest user, however, so this may be inappropriate for your situation. Also, if you want to accept anonymous SIP calls, this line would block them, so you wouldn't want that. But it is listed here because it is the safest configuration.

The "alwaysauthreject" line is important. This causes a hacker to get the same response from your PBX when they try to guess passwords whether or not they guessed a valid username. This also has the side-effect of making poorly written scanning scripts (the vast majority of hacker scripts seem to be poorly written) take less resources on your Asterisk box, as even if they scan a valid username, they'll think it doesn't exist.

In addition to these, verify that all peers listed in sip.conf are valid and have strong passwords.
цитата го взех от този линк http://www.voip-info.org/wiki/view/Asterisk+security
« Последна редакция: Jun 06, 2016, 17:29 от Bogo »
Активен

live free or die хард :)