Skip to content

Instantly share code, notes, and snippets.

View isjerryxiao's full-sized avatar
⛑️
moving bricks

Jerry Xiao isjerryxiao

⛑️
moving bricks
View GitHub Profile
@isjerryxiao
isjerryxiao / rateat
Created December 20, 2016 09:38 — forked from reee/rateat
Redirect All Traffic Except Asia Traffic
#!/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
#!/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." ]