PDA

Bekijk de volledige versie : How to connect to device connected to wan port?



Mark Koshelev
05-02-2005, 22:28
I have home network in the next configuration:

MyPC-(net 192.168.0.0/24)-WL500g-(net 192.168.1.0/24)-DLink300T---PPPoe ADSL provider

DLink is ADLS modem in bridge mode.
WL-500g - 1.9.2.7-3c

I wish to connect to Dlink from MyPC

I have configured WAN port on WL500g as follow (ifconfig):

++++++++++++++++++
....
eth1 Link encap:Ethernet HWaddr 00:11:2F:D9:A6:B4
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
....
++++++++++++++++++

After this I have routing table on WL-500G:

++++++++++++++++++
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
83.237.47.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 br0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default ppp83-237-47-1. 0.0.0.0 UG 0 0 0 ppp0
++++++++++++++++++

default router on MyPC is 192.168.0.1 the address of LAN interface of WL500G:
++++++++++++++++++
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.10 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.10 192.168.0.10 20
192.168.0.10 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.0.255 255.255.255.255 192.168.0.10 192.168.0.10 20
224.0.0.0 240.0.0.0 192.168.0.10 192.168.0.10 20
255.255.255.255 255.255.255.255 192.168.0.10 192.168.0.10 1
Default Gateway: 192.168.0.1
++++++++++++++++++
The problem is:
If I try to connect to DLink from WL-500G it works (I used ping and telnet).
If I try to connect to DLink from PC I have no success.
It looks like WL500g doesn't accept routing table. Unfortunately no messages there are in log file in WL500g.

Where is my mistake?

Oleg
06-02-2005, 09:32
You need to configure your dsl-300t - it should have a route pointing to the 192.168.0.0 network, which should go via wl500g.
Alternatively you could add masquarading rule for all packets coming from eth1.