Initial commit
This commit is contained in:
15
process.sh
Normal file
15
process.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
rm -rf /etc/dnsmasq.d/antizapret-openwrt.conf
|
||||
ipset flush vpn_ipsum
|
||||
mkdir -p /etc/dnsmasq.d/
|
||||
cp result/dnsmasq-ipset.conf /etc/dnsmasq.d/antizapret-openwrt.conf
|
||||
# i have no idea why or how, but this command makes it all work
|
||||
iptables -I PREROUTING -t mangle -m set --match-set vpn_ipsum dst -j MARK --set-mark 1
|
||||
/etc/init.d/dnsmasq restart
|
||||
/etc/init.d/firewall restart
|
||||
iptables -I PREROUTING -t mangle -m set --match-set vpn_ipsum dst -j MARK --set-mark 1
|
||||
echo "\"no lease, failing\" error is normal."
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user