2012年11月29日星期四

"地下铁路"邀请码


邀请他人加入"地下铁路",请让受邀人本人以邀请码(邀请码通常是随机字符串)为标题, 用gmail,microsoft或yahoo的邮箱,寄电子邮件到 dixiatielu.net@gmail.com 即可。

在公开论坛发放邀请码时,请确认受邀人后,用私信传递邀请码和账户开通方法。 这样你可以对受邀人有所选择,并且保护服务器的私密。
现 有 的 邀 请 码 (5)
欢迎加入“地下铁路”网络
将更多人带领到自由的互联网

任何时候,你都可以以 [referral] 为标题 , 寄回邮件来查询你的邀请码明细表。

邀请他人加入"地下铁路",请让受邀人本人以邀请码(邀请码通常是随机字符串)为标题, 用gmail,microsoft或yahoo的邮箱,寄电子邮件到 dixiatielu.net@gmail.com 即可。

在公开论坛发放邀请码时,请确认受邀人后,用私信传递邀请码和账户开通方法。 这样你可以对受邀人有所选择,并且保护服务器的私密。
现 有 的 邀 请 码 (3)
邀请码

nosi!*bamonome

isek!*eteuohat

!*ritaumakusit

2012年11月26日星期一

wr941n等TP-link系列路由器从DD-wrt刷回官方原厂固件的方法

本人wr941nd路由器刷了DD固件后无线很不稳定,所以决定刷回官方固件.
1下载固件.以下文件全部打包
TP-Link WA901N/ND v1
TP-Link WA901N/ND v2
TP-Link WR740N v1 and v2
TP-Link WR741N/ND v1 and v2
TP-Link WR841N/ND v3
TP-Link WR841N/ND v5
TP-Link WR841N/ND v7
TP-Link WR941N/ND v2 and v3
TP-Link WR941N/ND v4
TP-Link WR1043N/ND v1
Airlive WLA-9000AP
Linksys WRT400N
https://skydrive.live.com/redir?resid=728B25430F46D7C2!237&authkey=!AKUvF4Iv1KijNTw
2 打开DD-wrt固件升级页面.选择对应的固件点升级.
这时升级的是英文版,再到tp-link官方就可以找到中文版,如果你是941nd,就可以
直接在这个链接里下载繁体中文版.http://www.tp-link.tw/support/download/?model=TL-WR941ND&version=V3
参考DD论坛
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=85237
--
yiyi <hdp5252@gmail.com>

2012年11月13日星期二

googleIP与域名对照表

