This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
server_IP=123.45.67.89 | |
[ -r chnroute.txt ] || curl 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | grep ipv4 | grep CN | awk -F\| '{ printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > chnroute.txt | |
sudo iptables -t nat -N SHADOWSOCKS | |
sudo iptables -t nat -A PREROUTING -s 10.8.0.0/24 -p tcp -j SHADOWSOCKS | |
sudo iptables -t nat -A PREROUTING -s 10.8.0.0/24 -p udp -j SHADOWSOCKS | |
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<!-- 设备定义 --> | |
<devicevendordef> | |
<vendorname>FILCO</vendorname> | |
<vendorid>0x0a5c</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>MINILA_KEYBOARD</productname> |
NewerOlder