LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1181|回复: 0

问一个傻问题,如何配置dante的配置文件中的rules部分

[复制链接]
发表于 2005-4-26 17:07:58 | 显示全部楼层 |阅读模式
前面的server都没问题
rules就郁闷了
比如example中的sockd-basic.conf
如下:
## general configuration (taken from FAQ; <URL:http://www.inet.no/dante/FAQ>)
#internal: fxp0 port = 1080
#external: fxp1
#method: username none
##user.privileged: root
#user.notprivileged: sockd
#logoutput: stderr
## client access rules
#client pass {
#        from: 10.1.1.0/24 to: 0.0.0.0/0 #internal network
#        log: connect disconnect
#}
## server operation access rules
#allow bind to ports greater than 1023
#pass {
#        from: 0.0.0.0/0 to: 0.0.0.0/0 port gt 1023
#        command: bind
#        log: connect disconnect
#}
#allow outgoing connections (tcp and udp)
#pass {
#        from: 0.0.0.0/0 to: 0.0.0.0/0
#        command: connect udpassociate
#        log: connect disconnect
#}
#allow replies to bind, and incoming udp packets
#pass {
#       from: 0.0.0.0/0 to: 0.0.0.0/0
#       command: bindreply udpreply
#       log: connect error
#}
#log the rest
#block {
#       from: 0.0.0.0/0 to: 0.0.0.0/0
#       log: connect error
#}

这样我要设置只有局域网内ip为10.0.7.182的可以使用我的代理的话,应该如何设置啊,这其中的from to我都改过了,怎么都没什么效果,另外0.0.0.0/0后面这个“/0”是什么?[/coloe]
又麻烦各位达人了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表