###Install
opkg install lighttpd lighttpd-mod-cgi
###Configgure
修改/etc/lighttpd/lighttpd.conf
- 行
static-file.exclude-extensions = (".php", ".pl", ".fcgi")
改成static-file.exclude-extensions = (".php", ".pl", ".fcgi", ".lua")
###Install
opkg install lighttpd lighttpd-mod-cgi
###Configgure
修改/etc/lighttpd/lighttpd.conf
static-file.exclude-extensions = (".php", ".pl", ".fcgi")
改成static-file.exclude-extensions = (".php", ".pl", ".fcgi", ".lua")
#!/usr/bin/env python | |
#coding=utf-8 | |
# | |
# Openwrt Package Grabber | |
# | |
# Copyright (C) 2014 http://www.shuyz.com | |
# | |
import urllib2 | |
import re |
redsocks2是一款透明socks5代理工具,能够实现智能代理的功能,这里是redsocks2在OpenWrt上的配置,配合shadowsocks使用。
redsocks.conf 是配置文件,放在/etc目录,将192.168.1.1
改成路由器的地址.
redsocks2.sh 为自启动文件,改名为redsocks2放到/etc/init.d
目录即可。自启动文件假设redsocks可执行文件在/opt/bin
目录。
启动redsocks2: /etc/init.d/redsocks2 start
停止redsocks2: /etc/init.d/redsocks2 stop
#!/usr/bin/env python | |
#coding=utf-8 | |
# | |
# Generate a list of dnsmasq rules with ipset for gfwlist | |
# | |
# Copyright (C) 2014 http://www.shuyz.com | |
# Ref https://code.google.com/p/autoproxy-gfwlist/wiki/Rules | |
import urllib2 | |
import re |
opkg install kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-storage e2fsprogs fdisk usbutils mount-utils block-mount kmod-fs-ext4 kmod-fs-vfat kmod-nls-utf-8 kmod-nls-cp437 kmod-nls-iso8859-1
reboot
blkid
, run opkg update && opkg install blkid
;block.sh
to directory /lib/functions
;10-mount
and 20-swap
to directory /etc/hotplug.d/block
;logread -f
command then plug in a USB stick to test.[Interface] | |
Address = 10.200.200.3/32 | |
PrivateKey = [Client's private key] | |
DNS = 8.8.8.8 | |
[Peer] | |
PublicKey = [Server's public key] | |
PresharedKey = [Pre-shared key, same for server and client] | |
Endpoint = [Server Addr:Server Port] | |
AllowedIPs = 0.0.0.0/0 |