Jump to content
BulForum.com

UPnP on Lunux Router


Godfather

Recommended Posts

Reshih, che shte e interesno za povecheto, koito imat linux router/NAT i iskat da polzvat niakoi po-specialni neshta kato VoIP/telephony. Loshoto e, che tezi tehnologii obiknoveno ne varviat zad NAT, obache pichovete ot Redmond izmisliha UPnP (edno ot malkoto svestni neshta, izmisleni ot tiah :woot ).

Povecheto podoben software e UPnP compliant - nai-veche Messengera :D

I taka, eto kakvo triabva da se napravi:

 

1. Downloadvat se dvata faila ot tova miasto - UPnP SDK i upnpd - demona, koito osashtestviava funkciite na protokola.

 

2. Razarhivirat se i parvo se kompilira SDK-to: make i make install varshi rabota. Sled tova po sashtia nachin se kompilira i instalira upnpd.

 

3. Za da raboti demona korektno triabva da se vavede route za multicast paketite na UPnP: route add -net 239.0.0.0 netmask 255.0.0.0 eth0 - tuk e mnogo vajno da se znae, ceh eth0 e vatreshnia interface.

 

4. Demona se startira s komandata upnpd eth1 eth0 - tuk otnovo eth0 e vatreshnia, a eth1 e vanshnia (kam kabelnia modem) interface, tova e mnogo vajno ;)

 

Komandite ot t.3 i 4. mogat da se slojat v niakoi ot failovete za parvonachalno zarejdane, naprimer /etc/rc.local.

 

Ami tova e - uspeh!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...