免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3063 | 回复: 2
打印 上一主题 下一主题

[proxy] 有谁用过frox?有它的原frox.conf文件吗? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-19 11:00 |只看该作者 |倒序浏览
有谁用过frox?我用的是0.7.18版本.请问有谁有它的原frox.conf文件吗?

论坛徽章:
0
2 [报告]
发表于 2006-08-20 19:29 |只看该作者
我在用,不过原始的配置文件你去官方应该能下载到吧。

论坛徽章:
0
3 [报告]
发表于 2006-10-12 10:04 |只看该作者
源代码中 src/frox.conf


  1. # Configuration file for frox transparent ftp-proxy.

  2. # Send SIGHUP after editing and it will be reread. This will fail
  3. # completely if we are chrooted and the config file isn't within the
  4. # dir we have chrooted to, or if we have dropped priveleges and no
  5. # longer have permission to read the config file! Some options cannot
  6. # be reread - namely those which require special privelidges (ie.
  7. # BindToDevice, Listen, Port, TransparentData) and the caching stuff.


  8. ####################################################################
  9. # Network Options                                                  #
  10. ####################################################################

  11. # Address to listen on - default is 0.0.0.0 If you are using an OS other
  12. # than Linux and are doing transparent proxying then you will need to set
  13. # this to the IP of a local interface. If using linux you could leave it
  14. # commented out to listen on all local IPs.
  15. #
  16. # Listen firewall.localnet
  17. Listen 192.168.2.1

  18. # Port to listen on. Must be supplied.
  19. #
  20. Port 2121

  21. # If specified then bind to this device
  22. #
  23. BindToDevice eth0

  24. # Whether to run from inetd. You should still define Port above, but
  25. # it isn't used for much.
  26. #
  27. # FromInetd yes

  28. # Stop frox from putting itself into the background. Use this if you want
  29. # to run frox from supervise from djb's daemontools
  30. #
  31. # NoDetach

  32. # A hack that should allow you to get away without putting resolver libraries
  33. # into the chroot jail. The default is fine unless for some reason you have
  34. # this hostname in /etc/hosts. If this sort of thing offends you, you may
  35. # comment this out and copy resolver libraries into the chroot jail instead.
  36. # See FAQ section 3.2 for details.
  37. #
  38. ResolvLoadHack wontresolve.doesntexist.abc

  39. # Another ftp proxy to forward on to. Frox will contact this ftp
  40. # proxy, and send it a login name of the form "user@host:port" where
  41. # host and port are the server frox should contact. If you set
  42. # FTPProxyNoPort then frox will send logins of the form user@host
  43. #
  44. # FTPProxy 192.168.2.9:2222
  45. # FTPProxyNoPort yes

  46. # Pick the IP frox should use for outgoing connections. You probably don't
  47. # need this, and it is not well tested.
  48. #
  49. # TcpOutgoingAddr

  50. # Pick the IP that frox should send in PASV replies to the client. Defaults
  51. # to the address frox received the control connection on which you shouldn't
  52. # need to change unless you are doing NAT between frox and your clients, or
  53. # are trying to tunnel connections using frox. See FAQ.
  54. #
  55. # PASVAddress

  56. ####################################################################
  57. # General Options                                                  #
  58. ####################################################################
  59. # User and group to drop priveliges to. This must be specified - if
  60. # you really want to run as root (not a good idea) you must say so
  61. # specifically, and have compiled with --enable-run-as-root.
  62. #
  63. # User nobody
  64. # Group nogroup

  65. # This is frox's working directory - it must be specified. Temporary
  66. # files and sockets will be created here. If you are using local
  67. # caching then the cache will be stored in this directory too. It
  68. # should be owned by frox with permissions 700. By default frox will
  69. # also chroot to this dir on startup. To avoid this you must specifically
  70. # set DontChroot to Yes.
  71. #
  72. # WorkingDir /usr/local/lib/frox
  73. # DontChroot Yes

  74. # Logging level. 0=No logging. 5=Critical errors only. 10= All errors.
  75. # 15=Errors, other important stuf. 20= Errors, connections, cache
  76. # hits/misses 25=Debug info including text of control session. By
  77. # default frox will log through syslog as facility daemon. If you want
  78. # frox to log to a file instead specify this in LogFile below. You may
  79. # set LogFile to "stderr" if you wish it to log there. XferLogging
  80. # defaults to on, and results in a one line log entry for each file
  81. # transferred irrespective of the log level. You can turn this off
  82. # below.
  83. #
  84. # LogLevel 15
  85. # LogFile /usr/local/lib/frox/frox-log
  86. # XferLogging no

  87. # File to store PID in. Default is not to. If this file is not within
  88. # the Chroot directory then it cannot be deleted on exit, but will
  89. # otherwise work fine.
  90. #
  91. PidFile /var/run/frox.pid


  92. ####################################################################
  93. # Ftp Protocol Options                                             #
  94. ####################################################################

  95. # Active --> Passive conversion. If set then all outgoing connections
  96. # from the proxy will be passive FTP, regardless of the type of the
  97. # connection coming in. This makes firewalling a lot easier. Defaults
  98. # to no.
  99. #
  100. # APConv yes

  101. # Passive --> Active conversion. If set then all outgoing connections
  102. # from the proxy will be active FTP, regardless of the type of the
  103. # connection coming in. Defaults to no.
  104. # DO NOT USE WITH APConv!
  105. #
  106. # PAConv yes

  107. # Block PORT commands asking data to be sent to ports<1024 and
  108. # prevent incoming control stream connections from port 20 to
  109. # help depend against ftp bounce attacks. Defaults to on.
  110. #
  111. BounceDefend yes

  112. # If true then only accept data connections from the hosts the control
  113. # connections are to. Breaks the rfc, and defaults to off.
  114. #
  115. # SameAddress yes

  116. # Normally frox strips out nonprintable characters from the control
  117. # stream. This makes buffer overflow attacks on clients/servers much more
  118. # difficult. If you download files that contain non english characters
  119. # this may cause you problems (especially for big charsets like Chines).
  120. # In that case turn on this option.
  121. #
  122. # AllowNonASCII yes

  123. # Try to transparently proxy the data connections as well. Not
  124. # necessary for most clients, and does increase security risks. N.V.
  125. # You probably do _NOT_ need this option. It increases the complexity
  126. # of what frox has to do, increases the difficulty of setting frox up
  127. # correctly, and increases potential security risks. This has nothing
  128. # to do with whether your clients will be transparently proxied. If
  129. # you still want to use this option then read README.transdata for
  130. # details.
  131. #
  132. # TransparentData yes

  133. # Specify ranges for local ports to use for outgoing connections and
  134. # for sending out in PORT commands. By default these are all between
  135. # 40000 and 50000, but you might want to split them up if you have
  136. # complicated firewalling rules.
  137. #
  138. # ControlPorts 40000-40999
  139. # PassivePorts 41000-41999
  140. # ActivePorts  42000-42999

  141. # SSL/AUTH support. Frox must have been linked to the openssl libraries.
  142. # This is currently experimental, and only tested against vsftpd
  143. #
  144. # UseSSL yes
  145. # DataSSL no

  146. ####################################################################
  147. # Caching Options                                                  #
  148. ####################################################################

  149. # Caching options. There should be at most one CacheModule line, and
  150. # Cache lines to give the options for that caching module. CacheModule
  151. # is HTTP (rewrites ftp requests as HTTP and sends them to a HTTP
  152. # proxy like squid), or local (cache files locally). The relevant
  153. # module needs to have been compiled in at compile time. See FAQ for
  154. # details. If there are no CacheModule lines then no caching will be
  155. # done. "CacheModule None" explicitly requests no caching, and is
  156. # useful to turn off caching within a subsection (below).
  157. #
  158. # CacheModule local
  159. # CacheSize 400
  160. #
  161. # CacheModule http
  162. # HTTPProxy 127.0.0.1:3128
  163. # MinCacheSize 65536
  164. # ForceHTTP no  # Set to yes to force http file retreiving even if
  165. #               # file is not cacheable
  166. #
  167. # StrictCaching no  # Read FAQ for details.
  168. # CacheOnFQDN yes   # Read FAQ for details.
  169. #
  170. # CacheAll no   # Set to yes to cache non anonymous ftp downloads

  171. # Virus scanning -- see FAQ
  172. #
  173. # VirusScanner '"/usr/bin/viruscan" "--option" "%s"'
  174. # VSOK 0
  175. # VSProgressMsgs 30


  176. ####################################################################
  177. # Access control                                                   #
  178. ####################################################################

  179. # Allow non-transparent proxying support. The user can connect
  180. # directly to frox, and give his username as user@host:port or
  181. # user@host. Defaults to no. NTPAddress gives the address to which
  182. # incoming connections must be addressed if the client is to be offered
  183. # non-transparent proxying. For most people using this it will be the same
  184. # as the Listen address above. If not given then all connections will be
  185. # offered non transparent proxying. If you are not using transparent
  186. # proxying at all then you should leave NTPAddress commented out.
  187. #
  188. # DoNTP yes
  189. # NTPAddress 192.168.2.1:2121

  190. # Number of seconds of no activity before closing session
  191. # Defaults to 300
  192. #
  193. # Timeout 300

  194. #Maximum number of processes to fork.
  195. #
  196. # MaxForks 0 # For debugging -- only one connection may be served.
  197. MaxForks 10

  198. # Maximum number of connections from a single host (IP address).
  199. MaxForksPerHost 4

  200. # Maximum number of bytes/second to be transferred over the data
  201. # connection for each client. MaxTransferRate limits downloads and
  202. # MaxUploadRate uploads. CacheDlRate is the rate for downloads of files
  203. # that are cached locally - if not set these files will be downloaded at
  204. # full speed.
  205. #
  206. # MaxTransferRate 4096
  207. # CacheDlRate 8192
  208. # MaxUploadRate 4096

  209. # Access control lists:
  210. # The format is: "ACL Allow|Deny SRC - DST [PORTS]"

  211. # SRC and DST may be in the form x.x.x.x, x.x.x.x/yy, x.x.x.x/y.y.y.y,
  212. # a dns name, or * to match everything.
  213. #
  214. # PORTS is a list of ports. If specified then the rule will only match
  215. # if the destination port of the connection is in this list. This is
  216. # likely only relevant if you are allowing non-transparent proxying of
  217. # ftp connections (ie. DoNTP is enabled above). Specifying * is equivalent
  218. # to not specifying anything - all ports will be matched
  219. #
  220. # Any connection that matches no rules will be denied. Since there are
  221. # no rules by default you'll need to add something to let any
  222. # connections happen at all (look at the last example if you are
  223. # feeling lazy/not bothered by security).
  224. #
  225. # # Examples:
  226. # # Allow local network to ftp to port 21 only, and block host ftp.evil
  227. # ACL Deny * - ftp.evil            
  228. # ACL Allow 192.168.0.0/255.255.0.0 - * 21
  229. #
  230. # # Allow local network to ftp anywhere except certain dodgy ports. Network
  231. # # admin's machine can ftp anywhere.
  232. # ACL Allow admin.localnet - *
  233. # ACL Deny * - * 1-20,22-1024,6000-6007,7100
  234. # ACL Allow 192.168.0.0/16 - * *
  235. #
  236. # # You don't really believe in this security stuff, and just want
  237. # # everything to work.
  238. ACL Allow * - *

  239. # Command control program: A bit like the idea of a squid redirector.
  240. # By default the old interface is used so as not to break existing
  241. # installations. The new interface is much more powerful, and is
  242. # reccommended for new scripts -- set UseOldCCP to false to use it.
  243. # See the FAQ for details.
  244. #
  245. # CCProgram /usr/local/lib/frox/bin/ccp
  246. # UseOldCCP no


  247. ####################################################################
  248. # Subsections                                                      #
  249. ####################################################################
  250. # Matching rules the same as ACLS. Only some options can be specified
  251. # in a subsection (currently the yes/no options, timeout, and caching
  252. # options).
  253. #
  254. # SubSection * - ftp.dodgy.server
  255. #  StrictCaching yes
  256. # EndSection
  257. #
  258. # SubSection * - 10.0.0.0/24 # A low latency high bandwidth connection
  259. #  MinCacheSize 4096
  260. # EndSection
  261. #
  262. # Subsection * - ftp.localnetwork
  263. # # To disable caching if it has been turned on in a parent section
  264. #  CacheModule None
  265. # EndSection
复制代码

[ 本帖最后由 黑夜编码人 于 2006-10-12 10:44 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP