Date: Tue, 16 Apr 2002 08:05:11 -0400 From: Donnie Jones <donniejones18@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: Ftp proxy or jftpgw configuration Message-ID: <20020416080511.7422202b.donniejones18@yahoo.com>
next in thread | raw e-mail | index | archive | help
Begin forwarded message:
Date: Tue, 16 Apr 2002 08:04:40 -0400
From: Donnie Jones <donniejones18@yahoo.com>
To: Donnie Jones <donniejones18@yahoo.com>
Subject: Re: Ftp proxy or jftpgw configuration
As a reply to my own question, since I finally figured it out. :-)
Here is a sample configuration similar to my jftpgw configuration that solves my problems of having multiple ftp servers behind a freebsd gateway.
I hope maybe this helps some other frustrated user at some point.
jftpgw.conf:
<global>
logstyle files
listen x.x.x.x:2370
serverport 21
pidfile /var/run/jftpgw.pid
runasuser nobody
passiveportrange 44000:45000
activeportrange 55000:58000
debuglevel 9
logfile /home/joe/jftpgw.log
cmdlogfile /home/joe/jftpgw.xferlog
cmdlogfile-style "time: %T, bytes: %b, status: %s"
cmdlogfile-specs RETR STOR
cacheprefix /temp/cache
</global>
<from 0/0>
access allow
</from>
<to x.x.x.x>
<port 2370>
access deny
</port>
</to>
<to pc1 pc2 pc3 pc4>
<port 21>
access allow
</port>
</to>
# forward any user with destination of pc1 to local ip address for pc1
<user *@pc1>
<to pc1>
forward 192.168.0.10:21,a
cache off
</to>
</user>
# forward any user with destination of pc2 to local ip address for pc2
<user *@pc2>
<to pc2>
forward 192.168.0.11:21,a
cache off
</to>
</user>
# forward any user with destination of pc3 to local ip address for pc3
<user *@pc3>
<to pc3>
forward 192.168.0.12:21,a
cache off
</to>
</user>
# forward any user with destination of pc4 to local ip address for pc4
<user *@pc4>
<to pc4>
forward 192.168.0.13:21,a
cache off
</to>
</user>
# end of jftpgw.conf
http://www.darthik.com/freebsd-docs/gateway-docs/LAN.jpeg --- Is a graphical layout for the LAN.
Also, make sure to have the lastest version of jftpgw from the ports or this will not work.
Good luck to all,
--Donnie
http://www.darhtik.com
On Sun, 14 Apr 2002 02:20:09 -0400
Donnie Jones <donniejones18@yahoo.com> wrote:
> Hey all,
>
> I am trying to set up a proxy for ftp servers behind a freebsd gateway using ip nat. I would like to be able to have the users log in using something similar to "user@host" and the user/host information causing the proxy to forward the connection to an internal ftp server on my LAN.
>
> Here is a picture similar to my setup:
>
> http://www.darthik.com/freebsd-docs/gateway-docs/LAN.jpeg
>
> Assume that pc1, pc2, pc3, and pc4 are the hostnames on the LAN, and that each is running their own ftp server.
>
> My goal is for user such as 'john' to login at the user prompt with the ftp proxy: john@pc1
>
> Then the ftp proxy to forward this request to the ftp server on pc1. I have tried to set this up with jftpgw, but I have not had success.
>
> Please help.
>
> http://www.mcknight.de/jftpgw/ --- jftpgw website.
>
> http://www.ftpproxy.org --- ftp proxy website.
>
> These are the only two programs I have found for freebsd that may meet my needs. I have preferred jftpgw due to that ftpproxy can only be ran through inetd, which I don't use.
>
> So, if anyone has a sample configuration or their own configuration that they could email to me that would be wonderful.
>
> Any help would be great...
>
> Thanks again!
>
> --Donnie
> http://www.darthik.com
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020416080511.7422202b.donniejones18>
