TFTP@STARFACE
Aus STARFACE Wiki
STARFACE doesn't include a tftp server by default. This page will cover the installation and configuration of a tftp server.
Inhaltsverzeichnis |
STARFACE 5.X
Installation
The installation of the tftp server is simple just connect to STARFACE with SSH. Then type the following command on the interface:
yum install starface-tftp-server starface-tftp-aastra
The system will now show you the files which it wants to install. Confirm with yes. The tftp server is now installed.
Configuration
Restart the webservice to refresh the configuration.
service tomcat5 restart
Now everything should be installed and ready to go.
STARFACE 4.X
Installation
The installation of the tftp server is simple just connect to STARFACE with SSH. Then type the following command on the interface:
yum install tftp-server
The system will now show you the files which it wants to install. Confirm with yes. The tftp server is now installed.
Configuration
After the installation there is a new folder
/tftpboot
here you can put all your files.
Also you need to configure the tftp server.
In the file
/etc/xinetd.d/tftp
you need to set the option
disable=no
You also need to execute the following command on the shell:
chkconfig tftp on
Furthermore you have to start tftp server
/etc/init.d/xinetd start
Check if server is running
To see if the server is running you can execute on the linux shell:
netstat -a | grep tftp
and should see the following output:
udp 0 0 *:tftp *:*
Open STARFACE firewall
To allow incoming connections you need to open the tftp port (69 UDP) on the integrated firewall. Do to this you need to add the port to the db system.
1. "psql asterisk" for connecting to database console 2. copy & paste INSERT INTO iptablesrule(iptableschainid, startportnumber,endportnumber, target, clientip, protocoltype) VALUES (1,69,0,'ACCEPT','ALL', 'udp');
And now restart the webserver to reconfigure the firewall with
service tomcat5 restart
Issues
Not able to install tftp server via yum
yum doesn't install the tftpserver and you see the following output:
No Match for argument: tftp-server Nothing to do.
You will need to check the following file:
/etc/yum.repos.d/starface.repo
The file should look something like this:
[updates-released] name=Starface Updates baseurl=http://updates.starface.de/starface/updates/x.x.x.x <---- REPLACE WITH CURRENTLY INSTALLED STARFACE VERSION ---- enabled=1 gpgcheck=0
If your file is correct, use the following command:
yum clean all
After that try the installation again.
Client not able to upload files
The tftp server doesn't allow clients to upload files which are not already available, so you need to add an empty file.
touch /tftpboot/configfile chmod 666 /tftpboot/configfile
Logging
Logging can be enabled by adding a special flag in parameter server_args in file /etc/xinetd.d/tftp
default value is:
server_args = -s /tftpboot
change to:
server_args = -v -s /tftpboot
After Restarting tftp daemon all file request are logged in /var/log/messages
