Hello everyone!
I am using my WRT54G V2 as a web server and I want to make it so that anyone who connects to the wireless AP and enters any web site is automaticly redirected to the web server on the WRT at 192.168.1.1.
Cheers
Exactly what i am doing and here is my firewall settings:
.
.
.
LAN=$(nvram get lan_ifname)
IPT=/usr/sbin/iptables
# allow these MAC:s
$IPT -t nat -A PREROUTING -m mac --mac-source 00:12:21:29:1a:46 -i $LAN -j ACCEPT
$IPT -t nat -A PREROUTING -m mac --mac-source 00:33:48:ee:21:d3 -i $LAN -j ACCEPT
# deny ALL other traffic (redir to FW & Log)
$IPT -t nat -A PREROUTING -p tcp -i $LAN -j DNAT --to 192.168.1.1
.
.
.
And make sure that your dhcp is right configured (GW & DNS)
domain-needed
bogus-priv
filterwin2k
local=/lan/
domain=lan
except-interface=vlan1
dhcp-leasefile=/etc/dhcp.leases
dhcp-range=lan,192.168.1.30,static,255.255.255.0,12h
dhcp-range=lan,192.168.1.31,static,255.255.255.0,12h
dhcp-host=net:lan,00:12:21:29:1a:46,192.168.1.30
dhcp-host=net:lan,00:33:48:ee:21:d3,192.168.1.31
dhcp-option=lan,1,255.255.255.0
dhcp-option=lan,3,192.168.1.1
dhcp-option=lan,6,192.168.1.1
/S.D