Topic: Access modem via router

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

Re: Access modem via router

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

Re: Access modem via router

OpenWrt / How to provide admin access to DSL modem?
Accessing your modem - OpenWrt Wiki

Re: Access modem via router

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

Re: Access modem via router

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

Re: Access modem via router

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

Re: Access modem via router

BTW, I don't think you need two routers.

Dumb AP - OpenWrt Wiki

Re: Access modem via router

Thanks fyi. I will try that.
My regards

9 (edited by eng.hassan23 2012-03-05 22:28:36)

Re: Access modem via router

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?!