173.194.69.129=[uberproxy.corp.google.com, *.corp.google.com, *.corp.googleusercontent.com, *.googleplex.com]
173.194.69.176=[*.vp.video.l.google.com]
173.194.69.199=[google.com, *.google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com, *.google.ac, *.google.ad, *.google.ae, *.google.af, *.google.ag, *.google.al, *.google.am, *.google.as, *.google.at, *.google.az, *.google.ba, *.google.be, *.google.bf, *.google.bg, *.google.bi, *.google.bj, *.google.bs, *.google.by, *.google.ca, *.google.cat, *.google.cc, *.google.cd, *.google.cf, *.google.cg, *.google.ch, *.google.ci, *.google.cl, *.google.cm, *.google.cn, *.google.co.ao, *.google.co.bw, *.google.co.ck, *.google.co.cr, *.google.co.hu, *.google.co.id, *.google.co.il, *.google.co.im, *.google.co.in, *.google.co.je, *.google.co.jp, *.google.co.ke, *.google.co.kr, *.google.co.ls, *.google.co.ma, *.google.co.mz, *.google.co.nz, *.google.co.th, *.google.co.tz, *.google.co.ug, *.google.co.uk, *.google.co.uz, *.google.co.ve, *.google.co.vi, *.google.co.za, *.google.co.zm, *.google.co.zw, *.google.com.af, *.google.com.ag, *.google.com.ai, *.google.com.ar, *.google.com.au, *.google.com.bd, *.google.com.bh, *.google.com.bn, *.google.com.bo, *.google.com.br, *.google.com.by, *.google.com.bz, *.google.com.cn, *.google.com.co, *.google.com.cu, *.google.com.cy, *.google.com.do, *.google.com.ec, *.google.com.eg, *.google.com.et, *.google.com.fj, *.google.com.ge, *.google.com.gh, *.google.com.gi, *.google.com.gr, *.google.com.gt, *.google.com.hk, *.google.com.iq, *.google.com.jm, *.google.com.jo, *.google.com.kh, *.google.com.kw, *.google.com.lb, *.google.com.ly, *.google.com.mt, *.google.com.mx, *.google.com.my, *.google.com.na, *.google.com.nf, *.google.com.ng, *.google.com.ni, *.google.com.np, *.google.com.nr, *.google.com.om, *.google.com.pa, *.google.com.pe, *.google.com.ph, *.google.com.pk, *.google.com.pl, *.google.com.pr, *.google.com.py, *.google.com.qa, *.google.com.ru, *.google.com.sa, *.google.com.sb, *.google.com.sg, *.google.com.sl, *.google.com.sv, *.google.com.tj, *.google.com.tn, *.google.com.tr, *.google.com.tw, *.google.com.ua, *.google.com.uy, *.google.com.vc, *.google.com.ve, *.google.com.vn, *.google.cv, *.google.cz, *.google.de, *.google.dj, *.google.dk, *.google.dm, *.google.dz, *.google.ee, *.google.es, *.google.fi, *.google.fm, *.google.fr, *.google.ga, *.google.ge, *.google.gg, *.google.gl, *.google.gm, *.google.gp, *.google.gr, *.google.gy, *.google.hk, *.google.hn, *.google.hr, *.google.ht, *.google.hu, *.google.ie, *.google.im, *.google.info, *.google.iq, *.google.is, *.google.it, *.google.it.ao, *.google.je, *.google.jo, *.google.jobs, *.google.jp, *.google.kg, *.google.ki, *.google.kz, *.google.la, *.google.li, *.google.lk, *.google.lt, *.google.lu, *.google.lv, *.google.md, *.google.me, *.google.mg, *.google.mk, *.google.ml, *.google.mn, *.google.ms, *.google.mu, *.google.mv, *.google.mw, *.google.ne, *.google.ne.jp, *.google.net, *.google.nl, *.google.no, *.google.nr, *.google.nu, *.google.off.ai, *.google.pk, *.google.pl, *.google.pn, *.google.ps, *.google.pt, *.google.ro, *.google.rs, *.google.ru, *.google.rw, *.google.sc, *.google.se, *.google.sh, *.google.si, *.google.sk, *.google.sm, *.google.sn, *.google.so, *.google.st, *.google.td, *.google.tg, *.google.tk, *.google.tl, *.google.tm, *.google.tn, *.google.to, *.google.tp, *.google.tt, *.google.us, *.google.uz, *.google.vg, *.google.vu, *.google.ws, google.ac, google.ad, google.ae, google.af, google.ag, google.al, google.am, google.as, google.at, google.az, google.ba, google.be, google.bf, google.bg, google.bi, google.bj, google.bs, google.by, google.ca, google.cat, google.cc, google.cd, google.cf, google.cg, google.ch, google.ci, google.cl, google.cm, google.cn, google.co.ao, google.co.bw, google.co.ck, google.co.cr, google.co.hu, google.co.id, google.co.il, google.co.im, google.co.in, google.co.je, google.co.jp, google.co.ke, google.co.kr, google.co.ls, google.co.ma, google.co.mz, google.co.nz, google.co.th, google.co.tz, google.co.ug, google.co.uk, google.co.uz, google.co.ve, google.co.vi, google.co.za, google.co.zm, google.co.zw, google.com.af, google.com.ag, google.com.ai, google.com.ar, google.com.au, google.com.bd, google.com.bh, google.com.bn, google.com.bo, google.com.br, google.com.by, google.com.bz, google.com.cn, google.com.co, google.com.cu, google.com.cy, google.com.do, google.com.ec, google.com.eg, google.com.et, google.com.fj, google.com.ge, google.com.gh, google.com.gi, google.com.gr, google.com.gt, google.com.hk, google.com.iq, google.com.jm, google.com.jo, google.com.kh, google.com.kw, google.com.lb, google.com.ly, google.com.mt, google.com.mx, google.com.my, google.com.na, google.com.nf, google.com.ng, google.com.ni, google.com.np, google.com.nr, google.com.om, google.com.pa, google.com.pe, google.com.ph, google.com.pk, google.com.pl, google.com.pr, google.com.py, google.com.qa, google.com.ru, google.com.sa, google.com.sb, google.com.sg, google.com.sl, google.com.sv, google.com.tj, google.com.tn, google.com.tr, google.com.tw, google.com.ua, google.com.uy, google.com.vc, google.com.ve, google.com.vn, google.cv, google.cz, google.de, google.dj, google.dk, google.dm, google.dz, google.ee, google.es, google.fi, google.fm, google.fr, google.ga, google.ge, google.gg, google.gl, google.gm, google.gp, google.gr, google.gy, google.hk, google.hn, google.hr, google.ht, google.hu, google.ie, google.im, google.info, google.iq, google.is, google.it, google.it.ao, google.je, google.jo, google.jobs, google.jp, google.kg, google.ki, google.kz, google.la, google.li, google.lk, google.lt, google.lu, google.lv, google.md, google.me, google.mg, google.mk, google.ml, google.mn, google.ms, google.mu, google.mv, google.mw, google.ne, google.ne.jp, google.net, google.nl, google.no, google.nr, google.nu, google.off.ai, google.pk, google.pl, google.pn, google.ps, google.pt, google.ro, google.rs, google.ru, google.rw, google.sc, google.se, google.sh, google.si, google.sk, google.sm, google.sn, google.so, google.st, google.td, google.tg, google.tk, google.tl, google.tm, google.tn, google.to, google.tp, google.tt, google.us, google.uz, google.vg, google.vu, google.ws]
173.194.69.193=[m.google.com]
173.194.69.191=[*.blogger.com, blogger.com, *.blogblog.com, blogblog.com]
173.194.69.190=[*.google.com, google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.google.com.br, *.google.co.in, *.google.es, *.google.co.uk, *.google.ca, *.google.fr, *.google.pt, *.google.it, *.google.de, *.google.cl, *.google.pl, *.google.nl, *.google.com.au, *.google.co.jp, *.google.hu, *.google.com.mx, *.google.com.ar, *.google.com.co, *.google.com.vn, *.google.com.tr, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com]
173.194.69.167=[*.googleadservices.com, googleadservices.com]
173.194.69.149=[*.doubleclick.net, doubleclick.net, *.au.doubleclick.net, *.jp.doubleclick.net, *.fr.doubleclick.net, *.uk.doubleclick.net, *.de.doubleclick.net, *.cc-dt.com, *.doubleclick.com, ad.mo.doubleclick.net, *.fls.doubleclick.net]
173.194.69.165=[*.googleadservices.com, googleadservices.com]
173.194.69.147=[www.google.com]
173.194.69.166=[*.googleadservices.com, googleadservices.com]
173.194.69.148=[*.doubleclick.net, doubleclick.net, *.au.doubleclick.net, *.jp.doubleclick.net, *.fr.doubleclick.net, *.uk.doubleclick.net, *.de.doubleclick.net, *.cc-dt.com, *.doubleclick.com, ad.mo.doubleclick.net, *.fls.doubleclick.net]
173.194.69.145=[*.fr.doubleclick.net, fr.doubleclick.net]
173.194.69.120=[*.gstatic.com, gstatic.com, *.metric.gstatic.com]
173.194.69.146=[*.jp.doubleclick.net, jp.doubleclick.net]
173.194.69.143=[*.de.doubleclick.net, de.doubleclick.net]
173.194.69.144=[*.uk.doubleclick.net, uk.doubleclick.net]
173.194.69.106=[www.google.com]
173.194.69.141=[.appspot.com, *..appspot.com, appspot.com, *.withgoogle.com, withgoogle.com]
173.194.69.105=[www.google.com]
173.194.69.123=[wifi.google.com]
173.194.69.142=[*.au.doubleclick.net, au.doubleclick.net, *.jp.doubleclick.net, jp.doubleclick.net, *.fr.doubleclick.net, fr.doubleclick.net, *.uk.doubleclick.net, uk.doubleclick.net]
173.194.69.104=[www.google.com]
173.194.69.103=[www.google.com]
173.194.69.102=[*.google.com, google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.google.com.br, *.google.co.in, *.google.es, *.google.co.uk, *.google.ca, *.google.fr, *.google.pt, *.google.it, *.google.de, *.google.cl, *.google.pl, *.google.nl, *.google.com.au, *.google.co.jp, *.google.hu, *.google.com.mx, *.google.com.ar, *.google.com.co, *.google.com.vn, *.google.com.tr, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com]
173.194.69.164=[*.googleadservices.com, googleadservices.com]
173.194.69.101=[*.google.com, google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.google.com.br, *.google.co.in, *.google.es, *.google.co.uk, *.google.ca, *.google.fr, *.google.pt, *.google.it, *.google.de, *.google.cl, *.google.pl, *.google.nl, *.google.com.au, *.google.co.jp, *.google.hu, *.google.com.mx, *.google.com.ar, *.google.com.co, *.google.com.vn, *.google.com.tr, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com]
173.194.69.100=[*.google.com, google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.google.com.br, *.google.co.in, *.google.es, *.google.co.uk, *.google.ca, *.google.fr, *.google.pt, *.google.it, *.google.de, *.google.cl, *.google.pl, *.google.nl, *.google.com.au, *.google.co.jp, *.google.hu, *.google.com.mx, *.google.com.ar, *.google.com.co, *.google.com.vn, *.google.com.tr, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com]
173.194.69.125=[talk.google.com]
173.194.69.118=[*.google.com, google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.google.com.br, *.google.co.in, *.google.es, *.google.co.uk, *.google.ca, *.google.fr, *.google.pt, *.google.it, *.google.de, *.google.cl, *.google.pl, *.google.nl, *.google.com.au, *.google.co.jp, *.google.hu, *.google.com.mx, *.google.com.ar, *.google.com.co, *.google.com.vn, *.google.com.tr, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com]
173.194.69.154=[*.g.doubleclick.net, g.doubleclick.net, googletagservices.com, *.googletagservices.com, googleadservices.com, *.googleadservices.com, googlesyndication.com, *.googlesyndication.com, media.admob.com]
173.194.69.136=[*.google.com, google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.google.com.br, *.google.co.in, *.google.es, *.google.co.uk, *.google.ca, *.google.fr, *.google.pt, *.google.it, *.google.de, *.google.cl, *.google.pl, *.google.nl, *.google.com.au, *.google.co.jp, *.google.hu, *.google.com.mx, *.google.com.ar, *.google.com.co, *.google.com.vn, *.google.com.tr, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com]
173.194.69.155=[*.g.doubleclick.net, g.doubleclick.net, googletagservices.com, *.googletagservices.com, googleadservices.com, *.googleadservices.com, googlesyndication.com, *.googlesyndication.com, media.admob.com]
173.194.69.137=[*.googlegroups.com, googlegroups.com]
173.194.69.251=[*.google.com, google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.google.com.br, *.google.co.in, *.google.es, *.google.co.uk, *.google.ca, *.google.fr, *.google.pt, *.google.it, *.google.de, *.google.cl, *.google.pl, *.google.nl, *.google.com.au, *.google.co.jp, *.google.hu, *.google.com.mx, *.google.com.ar, *.google.com.co, *.google.com.vn, *.google.com.tr, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com]
173.194.69.156=[*.g.doubleclick.net, g.doubleclick.net, googletagservices.com, *.googletagservices.com, googleadservices.com, *.googleadservices.com, googlesyndication.com, *.googlesyndication.com, media.admob.com]
173.194.69.138=[*.google.com, google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.google.com.br, *.google.co.in, *.google.es, *.google.co.uk, *.google.ca, *.google.fr, *.google.pt, *.google.it, *.google.de, *.google.cl, *.google.pl, *.google.nl, *.google.com.au, *.google.co.jp, *.google.hu, *.google.com.mx, *.google.com.ar, *.google.com.co, *.google.com.vn, *.google.com.tr, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com]
173.194.69.157=[*.g.doubleclick.net, g.doubleclick.net, googletagservices.com, *.googletagservices.com, googleadservices.com, *.googleadservices.com, googlesyndication.com, *.googlesyndication.com, media.admob.com]
173.194.69.139=[*.google.com, google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.google.com.br, *.google.co.in, *.google.es, *.google.co.uk, *.google.ca, *.google.fr, *.google.pt, *.google.it, *.google.de, *.google.cl, *.google.pl, *.google.nl, *.google.com.au, *.google.co.jp, *.google.hu, *.google.com.mx, *.google.com.ar, *.google.com.co, *.google.com.vn, *.google.com.tr, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com]
173.194.69.132=[*.googleusercontent.com, googleusercontent.com, *.commondatastorage.googleapis.com, commondatastorage.googleapis.com, *.ggpht.com, ggpht.com, *.googlesyndication.com, *.blogspot.com, blogspot.com, *.doubleclickusercontent.com, doubleclickusercontent.com, *.storage.googleapis.com, storage.googleapis.com, static.panoramio.com.storage.googleapis.com]
173.194.69.211=[*.ext.google.com, ext.google.com]
173.194.69.113=[*.google.com, google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.google.com.br, *.google.co.in, *.google.es, *.google.co.uk, *.google.ca, *.google.fr, *.google.pt, *.google.it, *.google.de, *.google.cl, *.google.pl, *.google.nl, *.google.com.au, *.google.co.jp, *.google.hu, *.google.com.mx, *.google.com.ar, *.google.com.co, *.google.com.vn, *.google.com.tr, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com]
173.194.69.112=[adwords.google.com, adwords.google.ae, adwords.google.at, adwords.google.be, adwords.google.ca, adwords.google.ch, adwords.google.cn, adwords.google.co.il, adwords.google.co.in, adwords.google.co.jp, adwords.google.co.kr, adwords.google.co.nz, adwords.google.co.th, adwords.google.co.uk, adwords.google.co.ve, adwords.google.co.za, adwords.google.com.ar, adwords.google.com.au, adwords.google.com.br, adwords.google.com.cn, adwords.google.com.gr, adwords.google.com.hk, adwords.google.com.ly, adwords.google.com.mx, adwords.google.com.my, adwords.google.com.pe, adwords.google.com.ph, adwords.google.com.pk, adwords.google.com.ru, adwords.google.com.sg, adwords.google.com.tr, adwords.google.com.tw, adwords.google.com.ua, adwords.google.com.vn, adwords.google.cv, adwords.google.cz, adwords.google.de, adwords.google.dk, adwords.google.es, adwords.google.fi, adwords.google.fr, adwords.google.hu, adwords.google.it, adwords.google.lt, adwords.google.lv, adwords.google.nl, adwords.google.no, adwords.google.pl, adwords.google.pt, adwords.google.ro, adwords.google.ru, adwords.google.se, adwords.google.sk, admob.com, *.admob.com, admob.biz, *.admob.biz, admob.co.in, *.admob.co.in, admob.co.kr, *.admob.co.kr, admob.co.nz, *.admob.co.nz, admob.co.uk, *.admob.co.uk, admob.co.za, *.admob.co.za, admob.com.br, *.admob.com.br, admob.com.es, *.admob.com.es, admob.com.fr, *.admob.com.fr, admob.com.mx, *.admob.com.mx, admob.com.pt, *.admob.com.pt, admob.de, *.admob.de, admob.dk, *.admob.dk, admob.es, *.admob.es, admob.fi, *.admob.fi, admob.fr, *.admob.fr, admob.gr, *.admob.gr, admob.hk, *.admob.hk, admob.ie, *.admob.ie, admob.in, *.admob.in, admob.it, *.admob.it, admob.jp, *.admob.jp, admob.kr, *.admob.kr, admob.mobi, *.admob.mobi, admob.no, *.admob.no, admob.ph, *.admob.ph, admob.pt, *.admob.pt, admob.sg, *.admob.sg, admob.tw, *.admob.tw, admob.us, *.admob.us, admob.vn, *.admob.vn]
173.194.69.115=[checkout.google.com]
173.194.69.114=[*.google.com, google.com, *.youtube.com, youtube.com, *.youtube-nocookie.com, youtu.be, *.ytimg.com, *.google.com.br, *.google.co.in, *.google.es, *.google.co.uk, *.google.ca, *.google.fr, *.google.pt, *.google.it, *.google.de, *.google.cl, *.google.pl, *.google.nl, *.google.com.au, *.google.co.jp, *.google.hu, *.google.com.mx, *.google.com.ar, *.google.com.co, *.google.com.vn, *.google.com.tr, *.android.com, android.com, *.googlecommerce.com, googlecommerce.com, *.url.google.com, *.urchin.com, urchin.com, *.google-analytics.com, google-analytics.com, *.cloud.google.com, goo.gl, g.co, *.gstatic.com, *.googleapis.cn, *.appengine.google.com]
173.194.69.152=[tpc.googlesyndication.com]
173.194.69.117=[upload.video.google.com, *.docs.google.com, *.googleapis.com, upload.youtube.com, *.gdata.youtube.com, uploads.stage.gdata.youtube.com, *.youtube-3rd-party.com, *.drive.google.com, *.clients.google.com, *.upload.google.com, upload.google.com]
173.194.69.116=[upload.video.google.com, *.docs.google.com, *.googleapis.com, upload.youtube.com, *.gdata.youtube.com, uploads.stage.gdata.youtube.com, *.youtube-3rd-party.com, *.drive.google.com, *.clients.google.com, *.upload.google.com, upload.google.com]

