LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-15-2006, 09:58 PM   #1
Tylr
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware 10.2
Posts: 13

Rep: Reputation: 0
Can't connect to home FTP server remotely via firefox or IE


I have an FTP (vsftp) server running on my home computer and I can access it from that computer using firefox just fine. When I try to connect to it remotely ( I have tried Firefox and IE ) it won't let me. IE says the connection with the server was reset.
The strange thing is, I can connect to it remotely using the links browser and things work fine.

Any ideas?
Thanks.
 
Old 03-15-2006, 10:02 PM   #2
wwnexc
Member
 
Registered: Sep 2005
Location: California
Distribution: Slackware & Debian
Posts: 264

Rep: Reputation: 30
yeah. i've had that problem before. use proftpd. that one is more compliant with the windoz programs.
 
Old 03-15-2006, 10:44 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It works fine on my setup (vsftpd) with IE or Firefox. Just out of curiousity, are you using passive FTP in IE?
 
Old 03-15-2006, 11:30 PM   #4
Tylr
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
IE on the computer I'm at now is using passive ftp.
 
Old 03-16-2006, 02:46 AM   #5
Tylr
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
Could someone post their working vsftp setup so I can use it as a reference? I'm kind of at a loss here.
 
Old 03-16-2006, 07:15 AM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'd say it's your firewall configuration. I'm at another site at the moment, also running vsftpd and I get the problem you described. When I clear the use passive ftp flag in IE, it works fine. The only difference I can see between the 2 sites is the firewall. On the site I was at earlier today the box is behind a corporate firewall and runs nothing except ftp and ssh so it has no firewall itself. The box I'm on here does have iptables stuff running.

The vsftpd.conf file on both sites is almost the same. Here it is, but I think the problem is with iptables. This isn't the whole file, just the lines that aren't commented out and without things like banners:
Code:
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
ls_recurse_enable=YES
 
Old 03-17-2006, 01:53 AM   #7
Tylr
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks gilead. I tried clearing the use passive ftp in IE at the computer im at now and that worked. The computer my ftp server is on doesnt have iptables set up because it is already behind a firewall. I did notice later that when I connected to the server that passive mode was not being used so I tried switchin to passive and that wouldn't work. I do have ports 20, 21 open.

Does anyone know of a way I could get passive mode working or point me in the right direction. Mabybe a link to a good tutorial.

Thanks
 
Old 03-17-2006, 01:58 AM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I've used the stuff at http://iptables-tutorial.frozentux.n...-tutorial.html previously on other PCs and it worked fine. It looks like it's changed a fair bit so I'll have a look at it again this weekend because the PC here that IE failed to access shouldn't have (failed)...
 
Old 03-17-2006, 03:32 AM   #9
Tylr
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware 10.2
Posts: 13

Original Poster
Rep: Reputation: 0
I managed to get passive mode to work by using pasv_address=xx.xx.xx.xx, pasv_max_port=xxxxx, pasv_min_port=xxxxx and then opening up the port range I specified in my firewall.
The thing is, I get a dynamic ip so it would be pretty inconvenient for me to have to change the config file every time my ip changes.
I also don't like poking holes in my firewall (who does).

Is there a better way of going about this?
 
  


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
Connect to Samba Server remotely Echo Kilo Linux - Networking 1 01-12-2006 06:53 AM
vsftpd server: can connect locally, not remotely propz Linux - Networking 2 10-24-2005 01:59 AM
Can't remotely ftp connect jake3988 *BSD 10 04-16-2005 01:52 PM
Suddenly unable to connect to my web server and my ftp server. HELP! Silly22 Linux - Software 4 05-23-2004 05:42 PM
Can't connect to MySQL server remotely on RedHat 9 bper Red Hat 4 10-02-2003 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:42 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
Open Source Consulting | Domain Registration