» FTP server on openSUSE
Here's a quick and simplified version of the FTP Server HOWTO that's on the openSUSE wiki, in order to install and enable a passive FTP server on openSUSE.
1) Install the package (or
3) Start the (note that you can use that
4.2) enable FTP connection tracking and NATing by setting the variable (actually,
Done.
vsftpd
(ships with the standard OSS repository and media), using the following command from a shell as root:
zypper in vsftpd
smart install vsftpd
, depending on your preferred package manager)
2) Enable the vsftpd
init script at boot to have the FTP server automatically enabled when after booting, still in a shell as root:
chkconfig --add vsftpd
vsftpd
server now, to avoid rebooting to start it up, still in a shell as root:
rcvsftpd start
rcvsftpd
script to control the FTP daemon, followed by the self-explanatory commands start
, stop
, status
, restart
, ...)
4) Now here's the secret magic sauce: to enable FTP in the firewall, open the file /etc/sysconfig/SuSEfirewall2
in your favourite text editor, still as root, and do the following:
4.1) make sure ftp
is mentioned in the variable FW_SERVICES_EXT_TCP
, e.g. like this:
FW_SERVICES_EXT_TCP="http https ftp"
FW_LOAD_MODULES
as follows:
FW_LOAD_MODULES="ip_conntrack_ftp ip_nat_ftp"
ip_nat_ftp
is only needed if that server is acting as a reverse proxy (DNAT) to a real FTP server behind it, but it doesn't harm enabling it anyway, for the sake of simplicity)
5) Apply the firewall changes with the following command, again from a shell as root:
rcSuSEfirewall2 reload
Labels: opensuse