User Tools

Site Tools


сервис_ftp_proxy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
сервис_ftp_proxy [2009/03/30 13:13]
val
сервис_ftp_proxy [2009/06/22 15:24]
val
Line 1: Line 1:
 ====== Сервис FTP Proxy ====== ====== Сервис FTP Proxy ======
 <​code>​ <​code>​
-[gX:~] # cat /etc/inetd.conf+[gate:~] # cd /usr/ports/​ftp/​frox/​ 
 + 
 +[gate:​ports/​ftp/​frox] # make config 
 ... ...
-ftp-proxy ​      ​stream ​ tcp     ​nowait ​ root    /​usr/​libexec/​ftp-proxy ​ ftp-proxy+ PF [X]
 ... ...
  
-[gX:~] # /​etc/​rc.d/​inetd reload+[gate:ports/​ftp/​frox] # make install clean
  
-[gX:~] # cat /​etc/​pf.conf+[gate:~] # cp /​usr/​local/​share/​examples/​frox/​frox.conf /​usr/​local/​etc/​ 
 + 
 +[gate:~] # rcsdiff /​usr/​local/​etc/​frox.conf 
 +22c22 
 +< Listen 192.168.2.1 
 +--- 
 +> Listen 192.168.X.1 
 +97c97 
 +< # LogFile /​usr/​local/​lib/​frox/​frox-log 
 +--- 
 +> LogFile /​val/​log/​frox-log 
 +186,​187c186,​187 
 +< # CacheModule http 
 +< # HTTPProxy 127.0.0.1:​3128 
 +--- 
 +> CacheModule http 
 +> HTTPProxy 127.0.0.1:​3128 
 + 
 +[gate:~] # cat /​etc/​pf.conf 
 +... 
 +rdr proto tcp from 192.168.13/​24 to any port 21 -> 192.168.X.1 port 2121
 ... ...
-rdr proto tcp from $int_net to !<​corp_nets>​ port 21 -> 127.0.0.1 port 8021 
  
-[gX:~] # /etc/rc.d/pf reload+[gate:~] # rcsdiff /usr/local/etc/squid/squid.conf 
 +665a666 
 +> http_access allow localhost
 </​code>​ </​code>​
-В winXP для active ftp может потребоваться отключить firewall+ 
 +Работает в пассивном режиме.
сервис_ftp_proxy.txt · Last modified: 2013/05/22 13:50 (external edit)