PDA

View Full Version : Tutorial: How to change standard ports ?



me1960
27-12-08, 12:18
Tutorial: How to change standard ports ?

Well this tutorial will help you to learn how to change standard ports like Telnet default port is 23 and you can schange it for security reasons to 48 or other . And it can help you if you have two dreambox receivers. When you have two dreambox you can't forward ports on two different ip's and there is problem. But there is solution which can help you to resolve that problem. First and easy way is to go on Dreambox Menu > Setup > Expert Setup > Communication Setup , and in that menu you can choose port which you will use for web interface. The standard port reserved for that is 80, but you can set it to 81 or whatever number, and automaticaly you have access to bigger number of boxes in network.

This change now with changed port will looks like this :

http://127.0.0.1:81 (http://www.anonym.to/?http://127.0.0.1:81) ( because 80 changed to 81)

http://127.0.0.1 (http://www.anonym.to/?http://127.0.0.1) ( here you dont ned to put 80 because http is reserved for 80 port)

example:

You have two Dreambox receivers, on one Telnet port is 23 on other telnet port is 48.

1. On First receiver where telnet port was un-changed and port is 23 you will connect like telnet 127.0.0.1

2. On second receiver where you have changed telnet port 23 to 48 you will connect on it like telnet 127.0.0.1

Second way and solution to change standard ports is little bit dificult but you can try it cant hurt your box , you can set it later on defaults, or reset it.
You can make it only if you have multiboot Dream Flash plugin. In that way you need to use FTP software ( e.g Total Commander) and connect to Dreambox, enter in directory mnt/usb/images/ and than choose image in which you want to change settings and properties. Every change will work after you save it and reboot your box. Images in multiboot are identified like folders [0],[1],[2] etc. it depend about what image is first installed, second third etc. If you choose directory [0] you will see list of directoryes in that image on usb, and for changes of standard ports you need to edit file services which can be found in directory etc/ .

There you will find something like this :

ftp-data 20/tcp
ftp 21/tcp
ssh 22/tcp
ssh 22/udp
telnet 23/tcp

Because the number of ports is more bigger than this showed here you will need to find this which i have show to you, you can find it on beggining of conf file. I will show you this:

If you change ftp 21/tcp in ftp 7021/tcp you can use ftp service on port 7021 no more on 21. For telnet 23/tcp to telnet 23/7023 you will have to use now port 7023 for telnet connections etc. Editing of file services can be done by pressing on button Edit in total commander. Than on your computer will be started notepad or wordpad which you can use. I reccomand you to use Wordpad. In total commander you can choose standard editor by going on Configuration > Edit/View and press F4 and choose executable file of your editor e.g notepad.exe or wordpad.exe .After editing is finished your new config will look like this.

Example:

ftp-data 20/tcp
ftp 7021/tcp
ssh 22/tcp
ssh 22/udp
telnet 7023/tcp

Than save your config file and send it on your dm and overwrite previous on dm. If you want that all images in your dream use same config copa this file services in all image directory's. When you are finished please reboot your dreambox and with total commande try to connect on your dream like this : 192.168.100.12:7021 .You need to enable using of non-standard ports in your windows. There subscribe non-standard port 7021 for FTP.


lb romana ( google translate ) :

Ei bine acest ghid vă va ajuta să invăţaţi cum să schimbaţi standard, ca porturi Telnet este portul implicit 23 şi puteţi să-l schange din motive de securitate sau de la alte 48. Şi vă pot ajuta să-l dacă aveţi două dreambox receptoare. Cand aveţi două dreambox nu se pot transmite pe două porturi diferite de IP a lui şi acolo este o problema. Dar există soluţie care vă poate ajuta să vă că pentru a rezolva problema. In primul rand uşor şi de cale este de a merge la Dreambox Meniu> Setup> Expert Setup> Comunicare de instalare, şi că in meniu puteti alege portul pe care le va utiliza pentru interfaţa web. Standard de port rezervat pentru că este de 80, dar puteţi să setaţi-o cu 81 sau indiferent de numărul, automat şi aveţi acces la mai mare număr de cutii in reţea.

