Log in

Bekijk de volledige versie : Access to modem behind WL500gP?



Sunwalker
04-01-2008, 14:58
Hi,

usually, I could reach my modem behind the router by adding this to my post-firewall:


#!/bin/sh
ifconfig vlan1 192.168.0.1 netmask 255.255.255.0
iptables -t nat -I POSTROUTING -o vlan1 -d 192.168.0.0/24 -j SNAT --to-source 192.168.0.1

Router: 192.168.1.1
Modem: 192.168.0.5

But it isn't working anymore... I set everything to factory defaults and set up the post firewall again, but it doesn't work.

Does anyone know why?

Oleg
04-01-2008, 15:42
This could be achieved by firmware itself: set 192.168.0.1/255.255.255.0 as your IP Address at the WAN&LAN page. It would automagically config vlan1 and masq.

Sunwalker
04-01-2008, 16:03
Do you mean the "LAN IP Setting" or the "WAN IP Setting" entry?

al37919
04-01-2008, 16:21
he meant wan ip

Sunwalker
04-01-2008, 16:27
Ok, now it works. Thank you very much ;).