This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
сервис_ftp_proxy [2009/03/26 07:46] val created |
сервис_ftp_proxy [2013/05/22 13:50] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Сервис FTP Proxy ====== | ====== Сервис FTP Proxy ====== | ||
| <code> | <code> | ||
| - | [gX:~] # cat /etc/inetd.conf | grep ftp-proxy | + | [gate:~] # cd /usr/ports/ftp/frox/ |
| - | ftp-proxy stream tcp nowait root /usr/libexec/ftp-proxy ftp-proxy | + | |
| - | [gX:~] # /etc/rc.d/inetd reload | + | [gate:ports/ftp/frox] # make config |
| - | [gX:~] # cat /etc/pf.conf | ||
| ... | ... | ||
| - | rdr proto tcp from $int_net to !<corp_nets> port 21 -> 127.0.0.1 port 8021 | + | PF [X] |
| + | ... | ||
| - | [gX:~] # /etc/rc.d/pf reload | + | [gate:ports/ftp/frox] # make install clean |
| + | |||
| + | [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 | ||
| + | ... | ||
| + | |||
| + | [gate:~] # rcsdiff /usr/local/etc/squid/squid.conf | ||
| + | 665a666 | ||
| + | > http_access allow localhost | ||
| </code> | </code> | ||
| + | |||
| + | В клиенте необходимо настроитть Passive FTP | ||