RKN ip block list routes to vpn

RKN ip block list routes to vpn


/rkn_routes.sh

for IP in $(curl -s https://antifilter.download/list/allyouneed.lst)
do
ip route add $IP via 192.168.200.1 dev wg0
done

or you can use this:

/rkn_routes.sh

curl -s https://antifilter.network/download/ip.lst > /tmp/rkn_ips.lst
curl -s https://antifilter.network/download/ipsum.lst >> /tmp/rkn_ips.lst
curl -s https://antifilter.network/download/subnet.lst >> /tmp/rkn_ips.lst

for IP in $(cat /tmp/rkn_ips.lst)
do
ip route add $IP via 192.168.202.1 dev wg1
done

/etc/crontabs/root

@reboot         /bin/bash /rkn_routes.sh
0 * * * * /bin/bash /rkn_routes.sh

/etc/sysupgrade.conf

/rkn_routes.sh

Содержание