Jump to content

Recommended Posts

Posted

coturn

libevent2-extra_2.1.11-2_mipsel-3.4.ipk

libsocket_2.5.0-1_mipsel-3.4.ipk

coturn_4.5.2-1_mipsel-3.4.ipk

Скрытый текст

~ # /opt/etc/init.d/S99turnserver start
 Starting turnserver...              done. 
~ # 
~ # /opt/etc/init.d/S99turnserver check
 Checking turnserver...              alive. 
~ # 
~ # cat /opt/var/log/turn_2021-01-21.log 
0: : log file opened: /opt/var/log/turn_2021-01-21.log
0: : Listener address to use: 127.0.0.1
0: : Aux server: 127.0.0.1
0: : Relay address to use: 127.0.0.1
0: : 
RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server
Version Coturn-4.5.2 'dan Eider'
0: : 
Max number of open files/sockets allowed for this process: 4096
0: : 
Due to the open files/sockets limitation,
max supported number of TURN Sessions possible is: 1000 (approximately)
0: : 

==== Show him the instruments, Practical Frost: ====

0: : TLS supported
0: : DTLS supported
0: : DTLS 1.2 supported
0: : TURN/STUN ALPN supported
0: : Third-party authorization (oAuth) is not supported
0: : OpenSSL compile-time version: OpenSSL 1.1.1h  22 Sep 2020 (0x1010108f)
0: : 
0: : SQLite supported, default database location is /opt/var/lib/turn/turndb
0: : Redis is not supported
0: : PostgreSQL is not supported
0: : MySQL is not supported
0: : MongoDB is not supported
0: : 
0: : Default Net Engine version: 2 (UDP thread per network endpoint)

=====================================================

0: : Domain name: WORKGROUP
0: : Default realm: WORKGROUP
0: : SSL23: Certificate file found: /opt/etc/turnserver/turn_server_cert.pem
0: : SSL23: Private key file found: /opt/etc/turnserver/turn_server_pkey.pem
0: : TLS1.0: Certificate file found: /opt/etc/turnserver/turn_server_cert.pem
0: : TLS1.0: Private key file found: /opt/etc/turnserver/turn_server_pkey.pem
0: : TLS1.1: Certificate file found: /opt/etc/turnserver/turn_server_cert.pem
0: : TLS1.1: Private key file found: /opt/etc/turnserver/turn_server_pkey.pem
0: : TLS1.2: Certificate file found: /opt/etc/turnserver/turn_server_cert.pem
0: : TLS1.2: Private key file found: /opt/etc/turnserver/turn_server_pkey.pem
0: : TLS cipher suite: DEFAULT
0: : DTLS: Certificate file found: /opt/etc/turnserver/turn_server_cert.pem
0: : DTLS: Private key file found: /opt/etc/turnserver/turn_server_pkey.pem
0: : DTLS1.2: Certificate file found: /opt/etc/turnserver/turn_server_cert.pem
0: : DTLS1.2: Private key file found: /opt/etc/turnserver/turn_server_pkey.pem
0: : DTLS cipher suite: DEFAULT
0: : log file opened: /opt/var/log/turn_2021-01-21.log
0: : pid file created: /opt/var/run/turnserver.pid
0: : IO method (main listener thread): epoll (with changelist)
0: : WARNING: I cannot support STUN CHANGE_REQUEST functionality because only one IP address is provided
0: : Wait for relay ports initialization...
0: :   relay 127.0.0.1 initialization...
0: :   relay 127.0.0.1 initialization done
0: : Relay ports initialization done
0: : IO method (general relay thread): epoll (with changelist)
0: : IO method (general relay thread): epoll (with changelist)
0: : IO method (udp listener/relay thread): epoll (with changelist)
0: : turn server id=0 created
0: : IO method (general relay thread): epoll (with changelist)
0: : turn server id=1 created
0: : IO method (general relay thread): epoll (with changelist)
0: : turn server id=128 created
0: : turn server id=2 created
0: : turn server id=3 created
0: : IO method (udp listener/relay thread): epoll (with changelist)
0: : turn server id=129 created
0: : IO method (udp listener/relay thread): epoll (with changelist)
0: : turn server id=130 created
0: : Total UDP servers: 3
0: : Total General servers: 4
0: : IO method (auth thread): epoll (with changelist)
0: : IO method (auth thread): epoll (with changelist)
0: : IO method (admin thread): epoll (with changelist)
0: : SQLite DB connection success: /opt/var/lib/turn/turndb
0: : Keep GID: root(0)
0: : Keep UID: root(0)
~ # 

 

 

  • Upvote 1
