So i want to include a file with 80k+ urls based on https://github.com/StevenBlack/hosts hosts file to a rule in IPTABLES. There is a way to do it manualy, but as u can understand doing that manualy for 80k+ entries will be a headache.
filter :INPUT DROP [0:0] :FORWARD DROP [0:0] :OUTPUT ACCEPT [0:0] :upnp - [0:0] :vpnlist - [0:0] :bfplimit - [0:0] :maclist - [0:0] :urllist - [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -i br0 -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state INVALID -j DROP -A INPUT -p udp --sport 67 --dport 68 -j ACCEPT -A INPUT -p icmp ! --icmp-type echo-request -j ACCEPT -A FORWARD -i br0 -o br0 -j ACCEPT -A urllist -p tcp -m webstr --url "ada.com aaa.com ffff.com" -j REJECT --reject-with tcp-reset -A FORWARD -i br0 -j urllist -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT -A FORWARD -m state --state INVALID -j DROP -A FORWARD -i br0 -j ACCEPT -A FORWARD -m conntrack --ctstate DNAT -j ACCEPT COMMIT
The bold part is the one I want to fill with all the url or include a file
Any ideas how to do that?
iptables
command with the line as parameter - YMMV