forked from ftpproxy/ftp.proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
70 lines (39 loc) · 1.66 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
to be completed ...
1. Building
Same old story:
make
make install
If you like to compile ftp.proxy on a SystemV OS (like Solaris) please uncomment the following two lines in src/Makefile:
OSFLAG = -DSOLARIS
OSLIB = -lnsl -lsocket
For BSD like systems you must use gmake instead of make!
On MacOS X is could be necessary to change the compiler setting in src/Makefile to:
CC = cc
Note: You must have gnu make and gcc installed on your system.
2. Installation
After you sucessfully built and installed the daemon, you add an
entry to your system's inetd.conf depending on your needs:
- clientside server selection:
ftp stream tcp nowait nobody /usr/sbin/tcpd /usr/local/sbin/ftp.proxy -e
- clientside server selection with enhanced logging:
ftp stream tcp nowait nobody /usr/sbin/tcpd /usr/local/sbin/ftp.proxy -e -l -m
- only to one particular FTP-Server:
ftp stream tcp nowait nobody /usr/sbin/tcpd /usr/local/sbin/ftp.proxy my.outside.server
For xinetd this must work (example):
service ftp
{
socket_type = stream
wait = no
user = nobody
server = /usr/local/sbin/ftp.proxy
server_args = -e -m
}
If you like to seprate the ftp.proxy log messages from the other stuff,
try something like this in your syslog.conf:
*.*;ftp.none -/var/log/messages
ftp.* /var/log/ftp
3. Advanced Features
ftp.proxy has some advanced features not found in other FTP proxies:
advanced access control, command control and monitor mode. They are
explained in the manpage.
Good luck !