unauthorized user's HTTP access should be redirected to portal login page to help user do authentication.Using netfilter NFQUEUE target send unauthorized user TCP port 80 packets to user-space program redir_http.Redir_http will send IP reply packets to user do HTTP redirection with the help of raw socket.Using NFQUEUE can ensures high performance redirection
avoid troublesome development in the Linux kernel
simplify application development and improve system stability.
ZHANG X J , et al . HTTP redirection applied to gateway authentication [J ] . Journal of Dalian University of Technology , 2005 , 45 ( S ): S48 - S51 .
PABLO NEIRA AYUSO . PABLO NEIRA AYUSO.libnetfilter_queue [EB/OL ] . https://git.netfilter.org/libnetfilter_queue/ https://git.netfilter.org/libnetfilter_queue/ .
Calculating IP and TCP checksums [EB/OL ] . http://www.bloof.de/tcp_checksumming http://www.bloof.de/tcp_checksumming .