ok,第一步当然是先安装啦(使用的系统为Debian)~

1
apt-get install dante-server

然后,就可以开始进行设置了…
因为个人懒得设太多限制,所以设成了可以匿名访问,编辑 dante 的配置文件

1
vi /etc/danted.conf

加入

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
internal: eth0 port = 1080 
external: ppp0 
method: username none 
user.notprivileged: nobody 
logoutput: /var/log/danted.log #log save as /var/log/danted.log 
 
client pass { 
from: 0.0.0.0/0 to: 0.0.0.0/0 
log: connect disconnect 
} 
pass { 
from: 0.0.0.0/0 to: 0.0.0.0/0 port gt 1023 
command: bind 
log: connect disconnect 
} 
pass { 
from: 0.0.0.0/0 to: 0.0.0.0/0 
command: connect udpassociate 
log: connect disconnect 
} 
block { 
from: 0.0.0.0/0 to: 0.0.0.0/0 
log: connect error 
}

保存后重新启动 dante 服务即可

#/etc/init.d/danted restart

到了这步,一个简单的匿名连接 socks5 服务器就架设好了.
如果想多加些限制,可以继续修改 danted.conf 文件,或者修改 iptables…反正我是懒得继续折腾了…

Tags: , ,

在 Mozilla 的安装目录 chrome 下建立

1
2
3
4
5
6
7
8
9
10
11
12
13
chrome/
  xfly/
    content/
      xfly.xul
      xfly.js
      contents.rdf
    locale/
      en-US/
        xfly.dtd
        contents.rdf
    skin/
      xfly.css
      contents.rdf

下面是各个文件的内容:
content
xfly.xul :

?Download xfly.xul
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
< ?xml version="1.0"?>
< ?xml-stylesheet href="chrome://global/skin" type="text/css"?>
< ?xml-stylesheet href="chrome://xfly/skin" type="text/css"?>
< !DOCTYPE window SYSTEM "chrome://xfly/locale/xfly.dtd" >
<window title="Hello xFly"
  xmlns:html="http://www.w3.org/1999/xhtml"
  width="300"
  height="215"
  onload="centerWindowOnScreen( )">
<script type="application/x-javascript"   
  src="chrome://global/content/dialogOverlay.js" />
<script type="application/x-javascript"   
  src="chrome://xfly/content/xfly.js" />
 <vbox align="left" id="vb">
  <label id="xlabel" 
      value="&label.val;" />
  <image src="http://books.mozdev.org/xfly.gif" />
  <button label="&btn.lbl;" oncommand="greet( );" />
 </vbox>
</window>

Read the rest of this entry »

Tags: