Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xinetd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Sun Oct 24, 2004 1:59 pm    Post subject: xinetd Reply with quote

Hi!

A newbie-question this time: How do I limit my xinetd-enabled FTP-server to ONLY accept logins from 127.0.0.1?

I have tried an only_from, but that doesn't seem to work (yet)...

Even by default I get the following when attempting a 'ftp localhost':
Code:

Oct 24 15:58:01 sb62g2 xinetd[15512]: libwrap refused connection to ftp (libwrap=vsftpd) from 127.0.0.1

_________________
Greetz,
Evert Meulie
Back to top
View user's profile Send private message
sf_alpha
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2002
Posts: 136
Location: Bangkok, TH

PostPosted: Sun Oct 24, 2004 2:24 pm    Post subject: Reply with quote

/etc/xinetd.d/vsftpd

add

only_from = 127.0.0.1
_________________
Gentoo Mirrors in Thailand (and AP)
http://gentoo.in.th
Back to top
View user's profile Send private message
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Sun Oct 24, 2004 9:59 pm    Post subject: Reply with quote

I have tried that, as I mentioned... 8)


That gives me:
Code:

Connected to localhost.
421 Service not available, remote server has closed connection


And in the syslog:
Code:

Oct 24 23:57:05 sb62g2 xinetd[14628]: libwrap refused connection to ftp (libwrap=vsftpd) from 127.0.0.1


[/code]
_________________
Greetz,
Evert Meulie
Back to top
View user's profile Send private message
nightblade
Guru
Guru


Joined: 20 Jul 2004
Posts: 368
Location: back from SE Asia

PostPosted: Sun Oct 24, 2004 10:20 pm    Post subject: Reply with quote

Uhm.... if libwrap refuses the connection, it's probably a tcpwrapper problem. Have you checked your /etc/hosts.allow and /etc/hosts.deny files ? You might have something there that filters your connection
_________________
In God we trust. All the others must provide a valid X.509 certificate
Back to top
View user's profile Send private message
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Mon Oct 25, 2004 4:19 am    Post subject: Reply with quote

Yup, there it s! 8)

Code:

cat /etc/hosts.deny
     ALL: 127.0.0.1
     ALL: 127.0.0.1


Hmm, how/why did that end up there...? :?:
_________________
Greetz,
Evert Meulie
Back to top
View user's profile Send private message
nightblade
Guru
Guru


Joined: 20 Jul 2004
Posts: 368
Location: back from SE Asia

PostPosted: Mon Oct 25, 2004 8:09 am    Post subject: Reply with quote

meulie wrote:

Hmm, how/why did that end up there...? :?:

Got no idea... did you use some kind of hardening script lately (e.g.: Bastille) ?
_________________
In God we trust. All the others must provide a valid X.509 certificate
Back to top
View user's profile Send private message
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Mon Oct 25, 2004 9:38 am    Post subject: Reply with quote

Nope... But I guess 127.0.0.1 should be in .allow. instead of in .deny... 8)
_________________
Greetz,
Evert Meulie
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Mon Oct 25, 2004 1:36 pm    Post subject: Reply with quote

meulie wrote:
Nope... But I guess 127.0.0.1 should be in .allow. instead of in .deny... 8)


You're right about that :wink:


_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum