LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-26-2005, 01:19 PM   #1
jdraper
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Rep: Reputation: 0
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
 
Old 07-26-2005, 02:14 PM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 34
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)
 
Old 07-26-2005, 03:51 PM   #3
jdraper
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 07-27-2005, 08:16 AM   #4
jdraper
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Original Poster
Rep: Reputation: 0
resolved

Resolved:

I was loading tftp instead of tftp-server.

There is a difference.

Relief.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tftp baparekh Linux - Networking 8 03-11-2005 07:50 AM
tftp baparekh Linux - Newbie 1 03-07-2005 02:51 PM
How can I get tftp server run on Redhat 9.0 frankli Linux - General 12 12-13-2003 10:23 PM
TFTP-Problem: TFTP timed out Bikerpete Linux - General 2 08-14-2003 05:25 AM
help with tftp please Tigger Linux - Security 3 06-11-2003 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration