long post coming.
someone alerted me some hostnames were missing and hardcoded ips.
I ammended the script as follows.
Add this below the DNSMASQ-CFG line.
Add this above # Apply iptables rule
and in the WIN10IPS file, add this.
then reunning the firewall-start script should add the ips. Remember also to add the extra hostnames
I did try to post the full info but this forum has a forum post limit, so instead will link to the other site.
Is here http://forum.kitz.co.uk/index.php?topic=16125
By the way I think there is an issue with the firewall preserving existing rules, from what I can observe running diff the QOS rules get lost, when this script is executed.
I lost the following iptables rules.
-A logdrop -m state --state NEW -j LOG --log-prefix "DROP " --log-tcp-sequence --log-tcp-options --log-ip-options
-A logdrop -j DROP
-A PREROUTING -i eth0 -j CONNMARK --restore-mark --nfmask 0x7 --ctmask 0x7
-A FORWARD -o eth0 -j QOSO
@@ -110,12 +110,12 @@
-A QOSO -j CONNMARK --set-return 0x2/0xffffffff
-A QOSO -j RETURN
someone alerted me some hostnames were missing and hardcoded ips.
I ammended the script as follows.
Add this below the DNSMASQ-CFG line.
Code:
WIN10IPS=/tmp/mnt/OPTWARE/hosts.win10ips
Add this above # Apply iptables rule
Code:
# Add hardcoded ip's to ip set
for ip in $(cat $WIN10IPS);
do
if [ "$(ipset -T Win10tracking $ip | grep 'is NOT in set Win10tracking')" != "" ];
then
ipset -A Win10tracking $ip
fi
done
and in the WIN10IPS file, add this.
Code:
2.22.61.43
2.22.61.66
65.39.117.230
65.55.108.23
23.218.212.69
134.170.30.202
137.116.81.24
157.56.106.189
204.79.197.200
65.52.108.33
then reunning the firewall-start script should add the ips. Remember also to add the extra hostnames
I did try to post the full info but this forum has a forum post limit, so instead will link to the other site.
Is here http://forum.kitz.co.uk/index.php?topic=16125
By the way I think there is an issue with the firewall preserving existing rules, from what I can observe running diff the QOS rules get lost, when this script is executed.
I lost the following iptables rules.
-A logdrop -m state --state NEW -j LOG --log-prefix "DROP " --log-tcp-sequence --log-tcp-options --log-ip-options
-A logdrop -j DROP
-A PREROUTING -i eth0 -j CONNMARK --restore-mark --nfmask 0x7 --ctmask 0x7
-A FORWARD -o eth0 -j QOSO
@@ -110,12 +110,12 @@
-A QOSO -j CONNMARK --set-return 0x2/0xffffffff
-A QOSO -j RETURN
Last edited: