Register

Welcome to the RDI-Board Community.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


Donate Now Goal amount for this month: 100 EUR, Received: 100 EUR (100%)
Donate to support this site...

Results 1 to 7 of 7
  1. #1
    Member Mentor
    RDI - Board Default Avatar

    Join Date
    Sep 2007
    Posts
    503
    Posts Thanks / Likes

    Default Deschidere porturi ptr cccam in router TOPEX

    Cum deschid mai multe porturi ptr cccam intr-un router TOPEX cu OpenWrt ? Am reusit pentru un port dar pentru inca 7 porturi nu am mai reusit ca imi oprea conexiunea complet. Stiu ca trebuie sa fac singur asta dar nu pot lasa pe cei din lista mea pe afara .

  2. #2
    Senior Member Expert
    Join Date
    Feb 2007
    Location
    Prahova
    Posts
    1,162
    Posts Thanks / Likes

    Default

    asa cum ti-am zis si pe mess asa se face :

    daca vrei sa pui cccam cu port 12500 pe router setarea din firewall este asa :

    ### -- This allows port 12500 to be answered by (dropbear on) the router
    iptables -t nat -A prerouting_wan -p tcp --dport 12500 -j ACCEPT
    iptables -A input_wan -p tcp --dport 12500 -j ACCEPT

    exemplu dreamul tau are ip 192.168.10.102 si cccam are portul 12000 , firewall are setarea asta :

    ### Open port to dreambox
    iptables -t nat -A prerouting_wan -p tcp --dport 12000 -j DNAT --to 192.168.10.102:12000
    iptables -A forwarding_wan -p tcp --dport 12000 -d 192.168.10.102 -j ACCEPT

    daca mai ai un dream cu ip 192.168.10.105 iar cccam din acest dream are port 15000 , firewall are setarea asta :

    ### Open port to dreambox2
    iptables -t nat -A prerouting_wan -p tcp --dport 15000 -j DNAT --to 192.168.10.105:12000
    iptables -A forwarding_wan -p tcp --dport 15000 -d 192.168.10.105 -j ACCEPT

    daca vrei si port deschis pentru torrente ( portul sa zicem ca ar fi 33722 ) iar ip calculator sa zicem 192.168.10.101 , firewall arata asa :

    ### Open port to utorrent
    iptables -t nat -A prerouting_wan -p tcp --dport 33722 -j DNAT --to 192.168.10.101:33722
    iptables -A forwarding_wan -p tcp --dport 33722 -d 192.168.10.101 -j ACCEPT

    pentru aceste patru porturi de mai sus ( 12000 , 12500 , 15000 , 33722 ) fisierul firewall.user va arata asa :

    # This file is interpreted as shell script.
    # Put your custom iptables rules here, they will
    # be executed with each firewall (re-)start.


    ### -- This allows port 12500 to be answered by (dropbear on) the router
    iptables -t nat -A prerouting_wan -p tcp --dport 12500 -j ACCEPT
    iptables -A input_wan -p tcp --dport 12500 -j ACCEPT
    ### Open port to dreambox
    iptables -t nat -A prerouting_wan -p tcp --dport 12000 -j DNAT --to 192.168.10.102:12000
    iptables -A forwarding_wan -p tcp --dport 12000 -d 192.168.10.102 -j ACCEPT
    ### Open port to dreambox2
    iptables -t nat -A prerouting_wan -p tcp --dport 15000 -j DNAT --to 192.168.10.105:12000
    iptables -A forwarding_wan -p tcp --dport 15000 -d 192.168.10.105 -j ACCEPT
    ### Open port to utorrent
    iptables -t nat -A prerouting_wan -p tcp --dport 33722 -j DNAT --to 192.168.10.101:33722
    iptables -A forwarding_wan -p tcp --dport 33722 -d 192.168.10.101 -j ACCEPT

    pentru alte porturi urmaresti schema de mai sus .

    bafta
    Last edited by stargate99ro; 31st December 2009 at 14:39. Reason: edit

  3. #3
    Member Mentor
    Join Date
    Dec 2003
    Location
    in canal,langa aurolaci
    Posts
    664
    Posts Thanks / Likes

    Default

    eu zic sa bagi acest build de dd-wrt pe acel topex daca nu te descurci cu comenzi linux ; e mult mai comoda interfata web ca si openwrt si in plus are mult mai multe functii in special pe partea wireless (client,wireless bridge...) si mai multe optiuni pe partea de securizare a retelei
    dd-wrt.v24-12548_NEWD_mini_usb_ftp.bin
    apoi bineinteles ca in jffs2 poti adauga scripturi de firewall pt. a bloca sau lasa numai anumite DNS-uri pt cccam


    Living an analog lifestyle in a digital world

  4. #4
    Member Mentor
    RDI - Board Default Avatar

    Join Date
    Sep 2007
    Posts
    503
    Posts Thanks / Likes

    Default

    Schimb imaginea dar nu am gasit ce ai tu dd-wrt.v24-12548_NEWD_mini_usb_ftp.bin
    Pe site am cautat ptr asus wlg500g de luxe si nu vad asta .

  5. #5
    Member Mentor
    Join Date
    Dec 2003
    Location
    in canal,langa aurolaci
    Posts
    664
    Posts Thanks / Likes

    Default

    Inainte de toate faci asta in Openwrt - Enable boot_wait and set boot_time from within OpenWrt - intri in router cu telnet si scrii:
    nvram set boot_wait=on
    nvram set boot_time=10
    nvram commit && reboot


    pe langa firmware-ul propriu zis iti mai trebuie 3 fisiere care fac curatenie in router si sterg nvram-ul de orice ramasita a lui openwrt - in ordinea lor :
    1. wl500g-clear-nvram.trx
    2. wl500g-recover.trx
    3. dd-wrt.v24-12548_NEWD_mini_asus.trx


    primele 2 le gasesti aici http://www.dd-wrt.com/phpBB2/download.php?id=11746
    al 3-lea aici : http://rapidshare.de/files/48924385/..._asus.trx.html

    apoi activezi clientul TFTP in win7 de ex. sau daca ai XP e gata activat,dezactivezi orice antivirus sau firewall din PC ,setezi IP static al PC-ului 192.168.1.2 ,si urmaresti pas cu pas tutorialul de aici :
    http://www.dd-wrt.com/wiki/index.php/Asus_TFTP_Flash
    ai grija sa lasi minim 5 minute routerul neatins dupa fiecare comanda de TFTP, iar dupa ce ai terminat de introdus ultima comanda tftp -i 192.168.1.1 put dd-wrt.v24-12548_NEWD_mini_asus.trx (dupa care astepti 5 min), intri in interfata web a routerului schimbi userul si parola de intrare dupa care uploadezi firmware-ul nou:

    http://rapidshare.de/files/48924389/...b_ftp.bin.html

    apoi nu te atingi de mouse-ul PC-ului pana nu apare fereastra cu user si pass a routerului din nou acesta e cel mai bun si stabil si are si suport usb (poti pune stick sa-l vada toate pc-urile din retea sau camera usb care sa monitorizeze casa sau smargo usb daca vrei sa-l faci server de cccam) sau activezi FTP-ul si-l faci si server FTP
    succes!

    Living an analog lifestyle in a digital world

  6. #6
    Member Mentor
    RDI - Board Default Avatar

    Join Date
    Sep 2007
    Posts
    503
    Posts Thanks / Likes

    Default

    Deci , ce mi-ai dat aici e ptr routerul topex wireles ? Conectarea o fac cu cablu sau merge si wireless? Banuiesc ca e ma bine cu cablu.

  7. #7
    Member Mentor
    Join Date
    Mar 2003
    Location
    Romania
    Posts
    857
    Posts Thanks / Likes

    Default

    Daca ai openwrt (cel putin asa e la whiterussian, kamikaze nu am incercat), poti sa editezi fisierul: /etc/config/firewall

    sintaxa e foarte simpla:
    forward:<match>:<target>[:<port>]

    de ex.:
    Code:
    forward:proto=tcp dport=13000:192.168.1.2
    face forward la protocol tcp, port 13000 catre ip: 192.168.1.2
    Evident poti pune oricate linii si nu numai cu forward (accept, drop)

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to Top