--

2012年11月7日星期三

配置samba服务器

以前我们在windows上共享文件的话,只需右击要共享的文件夹然后选择共享相关的选项设置即可。然而如何实现windows和linux的文件共享呢?这就涉及到了samba服务了,这个软件配置起来也不难,使用也非常简单。
 
【samba配置文件smb.conf】
一般你装系统的时候会默认安装samba,如果没有安装,只需要运行这个命令安装(CentOS):
"yum install -y samba samba-client"
Samba的配置文件为/etc/samba/smb.conf,通过修改这个配置文件来完成我们的各种需求。打开这个配置文件,你会发现很多内容都用"#"或者";"注视掉了。先看一下未被注释掉的部分:
[global]
        workgroup = MYGROUP
        server string = Samba Server Version %v
        security = user
        passdb backend = tdbsam
        load printers = yes
        cups options = raw
[homes]
        comment = Home Directories
        browseable = no
        writable = yes
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes
主要有以上三个部分:[global], [homes], [printers]。
 
[global] 定义全局的配置,"workgroup"用来定义工作组,相信如果你安装过windows的系统,你会对这个workgroup不陌生。一般情况下,需要我们把这里的"MYGROUP"改成"WORKGROUP"(windows默认的工作组名字)。
security = user #这里指定samba的安全等级。关于安全等级有四种:
share:用户不需要账户及密码即可登录samba服务器
user:由提供服务的samba服务器负责检查账户及密码(默认)
server:检查账户及密码的工作由另一台windows或samba服务器负责
domain:指定windows域控制服务器来验证用户的账户及密码。
passdb backend = tdbsam  # passdb backend (用户后台),samba有三种用户后台:smbpasswd, tdbsam和ldapsam.
smbpasswd:该方式是使用smb工具smbpasswd给系统用户(真实用户或者虚拟用户)设置一个Samba 密码,客户端就用此密码访问Samba资源。smbpasswd在/etc/samba中,有时需要手工创建该文件。
tdbsam:使用数据库文件创建用户数据库。数据库文件叫passdb.tdb,在/etc/samba中。passdb.tdb用户数据库可使用smbpasswd �a创建Samba用户,要创建的Samba用户必须先是系统用户。也可使用pdbedit创建Samba账户。pdbedit参数很多,列出几个主要的:
pdbedit �a username:新建Samba账户。
pdbedit �x username:删除Samba账户。
pdbedit �L:列出Samba用户列表,读取passdb.tdb数据库文件。
pdbedit �Lv:列出Samba用户列表详细信息。
pdbedit �c "[D]" �u username:暂停该Samba用户账号。
pdbedit �c "[]" �u username:恢复该Samba用户账号。
ldapsam:基于LDAP账户管理方式验证用户。首先要建立LDAP服务,设置"passdb backend = ldapsam:ldap://LDAP Server"
load printers 和 cups options 两个参数用来设置打印机相关。
除了这些参数外,还有几个参数需要你了解:
netbios name = MYSERVER  # 设置出现在"网上邻居"中的主机名
hosts allow = 127.  192.168.12.  192.168.13. # 用来设置允许的主机,如果在前面加";"则表示允许所有主机
log file = /var/log/samba/%m.log #定义samba的日志,这里的%m是上面的netbios name
max log size = 50 # 指定日志的最大容量,单位是K
 
