|
From: | Oliveiros Peixoto |
Subject: | [Nufw-users] Redirect http traffic to login page |
Date: | Thu, 25 Aug 2011 19:15:19 -0300 |
Hi, i try set redirect the traffic of guest users to login page. I use these iptables rules echo “1” > /proc/sys/net/ipv4/ip_forward Iptables –t nat –A PREROUTING –i eth1 –s 192.168.200.0/24 –m mark –mark 0 –p tcp –dport 80 –j REDIRECT Iptables –t mangle –A PREROUTING –p tcp –i eth1 –m state –state NEW –syn –j NFQUEUE When try access a web page the redirect is work and i login, but after logged if access some web pages her redirect again to login page. Somebody can help me? |
[Prev in Thread] | Current Thread | [Next in Thread] |