What you want is similar to what a captive portal does. Just look at
the scripts used by Linux-based suites that does a captive portal. By
the way on the topic of unsecured wifi connections [1].

[1] <http://blog.eonsec.com/2008/01/unsecured-wifi-and-gmail-cookies.html>

  Ed <http://blog.eonsec.com/>

On Fri, Feb 22, 2008 at 3:38 PM, Martin Acupanda <[EMAIL PROTECTED]> wrote:
> I'd like to do this experiment. I'd like to capture *all web traffic*
>  and direct it all to my web server.
>
>  This is my network.
>  my home LAN/WIFI Network(subnet#1) ----> ordinary router/AccessPoint
>  -----> my web server(subnet#2) w/ IP based virtual hosting
>
>  And I found this in the internet :)
>  iptables -t nat -A PREROUTING -i eth0 --dport 80 -j DNAT
>  --to-destination <ip-address of virtual host>:80
>
>  If I place this rule in "my web server", will this work? Or do I need
>  to google some more.
>
>  --
>
>  Regards,
>
>  Martin Acupanda
>  _________________________________________________
>  Philippine Linux Users' Group (PLUG) Mailing List
>  [email protected] (#PLUG @ irc.free.net.ph)
>  Read the Guidelines: http://linux.org.ph/lists
>  Searchable Archives: http://archives.free.net.ph
>
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to