Re: Need to SSL my ftp users.

From: Menno Duursma (menno_at_desktop.lan)
Date: 03/28/04


Date: Sun, 28 Mar 2004 14:58:07 GMT

On Sat, 27 Mar 2004 23:29:32 +0000, Sybren Stuvel wrote:
> yO .. enlightened us with:

>> assuming this delay is because I have it launched via inetd .. anyways ..
>
> Don't assume, check. Use a network sniffer if needed.

If no sniffer avaiable, some log-everything firewall rules should do:

iptables -F
iptables -A INPUT -j LOG
iptables -A OUPUT -j LOG

> It could be that the server does an ident query on the client computer.
> it could also be that the server tries to do a reverse DNS query.

Indeed. That would probably be "tcpwrapper" settings. Thus, in that case a
look at: /etc/hosts.deny and /etc/hosts.allow might be in order.

Maybe a "telnet" to TCP port 21 whist looking at the output of "netstat"
(on both client and server) would tell some more also.

>> Im new to how ssl works. After all this Im not sure how to get my
>> client to work with this wsftpd(windows)

Well, idunno all that much about wsftpd (or MS-Windows for that matter).
However, previous FTP-SSL draft document(s), stated the use of TCP port
990 for "ftps". Hence, WS_FTP might look for a server running there, when
setup to use SSL/TLS.

Adding a line to: /etc/inetd.conf (beginning with "ftps") and restarting
(ie: "killall -HUP inetd") should do. Provided /etc/services contains:

ftps 990/tcp # ftp protocol, control, over TLS/SSL

>> I believe Ive created a proper test cert targeting my private key. Am
>> I supposed to somehow create a public key?
>
> Yes. Don't exactly know how, though, since I don't use ftp (in favour of
> sftp). [ ... ]

I just read a post by J.O. Aho in this thead:
Message-ID: <c43pbb$2e6j19$1@ID-130698.news.uni-berlin.de>

And the URL posted therein looks like it makes chrooting OpenSSH users
pretty easy, i'll have to test that, interesting... Did you use that
"jailkit" as well? TIA.

-- 
-Menno.


Relevant Pages

  • Re: NIS client couldnt log in
    ... >> off iptables, the client bound to the server and all the yptools ... and ypbind in broadcast mode (ypcat and ypwhich would ... >> work at all if i specified the server). ... Further, ypbind uses the ...
    (RedHat)
  • Need help configuring IPtables w/ DMZ, 2 LAN, and INET
    ... I am desperately in need of assistance in configuring an IPtables ... firewall on a Red Hat Linux 9.0 server. ... Chain FORWARD ... tcp dpt:25 flags:0x16/0x02 ...
    (comp.os.linux.networking)
  • Static IP w/ PPPoe xDSL Firewall
    ... iptables -F -t nat ... # Kill malformed XMAS packets ... # Refuse incoming packets pretending to be from the external address. ... # server/client to server query or response ...
    (comp.os.linux.networking)
  • Re: Modprobe question
    ... >> Made some minor changes to iptables and did a restart. ... >> modprobe seems to be doing something but I can't tell what. ... >> course the server seems to be running fine. ...
    (alt.linux)
  • losing connection to server when scanned by nmap - Iptables
    ... The iptables script applied to the NIC is shown below. ... the web server or ssh into the server when I do this scan. ... echo 2> $f ... # Refuse packets claiming to be from a Class A private network. ...
    (comp.security.firewalls)