OpenWrt Forum Archive

Topic: Access modem via router

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

Hello,
I have modem tp-link TD-W8901G Modem and tp-link TL-WR741ND Router with openWRT installed on it. When I connect the router to modem, I can't access the modem. How can I do that?
I found useful instructions in documentation to do that, but my problem now is:
Modem IP: 192.168.1.1
Router IP: 192.168.1.1
And I don't know how to change any of them? Can I change default ip of the router to be 192.168.10.1 for example?
Also, I have a web server on the router (Web page @ 192.168.1.1:81). Is there a tutorial about how to make this web page public over the internet, using Public IP or IP of the modem?
Thanks

Last question please, TD-W8901G is a modem, router and access point in one device. Can I install openwrt on it? I didn't find it on the supported devices sad

Thanks fyi. What about installing openWRT on TD-W8901G ?

Hi
I change the default ip of my modem and now can access it via the router.
Now I need to access internet via the router!
I mean how to configure the router?
Modem IP: 10.0.0.1
Router IP: 192.168.1.1
When I open google.com, this show forward to WAN port (10.0.0.50), then to gateway 10.0.0.1..how to do that?
Also I have web server @ 192.168.1.1:81
I want to be able to access this server without the need to connect a cable from the router to my PC. My PC is already connected to wireless connection of the Modem. So I want when write 10.0.0.1:81, forward to port that connected to the router, then forward to the server on the router.
Sorry for many questions but I am new to linux.
Thanks

eng.hassan23 wrote:

Also, I have a web server on the router (Web page @ 192.168.1.1:81). Is there a tutorial about how to make this web page public over the internet, using Public IP or IP of the modem?

Access TD-W8901G@10.0.0.1. Add a Virtual Server entry of tcp 81 and forward it to TL-WR741ND which has a static wan ip address of 10.0.0.50/24.
Access TL-WR741ND@192.168.1.1 and open tcp 81 of the wan interface.

Port Forwarding - TP-LINK - TD-W8901G (TP-LINK Firmware) | PcWinTech.comâ„¢
Firewall configuration - OpenWrt Wiki - Opening ports
DD-WRT Forum :: View topic - TP-Link TD-W8901G v:3.1 info on board and memory

Thanks fyi. I will try that.
My regards

Hello fyi,
I followed the instructions but my server is not reached over the internet or even inside the LAN. May you check my steps please?

I connected the WAN port of my router to a port of the modem.
Modem IP: 10.0.0.1
Router IP: 192.168.1.1
Web Server @ 192.168.1.1:81

/etc/config/netwrok

   

config alias modem
    option interface wan
    option proto static
    option ipaddr 10.0.0.20
    option netmask 255.0.0.0
    option layer 1

/etc/config/firewall

   

config zone
        option name             wan
        option network          'wan'
        option input            REJECT
        option output           ACCEPT 
        option forward          REJECT
        option masq             1
        option masq_dest        '!modem'
        option mtu_fix          1

/etc/firewall.user

   

iptables -t nat -I postrouting_rule -s 192.168.1.0/24 -d 10.0.0.1 -j SNAT --to 10.0.0.20
iptables -I zone_lan_forward -s 192.168.1.0/24 -d 10.0.0.1 -j ACCEPT
iptables -I FORWARD -j ACCEPT -i br-lan -o eth0.2
iptables -I FORWARD -j ACCEPT -m state --state ESTABLISHED,RELATED

Then I added a Virtual Server @ 10.0.0.20, Start Port: 81, End Port: 81

/etc/config/firewall
   

config rule
        option src              wan
        option dest_port        81
        option target           ACCEPT
        option proto            tcp

What's wrong?!

(Last edited by eng.hassan23 on 5 Mar 2012, 22:28)

The discussion might have continued from here.