Hi all.
I'm setting up a guest wlan as per
http://wiki.openwrt.org/doc/recipes/guest-wlan and everything's
working great except for one thing.
I run a linux web server on my main wlan and I use port forwarding to
reach this box from the wan, thus:
config redirect
option name webForward
option src wanZone
option src_dport 80
option dest_ip <internal ip of the linux>
option dest_port 80
option proto tcp
I note that not only does this redirect work from the wan, but it also
provides me with a "loopback port forwarding" that I can use when my
phone is connected to my main (internal) wireless zone. All is good...
Now, I have my newly-setup guest wlan, and I add the following stanza
to /etc/config/firewall:
config redirect
option name guestWebForward
option src guestZone
option src_dport 80
option dest_ip <internal ip of the linux box>
option dest_port 80
option proto tcp
But this obviously forwards all web traffic requested by the browser
connected to the guest wlan i.e.a request for www.google.co.uk now
retrieves my linux web server's default page.
I think that I need to add a line to the redirect to say:
option src_dip <external ip of the router>
but this changes every day since I have a dynamic ip from my broadband
supplier. What's the best way to implement this?
Many thanks, Jaime
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users