Koozali.org: home of the SME Server

Howto tftp server

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto tftp server
« on: August 23, 2004, 06:00:12 PM »
Hello,

JUL give me a Howto for the installation of a tftp server on a SME server.
http://www.vanhees.cc/index.php?module=ContentExpress&func=display&ceid=31

Greats thanks to JUL.

Regards.

Offline jeroenm

  • *
  • 18
  • +0/-0
Howto tftp server
« Reply #1 on: August 24, 2004, 11:54:36 PM »
Nice contrib  :-D
Is it possible to use an ibay as tftpboot instead of /tftpboot?

jeroen
...

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto tftp server
« Reply #2 on: August 25, 2004, 06:22:54 AM »
Hello,

Yes no problem to use an ibay.
Just change the directory at step 3

Regards.

mbachmann

Howto tftp server
« Reply #3 on: August 25, 2004, 12:40:53 PM »
Nice one. I discovered a Win tftp prog called tftp32 from here: http://tftpd32.jounin.net/ while trying out yours. Merci bien, MasterSleepy.

Offline jeroenm

  • *
  • 18
  • +0/-0
Howto tftp server
« Reply #4 on: August 25, 2004, 10:31:19 PM »
Quote from: "MasterSleepy"
Hello,

Yes no problem to use an ibay.
Just change the directory at step 3

Regards.


Thanks...I'm gonna give it a try  :-D
...

Offline jeroenm

  • *
  • 18
  • +0/-0
Howto tftp server
« Reply #5 on: August 26, 2004, 10:53:27 PM »
Well...tried to get it working on 6.01 and ran into some issues, first it seems that the rpm's found on vanhees.cc are corrupt?
Next, I wanted the tftpboot directory to be an ibay, so images, ios etc. can easily be transferred to the server. Further more this howto states that the xinetd config is stored in /etc/xinet.d. In fact the config file for xinetd in 6.01 is /etc/xinetd.conf.
So in short this is what I've changed to get it working:

STEP 2: Create storage directory

Create the storage ibay through the server manager:

Information bay name     tftpboot
Description       tftp share
Group          everyone
User access via file sharing or user ftp    write=group read=everyone   
    
Add a user for tftpd who has read/write rights to the tftpboot ibay (server manager):

Account name     tftp
First name    tf
Last name    tp

Login to the console

STEP 3: Change xinet.d parameter via the templates

# pico /etc/e-smith/templates-custom/etc/xinetd.conf/40tftpd

add the following lines

{
    $OUT .= "service tftpd\n";
    $OUT .= "{\n";
    $OUT .= "    disable                        = no\n";
    $OUT .= "    socket_type                    = dgram\n";
    $OUT .= "    protocol                       = udp\n";
    $OUT .= "    wait                   = yes\n";
    $OUT .= "    user                   = root\n";
    $OUT .= "    server                 = /usr/sbin/in.tftpd\n";
    $OUT .= "    server_args                    = -v -c -u tftp -s /home/e-smith/files/ibays/tftpboot/files\n";
    $OUT .= "    per_source                     = 11\n";
    $OUT .= "    cps                            = 100 2\n";
    $OUT .= "}";
}

Rebuild the template:
# /sbin/e-smith/expand-template /etc/xinetd.conf

STEP 4:  Adjust services

# pico /etc/e-smith/templates-custom/etc/services/40tftpd

add the following line:

tftpd           69/udp                          #tftpd

Rebuild the template:
# /sbin/e-smith/expand-template /etc/services


STEP 5:  Restart Xinetd

# service xinetd restart

STEP 5: Create template for hosts.allow

# mkdir -p /etc/e-smith/templates-custom/etc/hosts.allow
# pico -w /etc/e-smith/templates-custom/etc/hosts.allow/tftp

in.tftpd: ALL

Rebuild the template

# /sbin/e-smith/expand-template /etc/hosts.allow

That's all folks.
...

yinghum

tftp
« Reply #6 on: September 16, 2004, 04:19:21 AM »
Quote from: "jeroenm"
Well...tried to get it working on 6.01 and ran into some issues, first it seems that the rpm's found on vanhees.cc are corrupt?


Where can we find the un-corrupted tftp rpm ?

Offline jeroenm

  • *
  • 18
  • +0/-0
Howto tftp server
« Reply #7 on: September 16, 2004, 05:48:32 PM »
Google.com and rpmfind.net are your friends  :-)
...