23 Czerwca 2025 22:19:18
Nawigacja
· Strona Główna
· Forum

· Tomato by Shibby
· FreshTomato


Wątki na forum
Najnowsze dyskusje
· Sieć domowa: System...
· [S] Unifi Dream Mach...
· [MOD] FreshTomato-AR...
· Neostrada Biznes - w...
· wnr3500l v2 multicast
· Brak izolacji Guest ...
· [S] Ubiquity Edgerou...
· zmiana dd-wrt na Tomato
· [S] Qnap QSW-2104-2T...
· Komputer Serwer
· Promise VessRAID 184...
· Własna kompilacja t...
· r6400v2 bład przy u...
· drukarka drukuje tyl...
· [S] sprzęt sieciowy...
· Router do światłow...
· [sprzedam] Asus RT-A...
· Netia IPv6
· Multiroom N z wykorz...
· Nowe routery: UX, UC...
Najpopularniejsze obecnie wątki
· [MOD] FreshTomato... [931]
· Sieć domowa: Sys... [4]
· [S] Unifi Dream M... [0]
· Neostrada Biznes ... [0]
· wnr3500l v2 multi... [0]
Ankieta
Jaki procesor posiada twój router?

Broadcom MIPSEL
Broadcom MIPSEL
36% [152 głosów]

Broadcom ARM
Broadcom ARM
52% [219 głosów]

Atheros
Atheros
5% [22 głosów]

Marvell
Marvell
1% [4 głosów]

Ralink
Ralink
1% [3 głosów]

Intel/AMD/VIA
Intel/AMD/VIA
1% [5 głosów]

Żaden z powyższych
Żaden z powyższych
4% [16 głosów]

Ogółem głosów: 421
Musisz zalogować się, aby móc zagłosować.
Rozpoczęto: 02/02/2015 09:38
Twoje IP
216.73.216.121
Zobacz wątek
OpenLinksys » :: OPROGRAMOWANIE :: » Tomato - firmware
 Drukuj wątek
Asus RT-N16 port forwarding problem
aldaris
Hi. I have an Asus RT-N16 router with Tomato-K26USB-1.28.RT-MIPSR2-101-AIO firmware - (Router A)
Some Tenda router (Router B)
Another Tenda (Router C)
With the topology:

INTERNET
 -ZYXEL P650HW adsl modem/router (set to bridge mode)
    - Router A (WAN IP lets say 75.75.75.75, VLAN1 IP 10.0.0.138, VLAN2 IP 192.168.1.1)
       - Router B (WAN IP 192.168.1.2, LAN IP 192.168.10.1)
       - Router C (WAN IP 192.168.1.3, LAN IP 192.168.3.1)


As you can see, router A has two virtual LANs where router X (not in the schema, not important) is in VLAN1 and B and C are in VLAN2.

I am trying to forward two ports on router A so I can access router B and C webadmin interface from outside. So I set router A remote admin port to 8091, router B remote admin port to 8092, router C remote admin port to 8093.

On router A I set the port forwarding for port 8092 to IP address 192.168.1.2 and 8093 to 192.168.1.3

When I type the IP 75.75.75.75:8091 in the browser from outside, it works and I can get into the tomato remote admin interface. Still fine.
BUT when I try to get to router B (75.75.75.75:8092) I get one redirection to 75.75.75.75:8092/login.asp and then a redirection to 192.168.10.1/login.asp which is surely not accessible from outside.
The same with router C.

Can you please point me what I am doing wrong?

Is it the bad tomato setting or something with the router B or C?
I also tried to disconnect B and C for a while while trying to access them but I still got redirected to theirs LAN ip's, so I think it's something wrong in router A (tomato) setting.

Thank you for any help.
 
lookaka
Connection to [WAN-IP]:8093 work?

By the way - what is the reason for the VLAN? Separation B and C from A network?
 
aldaris
No.. the result is the same when connecting to router C from outside with WAN ip address and port 8093. I am redirected to 192.168.3.1.

It is the redirect request (HTTP 302) to the browser.. I've never seen this beahvior before. I think the forwarding should be transparent for outside scope.

The reason for a VLAN is that I need to separate VLAN1 from VLAN2. VLAN 1 runs the small office and VLAN 2 runs a home network for few apartments.
 
lookaka
You don't need VLANs to separate network A,B and C.
Try the foolowing...

