Redirect http traffic to login page

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Redirect http traffic to login page

Oliveiros Peixoto (Netinho)

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 –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?



Nufw-users mailing list
[hidden email]