OpenWrt Forum Archive

Topic: Static Routing and Remote Administration Questions

The content of this topic has been archived on 10 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello you guys. I am new to OpenWRT and have just gotten away from DD-WRT as it has failed to provide a proper method for the WRT54G3G router with a 3G data card. I went with OpenWRT because there is a great community behind getting the 3G cards and this certain router and firmware to work together.

However, I have noticed that there are a couple of options missing in OpenWRT that were a little more relevant in DD-WRT. One of them is the ability to administer to the router remotely via a certain port (such as 8000) and the other is the missing page for assigning static routes to certain IP addresses.

As far as both of these problems go, I am learning toward the Firewall page being the place to make these changes, however, I do not know how and cannot find any documentation explaining how this is done. I have found something for White Russian RC6 for editing the system via telnet to add a static route, however this is slightly confusing.
My network scheme in a few short words or less is that I have 192.168.0.1 as my main router, and then another network 192.168.1.1. I have assigned my 1.1 network the WAN IP of 0.2, and am able to see the 1.1 network router config page by going to 0.2, but I cannot access it via 1.1, as I could before. Is there a way to tell the OpenWRT router (1.1) to direct all 1.0 network range requests to the 1.1 router? This is what I hope to achieve through static routing.

For using remote administration, is it possible to setup some type of port forwarding to allow the router to be logged into via the WWAN(see below) or WAN port?

Just off the record, if there is anyone out there that is using the same setup as me (Evdo Wizards custom build), is it possible to add a DynDNS (or the like) entry for the WWAN port, or is this just for the WAN port? I cannot seem to get my DynDNS account talking with my router...

If I am in any way unclear, please tell me to explain myself.

Thanks for your response, it helps! smile

-Patrick

If you look in /etc/firewall you will notice a firewall rule that is commented out. It's for exactly what you're asking for:

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

Choose your port and uncomment the two lines

What exactly does your instructions do? When I choose my port, what am I choosing it for?

Does this allow a static route via IP to be input? If not, where can I do that at?

Or does this allow WAN access to the router config. panel through a certain port?

Can this be done through the X-Wrt extension frontend?

Thank you for your response. smile
-Patrick

This will forward the WAN port (of your choice) to the router on your LAN.

Okay, perhaps I am not explaining myself clearly enough because I do not understand...

Here is what I want to do: when I am on the 192.168.0.1 network (say 192.168.0.103), I would like to type into my browser 192.168.1.1 and the next router config pages show up. I have not changed anything on the 192.168.1.1 router so far and it worked with my past setup. However, this was with the default Linksys firmware, now I have OpenWRT flashed to it. In default firmware I was able to set up a static route under Advanced Routing. However, with OpenWRT (with the X-WRT extensions), I am not able to assign a static route because there is no config page for it.

As far as physical media configuration goes, I have the 2nd router plugged into the first router with the WAN port used on the 2nd router and a LAN port on the 1st router.

Where do I enter in the information to be able to connect to the 192.168.1.1 network from the 192.168.0.1 network. Basically, where do I assign a static route within the router configuration?

Thank you for your patience with me..
-Patrick

The static routes configuration page has not been created yet in webif2 for White Russian. sad
Use this guide to create the static routes NVRAM variables Static Routes.
If I understand your current topology, you are sitting in the network of the first router and you are trying to go to the second network which is masqueraded via the wan port of the second router. There is no possibility to create a static route for the masqueraded network smile
Everything you have is the 0.2 address, the traffic to this address is forwarded to the second network using the firewall.

The discussion might have continued from here.