Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » O Canada! » Canadian » TekSavvy » new tsi sign up
Search Topic:
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
emails »
« [HOWTO] Connecting to modem through router  
AuthorAll Replies


Taylortbb
Premium
join:2007-02-18
Waterloo, ON
·TekSavvy Solutions..

reply to geminijatt
Re: new tsi sign up

My suggestion is to just bypass your router, run DMT, then reconnect to your router. If you really want DMT while connected to your router there are two options:

1) Put the modem in Routed PPP mode, have it assign DHCP leases on 192.168.0.0/24 and have your router do DHCP on 192.168.1.0/24, also make sure your router is to DHCP not PPPoE on the WAN interface. This way your router will route the DMT connection to your modem seeing as it knows where that address space is. The problem is you'll have double NAT, any port forwards will have to be done on the router and on the modem.

2) Put the modem in bridge mode and turn off DHCP on the modem. Run a CAT5 cable from your router's WAN port to one of its LAN ports. Connect your ST516 to a LAN port. Set your router to PPPoE mode. This does not mean that incoming or outgoing connections can bypass your router and create a security problem. Because the only device talking PPPoE is the router, it's the only device that has a connection to the outside world, which it then shares with all the other devices. You can access your modem directly at the default address using DMT. Although the router is the only device running PPPoE and thus able to talk to the outside world, other devices can still talk to the modem itself.
--
Taylor Byrnes
www.taylorbyrnes.org


mactalla_



said by Taylortbb See Profile :

My suggestion is to just bypass your router, run DMT, then reconnect to your router. If you really want DMT while connected to your router there are two options:
You forgot the 3rd (cleanest) option: Set the routing tables s.t. requests directly to the router are routed to the router. The OP said he's running dd-wrt, so he can do it quite easily. Should work for any powerful firmware (ie. dd-wrt, tomato, openwrt, etc -- just not the OEM firmware).


canadabound

join:2008-03-27
·RCN CABLE

said by mactalla_ :

said by Taylortbb See Profile :

My suggestion is to just bypass your router, run DMT, then reconnect to your router. If you really want DMT while connected to your router there are two options:
You forgot the 3rd (cleanest) option: Set the routing tables s.t. requests directly to the router are routed to the router. The OP said he's running dd-wrt, so he can do it quite easily. Should work for any powerful firmware (ie. dd-wrt, tomato, openwrt, etc -- just not the OEM firmware).
And how exactly do you do that? Also "Set the routing tables s.t. requests directly to the router are routed to the router." could be explained a little more clearly perhaps?


mactalla_



said by canadabound See Profile :

said by mactalla_ :

said by Taylortbb See Profile :

My suggestion is to just bypass your router, run DMT, then reconnect to your router. If you really want DMT while connected to your router there are two options:
You forgot the 3rd (cleanest) option: Set the routing tables s.t. requests directly to the router are routed to the router. The OP said he's running dd-wrt, so he can do it quite easily. Should work for any powerful firmware (ie. dd-wrt, tomato, openwrt, etc -- just not the OEM firmware).
And how exactly do you do that? Also "Set the routing tables s.t. requests directly to the router are routed to the router." could be explained a little more clearly perhaps?
Sure, let's see if I can write coherent instructions here

Preparation: A-C

A. First, you need to be able to make changes to the routing. I'm not aware of any OEM firmware on routers that permit you to do this. This is (one) reason why many people like to replace the firmware on their router with something more powerful. The OP is already using DD-Wrt, which can do this easily. Myself, I use OpenWrt, so I know how to do it on there, and many people here use Tomato, which I have not tried, so would need someone else to confirm, but I'm 99% sure it'd work on there, too.

B. Now, you need to know the IP address your modem will respond to. The st516 will talk on at least one of its 2 pre-set IPs even in bridge mode and DHCP off. We'll call this $MODEM_IP

C. Finally, you need to know the name of the interface on your router where your modem is plugged in. (this can help: »wiki.openwrt.org/OpenWrtDocs/Configuration ) We'll call this $WAN_IFACE

Steps: 1-3