Această schimbare a fost schimbat acum cu portul va arăta aşa:

http://127.0.0.1:81 (80 pentru că a fost schimbat la 81)

http://127.0.0.1 (Ned Nu te aici pentru a pune 80, deoarece http este rezervat pentru 80 de port)

exemplu:

Aveţi două Dreambox receptoare, pe de o Telnet este portul 23 de pe alte telnet portul este 48.

1. Prima receptor pe unde a fost un port telnet-a schimbat şi portul este 23 va conecta ca telnet 127.0.0.1

2. Pe doilea receptor de unde s-au schimbat telnet portul 23 la 48 de vă va conecta pe el ca telnet 127.0.0.1

Al doilea mod de a schimba şi soluţie standard de porturi este de dificult pic, dar puteţi incerca să-l doare-vă caseta de jargon, puteţi stabili setările implicite la ea mai tarziu, sau de a reseta-o.
Puteţi face aceasta numai dacă aţi multiboot Dream Flash plugin. In acest fel aveţi nevoie pentru a utiliza software-ul de FTP (de exemplu, Total Commander) şi conectarea la Dreambox, intră in directorul mnt / usb / imagini / decat alege şi de imagine in care doriţi să modificaţi setările şi proprietăţi. Fiecare va schimba locul de muncă, după ce il salvaţi şi reporniţi caseta. Imagini in multiboot sunt identificate ca dosare [0], [1], [2] etc-o imagine depinde de ceea ce este instalat primul, al doilea etc treia Dacă alegeţi directorul [0] veţi vedea lista de directoryes in care imaginea de pe usb, şi pentru modificări din porturile standard, trebuie să editaţi fişierul de servicii care poate fi găsit in directorul etc /.

Nu veţi găsi ceva de genul:

ftp-date 20/tcp
ftp 21/tcp
ssh 22/tcp
ssh 22/udp
telnet 23/tcp

Deoarece numărul de mai multe porturi este mai mare decat această arătat aici va trebui să găsiţi acest spectacol care i-au la tine, puteţi găsi o pe inceputul de fişier de configurare. Eu vă vor afişa acest lucru:

Dacă schimbaţi in 21/tcp ftp ftp 7021/tcp puteţi folosi serviciul FTP pe portul 7021 nu mai mult de pe 21. Pentru a 23/tcp telnet telnet 23/7023 va trebui să folosiţi acum portul 7023 pentru conexiuni telnet etc Editarea fişierului de servicii se poate face apăsand pe butonul Editare din totalul comandant. Mult de pe computerul dumneavoastră va fi Notepad sau WordPad a inceput pe care le puteţi utiliza. Am reccomand te pentru a utiliza Wordpad. In total, comandantul puteţi alege standard de către editorul intamplă Configuration> Editare / Vizualizare şi apăsaţi F4 şi alegeţi-vă de fişier executabil de exemplu, redactor notepad.exe sau wordpad.exe. După ce aţi terminat editarea este noul dvs. de configurare va arata astfel.

Exemplu:

ftp-date 20/tcp
ftp 7021/tcp
ssh 22/tcp
ssh 22/udp
telnet 7023/tcp

Decat să vă salvaţi fişierul de configurare şi să-l trimiteţi pe dm şi suprascrie precedent pe dm. Dacă doriţi ca toate imaginile din vis folosi acelaşi Copa acest fişier de configurare in toate serviciile de directorul de imagine. Cand aţi terminat, vă rugăm să reporniţi dreambox şi cu total commande incercaţi să vă conectaţi la visul tău aşa: 192.168.100.12:7021. Ai nevoie, pentru a permite utilizarea de porturi non-standard in Windows. Nu aboneaza non-standard port 7021 pentru FTP.