This file contains 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/sh | |
#create a new chain named SHADOWSOCKS | |
iptables -t nat -N SHADOWSOCKS | |
# Ignore your shadowsocks server's addresses | |
# It's very IMPORTANT, just be careful. | |
iptables -t nat -A SHADOWSOCKS -d 163.44.132.189/32 -j RETURN | |
iptables -t nat -A SHADOWSOCKS -d 0.0.0.0/8 -j RETURN |
This file contains 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
#!/usr/bin/env bash | |
#encoding=utf8 | |
rootpath="/root" | |
openwrtpath=$rootpath"/files/openwrt/OpenWrt-SDK-15.05.1-ar71xx-nand_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/" | |
cd $rootpath | |
date | |
function Updatemotd(){ | |
apt update 2>&1 | sed -n '$p' > /etc/motd | |
RESULT=`certbot renew | grep "No renewals were attempted."` | |
if [ "$RESULT" == "No renewals were attempted." ] |