お問い合わせ

ブログ

これまでに経験してきたプロジェクトで気になる技術の情報を紹介していきます。

CentOS7 の firewall に Asterisk の websocket の port を開ける方法

NMC NMC 2 years

Asterisk の websocket port

Asterisk は websocket のポート番号に

  • 8088 (not secure)
  • 8089 (secure)

を使用します。

port 開放

ポートの開放は、

  • ポート番号の直接指定か、
  • 登録されたサービス名の指定

で行えるのですが、
websocket 用のサービスは無いようなので、
ポート番号の指定による開放を行います。

command

$ sudo firewall-cmd --zone=public --permanent --add-port=8088/tcp
$ sudo firewall-cmd --zone=public --permanent --add-port=8089/tcp
$ sudo firewall-cmd --reload

firewall の設定を確認

command

$ sudo firewall-cmd --list-all --zone=public  --permanent

result

public
  中略
  ports: 8089/tcp 8088/tcp
  中略
CentOS7 の firewall に Asterisk の websocket の port を開ける方法 2021-10-13 13:01:43

コメントはありません。

4202

お気軽に
お問い合わせください。

お問い合わせ
gomibako@aska-ltd.jp