LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 05-02-2004, 04:03 PM   #1
explorer
Member
 
Registered: Feb 2003
Posts: 229

Rep: Reputation: 34
making FTP work


Two FC1 machines networked. SSH is working. FTP server was installed during setup on both machines. When I ftp from either one to the other, I get "connection refused". What do I need to do to get ftp working ?
 
Old 05-02-2004, 04:06 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Did you start an ftp server? post the output of:
netstat -nlp
iptables -nL
 
Old 05-02-2004, 10:51 PM   #3
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Dave - I don't know how to start an ftp server....

here's the output of netstat -nlp and iptables -nL

netstat -nlp:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:1026 0.0.0.0:* LISTEN 1467/rpc.statd
tcp 0 0 127.0.0.1:1027 0.0.0.0:* LISTEN 1646/xinetd
tcp 0 0 0.0.0.0:932 0.0.0.0:* LISTEN 23648/rpc.rquotad
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 2558/smbd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1447/portmap
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1342/httpd
tcp 0 0 0.0.0.0:1044 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:949 0.0.0.0:* LISTEN 23666/rpc.mountd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1630/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1580/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1667/sendmail: acce
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1342/httpd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 2558/smbd
udp 0 0 0.0.0.0:1024 0.0.0.0:* 1467/rpc.statd
udp 0 0 0.0.0.0:2049 0.0.0.0:* -
udp 0 0 0.0.0.0:1025 0.0.0.0:* -
udp 0 0 169.254.55.235:137 0.0.0.0:* 2562/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 2562/nmbd
udp 0 0 169.254.55.235:138 0.0.0.0:* 2562/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 2562/nmbd
udp 0 0 0.0.0.0:795 0.0.0.0:* 1467/rpc.statd
udp 0 0 0.0.0.0:800 0.0.0.0:* -
udp 0 0 0.0.0.0:929 0.0.0.0:* 23648/rpc.rquotad
udp 0 0 0.0.0.0:946 0.0.0.0:* 23666/rpc.mountd
udp 0 0 0.0.0.0:111 0.0.0.0:* 1447/portmap
udp 0 0 0.0.0.0:631 0.0.0.0:* 1580/cupsd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 3994 1939/ssh-agent /tmp/ssh-lTeZ1886/agent.1886
unix 2 [ ACC ] STREAM LISTENING 4010 1943/gconfd-2 /tmp/orbit-mallen/linc-797-0-17821d3b9e4b
unix 2 [ ACC ] STREAM LISTENING 4020 1886/gnome-session /tmp/orbit-mallen/linc-75e-0-1c63eb7a1572b
unix 2 [ ACC ] STREAM LISTENING 3825 1810/dbus-daemon-1 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 4057 1947/bonobo-activat /tmp/orbit-mallen/linc-79b-0-be2117aceda7
unix 2 [ ACC ] STREAM LISTENING 4099 1949/metacity /tmp/orbit-mallen/linc-79d-0-26aa110bb5d1
unix 2 [ ACC ] STREAM LISTENING 4113 1951/gnome-settings /tmp/orbit-mallen/linc-79f-0-360860a7e9d09
unix 2 [ ACC ] STREAM LISTENING 4234 1975/gnome-panel /tmp/orbit-mallen/linc-7b7-0-9aa344b4d9ab
unix 2 [ ACC ] STREAM LISTENING 4257 1990/magicdev /tmp/orbit-mallen/linc-7c6-0-9aa344b9afc1
unix 2 [ ACC ] STREAM LISTENING 4293 1983/nautilus /tmp/orbit-mallen/linc-7bf-0-658cce25a8026
unix 2 [ ACC ] STREAM LISTENING 4335 1997/eggcups /tmp/orbit-mallen/linc-7cd-0-5231520e5088b
unix 2 [ ACC ] STREAM LISTENING 4520 2001/python /tmp/orbit-mallen/linc-7d1-0-7970eb15e2902
unix 2 [ ACC ] STREAM LISTENING 4535 2009/notification-a /tmp/orbit-mallen/linc-7d9-0-28e546578b67c
unix 2 [ ACC ] STREAM LISTENING 4563 2011/mixer_applet2 /tmp/orbit-mallen/linc-7db-0-16f6714a55898
unix 2 [ ACC ] STREAM LISTENING 305028 1864/gnome-terminal /tmp/orbit-mallen/linc-748-0-1432183c7abfc
unix 2 [ ACC ] STREAM LISTENING 4607 2015/wnck-applet /tmp/orbit-mallen/linc-7df-0-3126431a5d226
unix 2 [ ACC ] STREAM LISTENING 4720 2020/mini_commander /tmp/orbit-mallen/linc-7e4-0-4ee6490456c6a
unix 2 [ ACC ] STREAM LISTENING 3884 1829/gdm-binary /tmp/.gdm_socket
unix 2 [ ACC ] STREAM LISTENING 4135 1958/fam /tmp/.fam_socket
unix 2 [ ACC ] STREAM LISTENING 4393 2006/mapping-daemon /tmp/mapping-mallen
unix 2 [ ACC ] STREAM LISTENING 2295 1732/xfs /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 299335 1241/esd /tmp/.esd/socket
unix 2 [ ACC ] STREAM LISTENING 4045 1886/gnome-session /tmp/.ICE-unix/1886
unix 2 [ ACC ] STREAM LISTENING 3897 1871/X /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 2194 1687/gpm /dev/gpmctl
---------------------------------------------------

