Skip to content

Instantly share code, notes, and snippets.

View wen-long's full-sized avatar
☘️
wish to be lucky

wen-long

☘️
wish to be lucky
View GitHub Profile
@wen-long
wen-long / bomb.php
Created September 12, 2013 13:55 — forked from ninehills/bomb.php
<?php
$tel_no = $_GET['hm'];
$c = $_GET['c']?$_GET['c']:0;
$c++;
?>
<!DOCTYPE html>
<html>
<head>
<title>迷你轰炸台 - 短信炸弹 - BETA!</title>
<?php
a:link, a:visited, a:active {
color: #8e8d93;
-webkit-transition: all .15s;
-moz-transition: all .15s;
-ms-transition: all .15s;
-o-transition: all .15s;
transition: all .15s;
}
a.top:link, a.top:visited, a.top:active {
color: #000;
@wen-long
wen-long / menu.lst
Created December 8, 2013 14:02
正在使用的menu
fontfile /boot/fonts.gz
splashimage /boot/X.XPM.GZ
//color white/light-blue yellow/cyan light-gray/magenta white/light-red
default 0
timeout 3
title win8
rootnoverify (hd0,0)
chainloader +1 //同chainloader (hd1,0)+1
//title 直接从 hd0 的 MBR 启动
function FindProxyForURL(url, host) {
debugPAC ="";
debugPAC +="IP: " + myIpAddress();
debugPAC +=", Hostname: " + host;
if (isResolvable(host)) {resolvableHost = "True"} else {resolvableHost = "False"};
debugPAC +=", Host Resolvable: " + resolvableHost;
debugPAC +=", Hostname IP: " + dnsResolve(host);
if (isPlainHostName(host)) {plainHost = "True"} else {plainHost = "False"};
debugPAC +=", Plain Hostname: " + plainHost;
Windows Registry Editor Version 5.00
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\sublime]
@="Open Folder as Sublime Project"
"Icon"="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command]
@wen-long
wen-long / ss-redir 透明代理.md
Last active March 18, 2024 12:13
ss-redir 透明代理.md

##ss-redir 的 iptables 配置(透明代理)

透明代理指对客户端透明,客户端不需要进行任何设置就使用了网管设置的代理规则

创建 /etc/ss-redir.json 本地监听 7777 运行ss-redir -v -c /etc/ss-redir.json

iptables -t nat -N SHADOWSOCKS
# 在 nat 表中创建新链
iptables -t nat -A SHADOWSOCKS -p tcp --dport 23596 -j RETURN
# 23596 是 ss 代理服务器的端口,即远程 shadowsocks 服务器提供服务的端口,如果你有多个 ip 可用,但端口一致,就设置这个
@wen-long
wen-long / openwrt redsock透明代理(用shadowsocks).md
Last active April 24, 2018 01:17
ss-redir已经支持透明代理,本文没用了,不要参考

话说ss-redir提供透明代理的功能,redsock不是必需

####shadowsocks配置不多说 假设本路由器 ss-loacl 正常运行,端口为 9900 ####修改redsock 配置文件/etc/redsocks.conf redsocks 下

local_ip = 127.0.0.1;
local_port = 12345;

####polipo 是一个轻量级的跨平台代理服务器。可以实现HTTP和SOCKS代理 polipo 配置文件在 etc/config/polipo 会按照上面的文件修改/var/etc.polipo.conf

不要在 openwrt 网页控制界面修改 polipo 的设置(socks5代理无法设置) ####以下示例中

  • socksParentProxy是上级代理ip,端口
  • socksProxyType是上级代理类型
  • proxyAddress是监听的ip
  • allowedClients是允许ip范围

vsftpd 配置文件在 /etc/vsftpd.conf 建议增加 local_root=/ 使可以通过 ftp 访问所有目录

dnsmasq的配置文件由/etc/config/dhcp决定 ####禁用 dnsmasq 的 DNS 功能 在该文件 config dnsmasq下添加

option port 54

如果你的 WAN 口是 PPPOE 等方式连接,而且系统日志中有 DHCP packet received on eth0.2 which has no address 就再添加