
-33-
v4.9
FTP and FTPS
7. FTP and FTPS
7.1. Creating your own FTP server
First, you should get a server. This server will receive your frames and store them. There is no need to purchase a physical server
since there a companies that offer remote servers.
Note:
The server used by Libelium to realize the upload and download tests is a Pure-FTPD server (
www.pureftpd.org
) and it is
hosted into a OVH server (
www.ovh.com
). The Pure-FTPD server has the settings by default:
•
TLS encryption support: Optional
•
TLS cipher suite: High- TLSv1
•
Allow anonymous logins: No
•
Allow anonymous uploads: No
•
Maximum load for anonymous downloads: 4
•
Maximum idle time (minutes): 15
•
Maximum connections: 50
•
Maximum connections per IP address: 8
•
Allow logins with root password: Yes
•
Broken clients compatibility: No
From Libelium, we recommend the use of this server hosting provider to obtain good results to upload and download files, but
we
can’t guarantee the perfect performance of the FTP server
.
Also, Libelium has tested with Guebs hosting (
www.guebs.com
) with good results.
Follow the next steps to create your own FTP server using the terminal:
1 - Install the pure-ftpd server:
sudo apt-get install pure-ftpd
2 - Stop the server:
sudo /etc/init.d/pure-ftpd stop
3 - Before creating the user, it is necessary create a directory to stored the received data:
sudo mkdir /home/ftp and inclide a false shell. To check if the shell exist:
sudo more /etc/shells
4 - If it isn’t the line
/bin/false
, edit the file, for example with vim, and include it:
sudo vim /etc/shells
5 - After creating a new folder to store data, you have to create a group and a user with false shell, because this type
of user don’t need a valid shell (more secure), therefore select
/bin/false
shell for user and
/dev/null
as directory:
sudo groupadd ftpgroup
sudo useradd -g ftpgroup -d /dev/null -s /bin/false user1
Содержание Waspmote 3G Plus GPS
Страница 1: ...Waspmote 3G GPS Networking Guide ...