架設STUN Server

Posted by : hugo5688 at 12:05 in Linux | Total 1,186 Views

Download:http://sourceforge.net/project/showfiles.php?group_id=47735

$tar -xvf stund_0.96_Aug13
$cd stund
$make

bind another IP in ur eth0:0 or u have 2 eth card

start STUN service

$./server -v -h <IP_1> -a <IP_2>

“If the IP addresses of your NIC are 10.0.1.150 and 10.0.1.151, run this program with”
“./server -v -h 10.0.1.150 -a 10.0.1.151″
“STUN servers need two IP addresses and two ports, these can be specified with”
“-h sets the primary IP”
“-a sets the secondary IP”
“-p sets the primary port and defaults to 3478″
“-o sets the secondary port and defaults to 3479″
“-b makes the program run in the backgroud”
“-m sets up a STERN server starting at port m”
“-v runs in verbose mode”

add to ur bootload

$vi /etc/rc3.d/S99local

/<your patch>/server -b -h <IP_1> -a <IP_2>

———————————————————————————

目前STUN在穿越Symmetric NAT還是會有問題

在較新的技術ICE應該是可以做到

另外RTPProxy也行 ,不過聽說在語音的傳輸上並不是那麼的好