[homes] 该部分内容共享用户自己的家目录,也就是说,当用户登录到samba服务器上时实际上是进入到了该用户的家目录,用户登陆后,共享名不是homes而是用户自己的标识符,对于单纯的文件共享的环境来说,这部分可以注视掉。
 
[printers] 该部分内容设置打印机共享。
 
【samba实践】
注意:在试验之前,请先检测selinux是否关闭,否则可能会试验不成功。关于如何关闭selinux请查看第十五章 linux系统日常管理的"linux的防火墙"部分
 
1. 共享一个目录,任何人都可以访问,即不用输入密码即可访问,要求只读。
打开samba的配置文件/etc/samba/smb.conf
[global]部分
把"MY GROUP"改成"WORKGROUP"
把" security = user" 修改为 "security = share"
然后在文件的最末尾处加入以下内容:
[share]
        comment = share all
        path = /tmp/samba
        browseable = yes
        public = yes
        writable = no
 
mkdir /tmp/samba
chmod 777 /tmp/samba
启动samba服务
/etc/init.d/smb start
 
测试:
首先测试你配置的smb.conf是否正确,用下面的命令
testparm
如果没有错误,则在你的windows机器上的浏览器中输入 file://IP/share 看是否能访问
 
2. 共享一个目录,使用用户名和密码登录后才可以访问,要求可以读写
打开samba的配置文件/etc/samba/smb.conf
[global] 部分内容如下:
[global]
        workgroup = WORKGROUP
        server string = Samba Server Version %v
        security = user
        passdb backend = tdbsam
        load printers = yes
        cups options = raw
 
