sxd1988's recent timeline updates
sxd1988

sxd1988

V2EX member #87071, joined on 2014-12-17 11:37:30 +08:00
sxd1988's recent replies
Feb 4, 2015
Replied to a topic by Busy 问与答 浙江成肉鸡窝了?
如果开SSH的22端口,也是有若干的温州IP一直在尝试登陆
Jan 30, 2015
Replied to a topic by malaka 奇思妙想 想在 taobao 卖些程序员日用品-
感到一股莫名的悲哀
Jan 23, 2015
Replied to a topic by sxd1988 问与答 ipset 和 dnsmasq 不匹配怎么办?
发现一个更好的方式,就是在启动脚本里面添加
mount --bind /jffs/dnsmasq /usr/sbin/dnsmasq
然后
killall dnsmasq
dnsmasq会自动重启,重启以后就是JFFS里面的新版了

这样做替代了原有的dnsmasq,iptables也少了一条规则。
Jan 23, 2015
Replied to a topic by sxd1988 问与答 ipset 和 dnsmasq 不匹配怎么办?
@LazyZhu 果然是你说的这个问题,我的Tomato的linux是2.6.36,在dnsmasq的/src/ipset.c中有这样一句判断
old_kernel = (version < KERNEL_VERSION(2,6,32));
判定成新版本的ipset,可是tomato中用的还是旧的4.5版本的ipset,于是强制old_kernel = 1;重新编译。

在没办法替换原有的dnsmasq的情况下,只好把自己编译的dnsmasq放到jffs里面,然后在dnsmasq的配置文件中配置
port=60053
添加iptables规则
iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 60053

成功!
Jan 22, 2015
Replied to a topic by sxd1988 问与答 ipset 和 dnsmasq 不匹配怎么办?
@LazyZhu 我用的Tomato,编译好了DNSMasq,可是却不知道怎么替换掉原来的,提示是只读文件系统
Jan 22, 2015
Replied to a topic by sxd1988 问与答 ipset 和 dnsmasq 不匹配怎么办?
@LazyZhu 有可能,我的kernel版本2.6.36.4应该能用ipset-6.24吧?晚上回去试着编译一下。话说就算编译好了,可以替换系统里面原有的吗?
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1331 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 17:31 · PVG 01:31 · LAX 10:31 · JFK 13:31
♥ Do have faith in what you're doing.