Zend certified PHP/Magento developer

How make a captive portal on Debian or Manjaro?

Since last year i was working with an access point using a captive portal.I was using hostapd apache isc-dhcp-server and iptables to redirect users to the captive portal.When user was connecting to access point the captive portal did the rest of the job and the login page was showed.

The files connecttest.txt and ncsi.txt are in /var/www folder.Now i need to use again this configuration but doesn’t work anymore.Here is my configuration files.

hostapd.conf

interface=wlp3s0
driver=nl80211
ssid=Test
hw_mode=g
ieee80211n=1
channel=1

dhcpd.conf

option T150 code 150 = string;
deny client-updates;
one-lease-per-client false;
allow bootp;
ddns-updates off;
ddns-update-style interim;
authoritative;
subnet 178.0.0.0 netmask 255.255.255.0 {
interface
range 178.0.0.2 178.0.0.10;
option routers 178.0.0.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 178.0.0.1;
allow unknown-clients;
}

iptables rules

ifconfig wlp3s0 up
sudo sysctl net.ipv4.ip_forward=1
ifconfig wlp3s0 178.0.0.1 netmask 255.255.255.0
ifconfig wlp3s0 mtu 1400
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
sleep 2;
route add -net 178.0.0.0 netmask 255.255.255.0 gw 178.0.0.1 &> /dev/null
iptables -t nat -A PREROUTING -p udp --dport 53 -j DNAT --to 178.0.0.1
iptables -P FORWARD ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 178.0.0.1:80

connecttest.txt

Microsoft Connect Test

ncsi.txt

Microsoft NCSI

Why my configuration not work anymore ? what things exctly changed last year ?

NOTE : this configuration still working with android users but not with windows users.

Thanks a lot.