From 95c62dc238c9735adba78dbcf0463459f173bb32 Mon Sep 17 00:00:00 2001
From: "marc.doudiet" <marc.doudiet@nimag.net>
Date: Fri, 13 Aug 2010 07:08:53 -0700
Subject: [PATCH] docs/frontends/FTP-and-SFTP.txt : ftpd and sftpd doesn't
 listen on loopback interface only

---
 docs/frontends/FTP-and-SFTP.txt | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/docs/frontends/FTP-and-SFTP.txt b/docs/frontends/FTP-and-SFTP.txt
index 78f6bfa5..41ee8fa5 100644
--- a/docs/frontends/FTP-and-SFTP.txt
+++ b/docs/frontends/FTP-and-SFTP.txt
@@ -77,18 +77,19 @@ the BASEDIR/tahoe.cfg file:
 
  [ftpd]
  enabled = true
- port = 8021
+ port = tcp:8021:interface=127.0.0.1
  accounts.file = private/ftp.accounts
 
-The FTP server will listen on the given port number. The "accounts.file"
-pathname will be interpreted relative to the node's BASEDIR.
+The FTP server will listen on the given port number and on the loopback 
+interface only. The "accounts.file" pathname will be interpreted 
+relative to the node's BASEDIR.
 
 To enable the FTP server with an account server instead, provide the URL of
 that server in an "accounts.url" directive:
 
  [ftpd]
  enabled = true
- port = 8021
+ port = tcp:8021:interface=127.0.0.1
  accounts.url = https://example.com/login
 
 You can provide both accounts.file and accounts.url, although it probably
@@ -118,19 +119,20 @@ lines to the BASEDIR/tahoe.cfg file:
 
  [sftpd]
  enabled = true
- port = 8022
+ port = tcp:8022:interface=127.0.0.1 
  host_pubkey_file = private/ssh_host_rsa_key.pub
  host_privkey_file = private/ssh_host_rsa_key
  accounts.file = private/ftp.accounts
 
-The SFTP server will listen on the given port number. The "accounts.file"
-pathname will be interpreted relative to the node's BASEDIR.
+The SFTP server will listen on the given port number and on the loopback
+interface only. The "accounts.file" pathname will be interpreted
+relative to the node's BASEDIR.
 
 Or, to use an account server instead, do this:
 
  [sftpd]
  enabled = true
- port = 8022
+ port = tcp:8022:interface=127.0.0.1
  host_pubkey_file = private/ssh_host_rsa_key.pub
  host_privkey_file = private/ssh_host_rsa_key
  accounts.url = https://example.com/login
-- 
2.45.2