2 added 104 characters in body
source | link

Here's my /etc/xinetd.d/tftp, which is the default configuration:

service tftp
{
        socket_type             = dgram
        protocol                = udp 
        wait                    = yes 
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        disable                 = yes no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

Here's my /etc/xinetd.d/tftp, which is the default configuration:

service tftp
{
        socket_type             = dgram
        protocol                = udp 
        wait                    = yes 
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        disable                 = yes 
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

Here's my /etc/xinetd.d/tftp

service tftp
{
        socket_type             = dgram
        protocol                = udp 
        wait                    = yes 
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
1
source | link

Why tftp direct access request to different folders with different network interfaces

Here's my /etc/xinetd.d/tftp, which is the default configuration:

service tftp
{
        socket_type             = dgram
        protocol                = udp 
        wait                    = yes 
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        disable                 = yes 
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

I have two interfaces on my host:

  1. lo: 127.0.0.1
  2. virbr1: 192.168.122.1

And I connect the tftp server via the 2 interfaces respectively.

tftp 127.0.0.1
get somefile

The file is fetched from /tftpboot

tftp 192.168.122.1
get somefile

The file is fetched from /var/lib/tftp

I have no idea where this /var/lib/tftp configuration comes from. Or maybe via 192.168.122.1, tftp servers fall back to some default configuration?


Mention that I didn't modify /etc/xinetd.conf either:

defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
#       enabled         =
#       disabled        =

# Define general logging characteristics.
        log_type        = SYSLOG daemon info 
        log_on_failure  = HOST
        log_on_success  = PID HOST DURATION EXIT

# Define access restriction defaults
#
#       no_access       =
#       only_from       =
#       max_load        = 0
        cps             = 50 10
        instances       = 50
        per_source      = 10

# Address and networking defaults
#
#       bind            =
#       mdns            = yes
        v6only          = no

# setup environmental attributes
#
#       passenv         =
        groups          = yes
        umask           = 002

# Generally, banners are not used. This sets up their global defaults
#
#       banner          =
#       banner_fail     =
#       banner_success  =
}

includedir /etc/xinetd.d