I guess I approached the question a bit, hoping that this would help people who later stumble upon this question.
, TURN , flatfile/some db, turnserver ( turnadmin)
, ip XXXXX PPP ( , , , , , udp tcp, < 1024 )
turnconfig (turnconfig.conf):
listening-ip=XXXXX
tls-listening-port=PPP
cert=( certificate location)
pkey=( private key location)
lt-cred-mech
realm=someRealm
log-file=/var/tmp/turn.log
no-sslv2
no-sslv3
cmd : turnserver -v -c turnconfig.conf -o -u user:root
:
turnserver --tls-listening-port PPP -L XXXXX -r someRealm -a -o -v -n -u user:root -l '/var/tmp/turn.log' --no-sslv2 --no-sslv3
.. NAT ( , Amazon EC2), feild external-ip.
config ( RTCPeerConnection WebRTC):
config: {
'iceServers':[
{
'url': 'stun:stun.l.google.com:19302'
},
{
'url': 'turn:user@XXXXX:PPP?transport=udp',
'credential': 'root'
},
{
'url': 'turn:user@XXXXX:PPP?transport=tcp',
'credential': 'root'
}
]
};
openssl:
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3001 -nodes