install nodogsplash and softflowd
vi /etc/config/nodogsplash
<edit "option enabled 0->1">
/etc/init.d/nodogsplash start
Testing required modules
Testing module ipt_mac
ipt_mac is working
Testing module ipt_mark
ipt_mark is working
/usr/sbin/softflowd -i br-lan -n 127.0.0.1:9991 -v 5
root@OpenWrt:~# ps | grep softflowd
7911 nobody 3212 S /usr/sbin/softflowd -i br-lan -n 127.0.0.1:9991 -v 5
7913 root 1176 S grep softflowd
Open browser, open http://example.com/, click splash
ps | grep softflowd
root@OpenWrt:~# ps | grep softflowd
7919 root 1176 S grep softflowd
Okay...
(-d Don't daemonise (run in foreground))
root@OpenWrt:~# /usr/sbin/softflowd -i br-lan -n 127.0.0.1:9991 -v 5 -d
softflowd v0.9.9 starting data collection
Exporting flows to [127.0.0.1]:9991
...
<Open in browser google.com>
...
Exiting on pcap_dispatch: corrupted frame on kernel ring mac offset 55303 + caplen 156003968 > frame len 262144
Exiting immediately on user request
root@OpenWrt:~#
nodogsplash when clicked on the splash adds to iptables:
-A ndsOUT -s 192.168.1.240/32 -m mac --mac-source 11:22:33:DD:EE:FF -j MARK --set-xmark 0xa400/0xa400
iptables-mod-ipmark crashed libpcap?
(Last edited by vasiliy.f.fedorov on 22 Mar 2017, 09:13)