LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   tftp won't run (https://www.linuxquestions.org/questions/linux-networking-3/tftp-wont-run-346996/)

jdraper 07-26-2005 01:19 PM

tftp won't run
 
I am trying to setup tftp on my redhat 9 linux box.

I have installed the rpm tftp-0.32-4

My /tftpboot folder has permissions set to 777 and owner as nobody:nobody

My tftp file in /etc/xinetd.d is:

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

I have stopped and started xinetd

my netstat -at |grep tftp returns nothing

my nmap -v -sS localhost returns

Starting nmap V. 3.00 ( )
Host Linux (127.0.0.1) appears to be up ... good.
Initiating SYN Stealth Scan against Linux (127.0.0.1)
Adding open port 21/tcp
Adding open port 80/tcp
Adding open port 443/tcp
Adding open port 6000/tcp
Adding open port 25/tcp
Adding open port 111/tcp
Adding open port 3306/tcp
The SYN Stealth Scan took 2 seconds to scan 1601 ports.
Interesting ports on Linux (127.0.0.1):
(The 1594 ports scanned but not shown below are in state: closed)
Port State Service
21/tcp open ftp
25/tcp open smtp
80/tcp open http
111/tcp open sunrpc
443/tcp open https
3306/tcp open mysql
6000/tcp open X11

Nmap run completed -- 1 IP address (1 host up) scanned in 2 seconds

So....I see that tftp is not sitting on port 69 .

Help.

My goal is to setup tftp so I can save router configurations for backup.

Jerry

Vookimedlo 07-26-2005 02:14 PM

Hi,

you have in your tftp file in /etc/xinetd.d

protocol = udp

so you need to run netstat with -u option


My "netstat -ua | grep tftp" returns

Code:

[root@iguana bin]# netstat -ua | grep tftp
udp        0      0 *:tftp                      *:*

Nmap in the similar way:

Code:

[root@iguana bin]# nmap -v -sU localhost

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-07-26 21:11 CEST
Initiating UDP Scan against iguana.zoo (127.0.0.1) [1478 ports] at 21:11
The UDP Scan took 1.46s to scan 1478 total ports.
Host iguana.zoo (127.0.0.1) appears to be up ... good.
Interesting ports on iguana.zoo (127.0.0.1):
(The 1473 ports scanned but not shown below are in state: closed)
PORT      STATE        SERVICE
67/udp    open|filtered dhcpserver
69/udp    open|filtered tftp
111/udp  open|filtered rpcbind
3130/udp  open|filtered squid-ipc
32768/udp open|filtered omad

Nmap finished: 1 IP address (1 host up) scanned in 1.613 seconds
              Raw packets sent: 1485 (41.6KB) | Rcvd: 2958 (124KB)


jdraper 07-26-2005 03:51 PM

still not showing up
 
I ran nmap and netstat as directed and it still is not showing up:

[root@:Linux xinetd.d]# netstat -ua
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
udp 0 0 *:sunrpc *:*


[root@Linux xinetd.d]# nmap -v -sU localhost

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Host Linux (127.0.0.1) appears to be up ... good.
Initiating UDP Scan against Linux (127.0.0.1)
The UDP Scan took 3 seconds to scan 1468 ports.
Adding open port 111/udp
Interesting ports on Linux (127.0.0.1):
(The 1467 ports scanned but not shown below are in state: closed)
Port State Service
111/udp open sunrpc

Nmap run completed -- 1 IP address (1 host up) scanned in 3 seconds

jdraper 07-27-2005 08:16 AM

resolved
 
Resolved:

I was loading tftp instead of tftp-server.

There is a difference.

Relief.


All times are GMT -5. The time now is 09:01 AM.