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


geminijatt

@teksavvy.com

reply to geminijatt
Re: new tsi sign up

hi,

thanx for the fast reply. I can't seem to find the "router mode" option in the st516. There is bridge mode and PPP Routed.

I originally had it in bridge mode but that didn't allow me to access the modem either.

I put it in ppp routed mode and that doesn't work either.

If i take the ethernet out of the router wan and plug directly from the modem to my laptop it works.


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

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  


Tuesday, 01-Dec 09:26:55 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [62] Baltimore To Ban Lazy Cable Installs
· [51] Broadband Killed The Game Console
· [37] Rural Carriers Quickly Embracing Fiber
· [33] AT&T Top Lobbyist Cicconi Has His Feelings Hurt
· [29] Charter Exits Chapter 11
· [22] Midcontinent Socked With Easement Lawsuit
· [4] Monday Evening Links
· [3] Monday Morning Links
· [3] ACTA: Global Three Strikes
· [2] Vivendi Agrees, Comcast/NBC Deal Soon
Most people now reading
· [Rant] called out sick! [Rants, Raves, and Praise]
· Windows 7 boot manager editing questions [Microsoft Help]
· Heating - my dad gave me this advice... [Home Repair & Improvement]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· Considering Leaving Vonage, who should I Consider? [VOIP Tech Chat]
· Is Microsoft Technet ok to use for my family PC's? [Microsoft Help]
· IMG 1.7 (IMG Updates and Discussion) [Verizon FIOS TV]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]
· Why is VoIP Better than POTS? [VOIP Tech Chat]
· [Newsgroups] Newzleech down? [Filesharing Software]