Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Jarkor on February 12, 2004, 05:47:15 AM

Title: Access to ADSL modem IP from Local LAN
Post by: Jarkor on February 12, 2004, 05:47:15 AM
Hi everybody,

I got a ADSL SpeedTouch Pro modem connected to the
external Ethernet card (eth1), and the internal eth0
connected to the LAN.
I'd like to access to the ADSL modem embedded web
page, but from the local LAN, so I can configure it, and see the line statistics.
Actually I can only enter with lynx from the server only.
The modem IP is 10.0.0.138/8 and the local LAN is
10.0.0.0/8.
I've added an ip to eth1 with
     ip addr add 10.0.0.9 dev eth1

Then I try to do it with route tables but it doesn't
works. So I decided to implement a rule in the forward chain with ipchains, this way:

ipchains -A forward -b -s 10.0.0.0/8 -d 10.0.0.138 -j ACCEPT

But it doesn't work. I try with different rules (always with forward) including the protocol
(tcp, udp) but I can't. I also try to move the rule to the first place to be sure it's followed....but nothing.

If anyone can help me with this issue, I'll really appreciate it. If I miss to declare something please
let me know. And sorry for my English, I speak Spanish.

yours,
Jarkor
Title: Re: Access to ADSL modem IP from Local LAN
Post by: NickR on February 14, 2004, 10:19:50 PM
You are mixing up a netmask (the /8 is a netmask which is the same as 255.0.0.0) and an IP address 10.0.0.138

Your basic problem is that your LAN & WAN are on the same subnet.  It sounds like your router is actually already using NAT, which is why it's on a private subnet of 10.nnn.nnn.nnn.  Try seting the LAN to be a different private subnet such as 192.168.1.nnn (that's a /24 subnet) & it'll probably work.
Title: Re: Access to ADSL modem IP from Local LAN
Post by: Jarkor on February 16, 2004, 01:54:29 AM
Quote from: "NickR"
You are mixing up a netmask (the /8 is a netmask which is the same as 255.0.0.0) and an IP address 10.0.0.138

Your basic problem is that your LAN & WAN are on the same subnet.  It sounds like your router is actually already using NAT, which is why it's on a private subnet of 10.nnn.nnn.nnn.  Try seting the LAN to be a different private subnet such as 192.168.1.nnn (that's a /24 subnet) & it'll probably work.


Hi NickR, maybe I didn't explain it clear, or was
missunderstood. The WAN ip is not 10.0.0.138, that is
the ADSL modem IPs for admin purposes only. When the
e-smith connects to the ISP through the ADSL modem, it
works in bridge mode so in the WAN eth card I got the internet IP, that's an IP with a 255.255.255.255 mask.

The router (dsl modem) is not using NAT because it
doesn't connects to the ISP (the e-smith connects throug rp-pppoe), and it's configured in bridge mode.

regards,
Jarkor
Title: Access to ADSL modem IP from Local LAN
Post by: grand-pa on February 16, 2004, 03:26:52 AM
I had the same problem when i was having my old SpeedTouch Home (STH). I resolved it with that configuration :
Internet - STH(10.0.0.138/8) - eth1(10.0.0.10/8) - SME - eth0(192.168.0.1/24) - LAN(192.168.0.0/24)

Your problem is probably due to your local LAN IP address that is the same as the external devices (eth1 and your STP).
Try to change your LAN adresses or, more simple, change the IP of your STP (192.168.0.1 for exemple) and eth1 (192.168.0.2 for exemple). Then, from any client, you should be able to access your STP configuration web pages with its new IP address. ;-)
Title: Access to ADSL modem IP from Local LAN
Post by: Jarkor on February 16, 2004, 05:41:45 AM
Quote from: "grand-pa"
change the IP of your STP (192.168.0.1 for exemple) and eth1 (192.168.0.2 for exemple). Then, from any client, you should be able to access your STP configuration web pages with its new IP address. ;-)


Ok, I'll try it, then I told you how it was.......
Anyway, after changing the IP of the STP, I must add
a route table to route to that net I guess...
I'l make a few tests....and come back.

tnx grand-pa and NickR!
Jarkor
Title: :-)
Post by: Jarkor on February 25, 2004, 03:15:34 AM
Hi everybody, I want to thank you all in the forum
that helps me to resolve the problem.
I actually can access the ADSL modem without any problems.
The solution:

1) change the ADSL modem IP address from 10.0.0.138/8
to 192.168.1.1/24
2) ip addr add 192.168.1.2/24 dev eth1
3) route add -host 192.168.1.1 eth1

That's it!

ping 192.168.1.1 works great, also can access from any
Pc connected to the LAN.

Thanks again,
Jarkor