Posted

прикручена одна база - sqlite3 (mysql, postgresql, redis, mongodb - идут тёмным лесом, широким полем), конфиг править под свои нужды (приведённый - для теста на работу), серты - генерить... в общем - читать доки.

Posted (edited)

Спасибо конечно, но меня интересовали не turn-server, а скорее Stun и по большей части client. для обмена информацией с другими stun (не turn) серверами. Исходники можно глянуть тут: https://freefr.dl.sourceforge.net/project/stun/stun/0.97/stund-0.97.tgz

Edited by Mihail_Boyanskiy
Posted
8 часов назад, Mihail_Boyanskiy сказал:

а скорее Stun

по умолчанию работают оба-два stun+turn, остальное зависит от желания пользователя: или stun, или turn

8 часов назад, Mihail_Boyanskiy сказал:

по большей части client

угу, напр., туть (из вики прожекта)

8 часов назад, Mihail_Boyanskiy сказал:

Исходники можно глянуть тут...

хорошечно, раз отговаривать "архиологов" смысла неть, то:

stund_0.97-1_mipsel-3.4.ipk

stun-client_0.97-1_mipsel-3.4.ipk

8 часов назад, Mihail_Boyanskiy сказал:

Но это я не собирал

а я собрал )))

stunclient_1.2.16-1_mipsel-3.4.ipk

stunserver_1.2.16-1_mipsel-3.4.ipk

stuntestcode_1.2.16-1_mipsel-3.4.ipk

  • Thanks 1
  • Upvote 1
Posted (edited)

Ого! Спасибо огромное. Чтоб добру не пропадать, в идеале можно выложить в репозиторий Entware, но это уже вам видней. Спасибо ещё раз.

Edited by Mihail_Boyanskiy
  • 10 months later...
Posted
В 24.01.2021 в 18:28, TheBB сказал:

а я собрал )))

 

Спасибо Вам за труды. А подскажите начинающему, как этот .ipk установить на роутер?

Entware поставил. Как пакет установить?

 

 

Posted
11 час назад, Sano сказал:

Как пакет установить?

Загружаете на устройство, набираете "opkg install /path/to/pkg" , где /path/to/pkg - путь к нужному пакету, напр., `opkg install stuntestcode_1.2.16-1_mipsel-3.4.ipk`

Posted (edited)
2 часа назад, TheBB сказал:

Загружаете на устройство, набираете "opkg install /path/to/pkg" , где /path/to/pkg - путь к нужному пакету, напр., `opkg install stuntestcode_1.2.16-1_mipsel-3.4.ipk`

Спасибо большое еще раз

 

Edited by Sano
  • 1 year later...
Posted

Добрый день. После очередного обновления через команду opkg Upgrade (на кой пёс я ее запустил, черт видимо дёрнул), перестал работать stun клиент. Выдает ошибку :

stunclient: /usr/lib/libcrypto.so.1.1: version `OPENSSL_1_1_0' not found (required by stunclient)

Как исправить? Я в линуксе не бум-бум.

Posted
10 минут назад, Sano сказал:

stunclient: /usr/lib/libcrypto.so.1.1: version `OPENSSL_1_1_0' not found (required by stunclient)

Для начала попробовать:

opkg install libopenssl-legacy

если не взлетит, надо будут пересобрать

Posted
5 минут назад, TheBB сказал:

если не взлетит, надо будут пересобрать

Не прокатило. Выдает ту же ошибку (

Posted
4 часа назад, TheBB сказал:

если не взлетит, надо будут пересобрать

opkg install http://bin.entware.net/mipselsf-k3.4/test/stunclient_1.2.16-2_mipsel-3.4.ipk

(там же - stunserver, stuntestcode). Если нужны под aarch64||mips - можно будет собрать и залить...

  • Upvote 1
Posted
10 часов назад, TheBB сказал:

там же - stunserver, stuntestcode)

Огромное спасибо. Все работает

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.