LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-28-2005, 05:30 PM   #1
aquatux
Member
 
Registered: Jul 2005
Distribution: Ubuntu 14.04
Posts: 50

Rep: Reputation: 15
Firewall set-up with vsftpd


I have SUSE 9.3 with Apache and vsftpd and all working fine. I would like to be able to ftp in through vsftpd but the Firewall in Suse is blocking me. I can turn it off and everything else works.

Yast lists some services that the firewall can be configured with but ftp is not one of them. I only need the server visible on local network for web development and would rather not turn it off completly each time I ftp.

I saw some information on configuring iptables but not enough to try it. This is my first Linux install so please bear that in mind.
 
Old 07-29-2005, 02:11 PM   #2
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
Go into the Yast firewall module. Once in it select the "allowed services" section. In the advanced section open these ports.

In the TCP Ports box put "20 21" (separated by a space only).

In the UDP Ports box put "20"

Then exit and restart your firewall.

FYI, you can always get a clue to what you need to open by typing this in "cat /etc/services | grep ftp". The /etc/services file shows all the common ports used by various services. Although there will be quite a few FTP services listed, the top 3 are the generic ftp ports you are looking for. The second column shows how I got the numbers and the protocol.

If this is indeed your first install, please read the vsftpd docs very carefully. FTP can be tricky although vsftpd would be what I recommend to new ftp admins. Look at the chroot variable and see if that fits your scheme. It will lock people into the directory of your choice so they can't poke around where they shouldn't be.

Last edited by ghight; 07-29-2005 at 02:16 PM.
 
Old 07-29-2005, 02:36 PM   #3
aquatux
Member
 
Registered: Jul 2005
Distribution: Ubuntu 14.04
Posts: 50

Original Poster
Rep: Reputation: 15
GH,
Thanks for taking the time for a detailed explanation. That's what I needed.

As far as chroot goes I will be the only one using ftp on this server since it's only for my web development use.

I just tested and it's all good now thanks again to you.
 
  


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
Problem: VSFTPD using SSL through firewall dancinfrandsen Linux - Software 0 03-30-2005 03:01 PM
vsftpd, firewall, and multiple users? buffed317 Linux - Networking 1 03-26-2005 07:59 PM
Problems using vsftpd on Mandrake 9.2 w/ firewall skybolt_1 Linux - Networking 3 03-11-2004 02:00 AM
vsftpd how to set password and user? djkoe Linux - Newbie 3 12-30-2003 08:35 AM
how do i set vsftpd user permissions USMC__KopfJager Linux - Security 5 12-29-2003 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:12 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