1. So, now you need to set the interface identified in 'C' to an IP address that is on the same subdomain. For example, if the modem is on 192.168.1.254, then we want 192.168.1.pick-a-number (where pick-a-number is not 254 (the modem), or 255 (broadcast), or any other machine on the network. 250 would likely be good. We'll call this $WAN_IP. The command "ipconfig $WAN_IFACE $WAN_IP" should do the trick.

2. Now, we need need to update the routing with these two commands:
iptables -A forwarding_rule -d $MODEM_IP -j ACCEPT
iptables -t nat -A POSTROUTING -d $MODEM_IP -j MASQUERADE

3. And of course you want that to happen automatically anytime your router (re)boots. So make a script that does this and have it run on boot.

On DD-Wrt routers, I understand this is accomplished by creating files in /jffs/etc/config/ and chmod +x them.

On OpenWrt routers, the files are placed in /etc/init.d/ (and don't forget the chmod). Mine is prefixed S52 (I think -- will check at home) and the execution order works.

On Tomato routers, could someone chime in here?

I can paste my actual script when I'm back home.


canadabound

join:2008-03-27
·RCN CABLE

said by mactalla_ :

Sure, let's see if I can write coherent instructions here

Preparation: A-C

A. First, you need to be able to make changes to the routing. I'm not aware of any OEM firmware on routers that permit you to do this. This is (one) reason why many people like to replace the firmware on their router with something more powerful. The OP is already using DD-Wrt, which can do this easily. Myself, I use OpenWrt, so I know how to do it on there, and many people here use Tomato, which I have not tried, so would need someone else to confirm, but I'm 99% sure it'd work on there, too.

B. Now, you need to know the IP address your modem will respond to. The st516 will talk on at least one of its 2 pre-set IPs even in bridge mode and DHCP off. We'll call this $MODEM_IP

C. Finally, you need to know the name of the interface on your router where your modem is plugged in. (this can help: »wiki.openwrt.org/OpenWrtDocs/Configuration ) We'll call this $WAN_IFACE

Steps: 1-3

1. So, now you need to set the interface identified in 'C' to an IP address that is on the same subdomain. For example, if the modem is on 192.168.1.254, then we want 192.168.1.pick-a-number (where pick-a-number is not 254 (the modem), or 255 (broadcast), or any other machine on the network. 250 would likely be good. We'll call this $WAN_IP. The command "ipconfig $WAN_IFACE $WAN_IP" should do the trick.

2. Now, we need need to update the routing with these two commands:
iptables -A forwarding_rule -d $MODEM_IP -j ACCEPT
iptables -t nat -A POSTROUTING -d $MODEM_IP -j MASQUERADE

3. And of course you want that to happen automatically anytime your router (re)boots. So make a script that does this and have it run on boot.

On DD-Wrt routers, I understand this is accomplished by creating files in /jffs/etc/config/ and chmod +x them.

On OpenWrt routers, the files are placed in /etc/init.d/ (and don't forget the chmod). Mine is prefixed S52 (I think -- will check at home) and the execution order works.

On Tomato routers, could someone chime in here?

I can paste my actual script when I'm back home.
That's an awesome guide thanks a lot! A lot of people will find this when google picks it up and make good use of it.
Forums » O Canada! » Canadian » TekSavvyemails »
« [HOWTO] Connecting to modem through router  


Saturday, 28-Nov 05:02:35 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [121] Time Warner Cable Fires Broadside At Broadcasters
· [112] New AT&T Ad Campaign Hits Back At Verizon
· [96] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [71] TiVo Sees Record Customer Losses
· [69] In-Flight Internet Headed For Bumpy Landing?
· [66] Verizon CEO: Hulu Will Be Dead Soon
· [62] Thanksgiving Open Thread
· [50] Weekend Open Thread
· [40] EFF Wages War On Fine Print
Most people now reading
· Windows 7 boot manager editing questions [Microsoft Help]
· Is Gear Score now the new requirement to get pug invite? [World of Warcraft]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· DIR-655 New Beta 1.32b09 [D-Link]
· [Newsgroups] Newzleech down? [Filesharing Software]
· What is the spell hit cap for a lvl 80 full arcane spec mage [World of Warcraft]
· [Newsgroups] Black Friday Usenet! [Filesharing Software]
· 5 hour energy for diabetic [General Questions]
· IPComms Free DIDs now with sip registration maybe?? [VOIP Tech Chat]
· [WIN7] Can I use Windows 7 disc to boot up install? [Microsoft Help]