the netmask 255.255.255.0 block u  access.
try a netmask 255.255.0.0 or set a temp static ip such as 192.168.2.x
then u can do it.


> Hello,
> 
> I have an adsl modem connected to a linux box which acts as a router.
> The router machine has three interfaces:
> eth1: 192.168.1.2, connected to the modem
> eth0: 192.168.0.1, the wired LAN (192.168.0.0/24) using a switch
> ath0: 192.168.5.1, the wireless lan (192.168.5.0/24)
> 
> The modem's LAN ip address is 198.168.2.1. The modem is working in
> bridge mode and when a connection is established, ppp0 is formed on the
> router machine.
> 
> The iptables script that I have on the router machine does the
> forwarding and nat. All works okay between the wired and wireless LAN
> and the internet and also within the wired and wireless LAN.
> 
> The problem is that I can access the modem's web interface (on
> 192.168.2.1) only from the router machine and not from any other LAN
> machine. Could somebody tell me what are the iptables rules needed to
> make this happen?
> 
> This is on Debian Testing, running 2.6.18.
> 
> 
> Thanks,
> ->HS
> 
> 

Attachment: signature.asc
Description: 这是信件的数 字签名部分

Reply via email to