iptables -nL:

Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 255
ACCEPT esp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT ah -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:25
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:21
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:23
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
 
Old 05-03-2004, 02:18 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Looking at the netstat output your server isn't running but the firewall is set to allow connections on the correct ports. I think fedora uses vsftpd try:
service vsftpd start
 
Old 05-04-2004, 03:25 PM   #5
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
got it going - thanks !
 
Old 06-08-2004, 05:02 AM   #6
cofeineSunshine
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
quastion

whitch file i should edit, to start ftpd service every time when linuxbox starts
 
Old 06-08-2004, 09:23 AM   #7
wiraone
Member
 
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319

Rep: Reputation: 30
Re: quastion

Quote:
Originally posted by cofeineSunshine
whitch file i should edit, to start ftpd service every time when linuxbox starts
As root ..

# chkconfig vsftpd on
 
Old 08-12-2004, 04:08 AM   #8
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
This thread answered most of my question. How do I configure iptables to allow PASC FTP sessions? My firewall is configured the same as the one posted above but I can't get connected using PASV file transfers as I get errors about not being able to create a data connection from my FTP client (gFTP).

Thanks...

Peace...
 
Old 08-12-2004, 10:48 AM   #9
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Re: quastion

Quote:
Originally posted by cofeineSunshine
whitch file i should edit, to start ftpd service every time when linuxbox starts
If you haven't got this one answered yet, I add things that I want to start up on boot to the bottom of the /etc/rc.d/rc.local file......
 
Old 08-12-2004, 11:24 AM   #10
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Re: Re: quastion

Quote:
Originally posted by explorer
If you haven't got this one answered yet, I add things that I want to start up on boot to the bottom of the /etc/rc.d/rc.local file......
I used to do the same but with this recent Fedora Core 2 install I did, I started using the scripts in /etc/rcX.d, for the various runlevels.

So, if there is a script for the ftp service in /etc/init.d (like for vsftpd it's /etc/init.d/vsftpd), then create a /etc/rc3.d/Snnvsftpd file like this:

# cd /etc/rc3.d
# ln -s ../init.d/vsftpd S80vsftpd

Then when the system boots, you'll see the "Staring vsftpd" message like with every other daemon that starts. Then add a similar link in /etc/rc6.d so it will be cleanly stopped when the system is shut down.

Peace....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
making an FTP server and need help spartanM19SSM Linux - Networking 1 02-13-2005 11:46 AM
making an FTP connection... zee1702 Linux - Newbie 4 06-15-2004 11:44 AM
useradd for making ftp users?? djkoe Linux - Newbie 1 03-20-2004 08:07 AM
Making an Ftp server phatmann Linux - Newbie 2 03-14-2004 12:21 AM
making ftp work through nat iceaway Mandriva 2 03-12-2004 06:43 PM


All times are GMT -5. The time now is 04:22 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration