Giter VIP home page Giter VIP logo

ftp.proxy's Introduction

About this fork

Fork of the https://github.com/ftpproxy/ftp.proxy repository with added support for the NLST command.

ftp.proxy

ftp.proxy is an application level gateway for FTP. It sits between a client and a server forwarding command and data streams supporting a subset of the file transfer protocol as described in RFC 959.

Beside this basic function which makes the program useful on firewall or masqueraders it offers fixing the FTP server (e.g. for connections into a protected LAN) and proxy authentication.

ftp.proxy offers external access control programs (ACP), that is an external program decides if a user can use the proxy service or not. This decision can be made on username, host name, day of time etc. Since version 1.0.1 ftp.proxy supports also command control programs. Similar to ACPs the CCPs permit or deny access to certain FTP commands on the server, e.g. it's possible to allow a user to get files but to deny any kind of uploads.

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.

ftp.proxy's People

Contributors

ftpproxy avatar elger9 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.