Getting Openvz VPS FTP to work with CSF Firewall

Started on the old forum in December 2012 · view the original in the archive · old links redirect here

1 reply · 495 views · started 13 years ago · 1 min read

2 participants
Sanju Kr Developer · 104 posts #1

CSF is a great Linux firewall to use instead of raw IP tables and includes a WHM add on module for cPanel servers, but getting FTP to run successfully needs a couple of tweaks especially if the server is a VPS using Virtuozzo as not all the IP Table modules get loaded.

As a work around you need to open more higher numbered ports so FTP can connect, in WHM go to CSF>Firewall Configuration> and allow TCP_In 30000:50000 - restart the firewall.

External image (may be gone)

Then you need to edit your ftp server to use these passive ports, so it's either pure or pro, edit the conf file:

/etc/pure-ftpd.conf

Uncomment the line below:

# Port range for passive connections replies. - for firewalling.
PassivePortRange          30000 50000

Restart the FTP Server

service ftpd restart

and all should be ok, make sure that the port range in both the TCP_IN and range in the ftp config are the same.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close