taking over iptables/ip6tables and ipset

This commit is contained in:
2019-05-18 09:38:36 +01:00
parent 2c9be299e0
commit ac521117b0
5 changed files with 92 additions and 0 deletions

7
postconfig.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
ipset restore < /config/hphr.ipset
iptables-restore /config/hphr.rules.v4
ip6tables-restore /config/hphr.rules.v6
echo 2 > /proc/sys/net/ipv4/conf/default/rp_filter
echo 2 > /proc/sys/net/ipv4/conf/all/rp_filter