INTERNET
-ZYXEL P650HW adsl modem/router (set to bridge mode)
- Router A (WAN IP lets say 75.75.75.75, LAN IP lets say 192.168.1.1) - router in "normal" mode - without VLANs

- Router B (WAN IP 192.168.1.10, LAN IP 10.0.0.1)
with this script in Administration\Scripts\Firewall:
iptables -t nat -I PREROUTING -s 10.0.0.0/16 -d 192.168.0.0/16 -j DROP

- Router C (WAN IP 192.168.1.20, LAN IP lets say 10.0.0.1 too)
with this script in Administration\Scripts\Firewall:
iptables -t nat -I PREROUTING -s 10.0.0.0/16 -d 192.168.0.0/16 -j DROP

(c)bd ;)
 
aldaris
Can I do QOS and/or bandwith limiting without VLANs too? (understand, I want to limit only a VLAN for the apartments. The office must have the top priority)

By the way, consider the following:
The router B and C are in the apartments, so the person in the apartment can easilly reboot B or C when needed. But he can also easilly disconnect B or C from the cable and connect there his laptop to get directly to the 192.168.0.0/16 subnet so the iptables won't help, right?
 
lookaka
You're right. I never thought that a person with an apartment can have such ideas and opportunities.
In this case, it may better to use VLAN.

I tested a long time ago to create a VLAN from the command line (Tomato 1.28)
As here: http://catsmacsandhacks.blogspot.com/...omato.html
I remember that it worked fine (after some adjustment) but the more I liked the solution with iptables.

You can try as described in the above link.
If you check this solution faster than I do - please write about it.

I'll try to remember my solution and port forwarding in that case. If it works I'll write about it :)

P.S.
Of course, you can configure bandwidth limiting - on Router A or B and C.
 
aldaris
I looked inside the logs today to find out if there is something about the redirection. I donwnloaded the iptables too, but there is no entry for the LAN ip address of router B nor C.

Is there a way to find out if tomato causes the redirection problem or Tenda routers? When I connect to WAN ip of B or C from the 192.168.1.1 subnet, everything works fine. The problem is when I try to access remote admin from outside.
 
lookaka
When you send ping from 192.168.1.* to WAN B (192.168.1.2) you have response from 192.168.1.2 or from 192.168.10.1?
 
Przejdź do forum
Zaloguj
Wprowadź adres e-mail lub nazwę użytkownika

Hasło



Nie masz jeszcze konta? Zarejestruj się.

Zapomniałeś/aś hasła?
Aktualnie online
· Gości online: 30

· Użytkowników online: 0

· Łącznie użytkowników: 24,126
· Najnowszy użytkownik: goldi111
Czat
Musisz się zalogować, aby opublikować wiadomość.

amikot
13-06-2025 19:58
to forum wygląda na martwe Sad

Maniek91PL
15-05-2025 19:35
witam! było coś gdzieś o obsłudze asus mesh w tomato moze? chętnie bym przetestował u rodziców

servee
24-01-2025 18:18
Światłowód + mediakonwenter. Ekranowana skrętka nie jest wymagana, taką sytuację już zastałem. Zamierzam ją wymienić na zwykłą. Da to coś?

shibby
17-01-2025 07:45
a ta skrętka ekranowana o której piszesz to jakiś wkopany przewód do bramy/furtki/kamer
y zewn? Jak tak to jego też przez zabezpieczenie podepnij.

shibby
17-01-2025 07:43
no to pora zabezpieczyć kable LAN zabezpieczeniami przeciwprzepięciow
ymi - tanio nie będzie. Jak przychodzi ci internet? Skrętką czy światłem? Jak skrętką to zacząłbym od tego.

servee
12-01-2025 12:52
Ponownie padły mi wszystkie porty sieciowe w routerze - to już 3-ci w 6 m-cy. Podejrzany to ekranowana, nieuziemiona skrętka - 12mb. Czy jest to możliwe?

dawidt
21-12-2024 01:09
siema Grin

Maniek91PL
06-11-2024 22:37
dzięki !Grin

maxikaaz
29-10-2024 14:27
@Maniek91PL - Administration=> Admin Access, i tam masz "Allow Wireless Access" do zaznaczenia

Maniek91PL
26-10-2024 22:07
siemka! ktoś przypomni co się ustawiało jeśli nie mogę wejść od strony wifi do tomato? od lan działa

121,236,993 unikalnych wizyt