 45578933
join:2008-10-13 canada | Access Modem on WAN
Modem has an IP of 10.0.0.11 LAN = 192.168.150.x
How can i configure Tomato to allow me to access the modem on the WAN port from the LAN so I can use DMT. |
|
 mactalla
join:2008-02-19 | Try this: »ST516 - DMT - WRT54G - Tomato/MLPP |
|
 45578933
join:2008-10-13 canada
| reply to 45578933 Ok so my Modem is on 10.0.0.11 (changed it from the default becase I have two modems running, one .11 one .12) Lan is 192.168.150.x
I put in WAN up addr add 10.0.0.1/24 dev br1 brd + /usr/sbin/iptables -I POSTROUTING -t nat -o br1 -d 10.0.0.0/24 -j MASQUERADE
And then put another IP on my workstation of 10.0.0.20.
I rebooted the router but I am still unable to access the modem on 10.0.0.11 ..... |
|
 mactalla
join:2008-02-19
·TekSavvy Solutions..
| said by 45578933 :And then put another IP on my workstation of 10.0.0.20. No. No computer plugged into the router needs to be changed. Your computer will only know "default route" ie. no special rules, so any traffic should go towards the router. The router will have three routes. The first which is your 192.168.150.x subnet that you setup on your router (I assume you connect to your router with 192.168.150.something). Another route is the default route which is anything not specified should go out the PPPoE interface to TekSavvy. You're inserting a 3rd option so that the router knows anything in 10.0.0.x should go out ... a different interface.
Now, because I don't have two modems and my network-fu is at its limit, I don't know for sure if it works having two modems on the same subnet but plugged into different ports (WAN vs LAN). In fact I don't know for sure what the interface is when Tomato turns one of your LAN ports into a WAN port.
I suggest looking at the interface names (br1, eth1, vlan1, etc) and see whether your modems are on different interfaces or not. If they're the same, ensure that interface is on one of the subnets that the modem uses (192.168.1.x or 10.0.0.x) and that iptables line should do the trick. If they're not, then use non-overlapping subnets (192.168.1.x vs 10.0.0.x or shrink them) and put each interface on an address in the same subnet as the connected modem. Then you need two iptables commands. Again, no change to the clients.
Let me know if that wasn't clear.
Hopefully someone else can chime in here in case I'm off base. |
|
 45578933
join:2008-10-13 canada | SOrry I ment to say my workstation is assigned both a 150.x and a 0.x IP
I guess I just need to remove the 0.x IP from the workstation. |
|
 mactalla
join:2008-02-19
·TekSavvy Solutions..
| Yes, your workstation should only have a single IP address in the 192.168.150.x range. No others.
Then try running the script Guspaz posted here: »Need some testing for Tomato/MLPPP
That should show which interfaces the modems are connected to. Post that information here and I can help you with the script you need to access both modems. |
|
 mactalla
join:2008-02-19 | reply to 45578933 Check out »ST516 - DMT - WRT54G - Tomato/MLPP for a script that should do it. |
|