Unix Technical Forum

vsftpd on fedora - firewall problems (?)

This is a discussion on vsftpd on fedora - firewall problems (?) within the Linux Operating System forums, part of the Unix Operating Systems category; --> i've got three boxes on a kvm. two are fedora linux, and one is windows xp. i thought i'd ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 06:09 PM
Socks
 
Posts: n/a
Default vsftpd on fedora - firewall problems (?)

i've got three boxes on a kvm. two are fedora linux, and one is windows
xp. i thought i'd set up vsftpd as an easy way to transfer files behind
my linksys router. i thought i set up my hosts.allow and hosts.deny to
allow ftp (and telnet) back in the 192.168.1.xx range, but no where else.

i'm the most stuck i've been with linux in a long time.

the problem i've got, is that i can telnet win->linux and linux->linux,
but i can only ftp win->linux. something goes wrong when i try to ftp
from one linux box to another. the log below shows the plight of two
boxes "jerry" and "fred".

basically i get "no route to host" until i put in "passive" and then it
hangs:

[fred@fred fred]$ ftp jerry
Connected to jerry (192.168.1.151).
220 (vsFTPd 1.2.0)
Name (jerry:fred): jerry
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,1,151,172,93)
ftp: connect: No route to host
ftp> passive
Passive mode off.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
[hangs until control-c]
receive aborted
waiting for remote to finish abort
426 Failure writing network stream.
500 Unknown command.
ftp> quit
221 Goodbye.
[fred@fred fred]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.151 jerry.invalid jerry
192.168.1.152 fred.invalid fred

[fred@fred fred]$ cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
vsftpd: 192.168.1.
in.telnetd: 192.168.1.
[fred@fred fred]$ cat /etc/hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
ALL: ALL

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 06:11 PM
Socks
 
Posts: n/a
Default Re: vsftpd on fedora - firewall problems (?)

On Sun, 22 Feb 2004 13:53:25 -0800, Socks wrote:

> the problem i've got, is that i can telnet win->linux and linux->linux,
> but i can only ftp win->linux. something goes wrong when i try to ftp
> from one linux box to another. the log below shows the plight of two
> boxes "jerry" and "fred".


i've done a few google searches, but come no closer. usually i find
someone else who has had the same problem as me, but not this time.

is there another group i should post to?

fwiw, the only errors i see in my /var/log/ are the sgi_fam problems
(in "/var/log/secure") that i've seen other people call harmless:

Feb 24 08:10:50 fred xinetd[1175]: START: sgi_fam pid=1479 from=<no address>
Feb 24 08:10:50 fred xinetd[1479]: FAIL: sgi_fam libwrap from=<no address>

are they not harmless, and is this something i should persue?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:19 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com