然后加入以下内容:
[myshare]
        comment = share for users
        path = /samba
        browseable = yes
        writable = yes
        public = no
 
保存配置文件,创建目录:
mkdir /samba
chmod 777 /samba
然后添加用户。因为在[globa]中" passdb backend = tdbsam",所以要使用" pdbedit" 来增加用户,注意添加的用户必须在系统中存在。
useradd  user1 user2
pdbedit -a user1  # 添加user1账号,并定义其密码
pdbedit -a user2
pdbedit -L # 列出所有的账号
测试:
打开IE浏览器输入file://IP/myshare/ 然后输入用户名和密码
 
3. 使用linux访问samba服务器
Samba服务在linux下同样可以访问。前提是你的linux安装了samba-client软件包。安装完后就可以使用smbclient命令了。
smbclient //IP/共享名  -U 用户名 
如:[root@localhost]# smbclient //10.0.4.67/myshare/ -U user1
Password:
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_6.2]
smb: \>
出现如上所示的界面。可以打一个"?"列出所有可以使用的命令。常用的有cd, ls, rm, pwd, tar, mkdir, chown, get, put等等,使用help + 命令可以打印该命令如何使用,其中get是下载,put是上传。
另外的方式就是通过mount挂载了:
如:
mount -t cifs //10.0.4.67/myshare /mnt -o username=user1,password=123456
格式就是这样,要指定-t cifs //IP/共享名 本地挂载点  -o后面跟username 和 password
挂载完后就可以像使用本地的目录一样使用共享的目录了。