Skip to content

Instantly share code, notes, and snippets.

@lamengao
lamengao / vpnup_custom
Last active December 20, 2015 22:18
vpnup_custom file for autoddvpn
# this script will be executed after loading the routing rules in vpnup.sh
# current vpngw: 172.10.253.1
# Example:
# route add -host 208.67.222.222 gw $VPNGW
# route add -net 74.125.0.0/16 gw $VPNGW
route add -net 31.13.0.0/16 gw $VPNGW
route add -net 61.238.0.0/16 gw $VPNGW
route add -host 184.154.128.246 gw $VPNGW
route add -host 173.255.115.197 gw $VPNGW
@lamengao
lamengao / gist:1560715
Created January 4, 2012 16:08
dl.cuoluo.me nginx config
server {
listen 80;
server_name dl.cuoluo.me;
location / {
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://dl.dropbox.com/u/1812807/dl.cuoluo.me/index.html;
if ($request_method = POST) {