Permanently disable ForcePassiveIP option

QuentinC

Member
Jan 10, 2013
10
1
3
cPanel Access Level
DataCenter Provider
Hi cPanelMichael,

Thanks you for your replied, it's really appreciated !

With cPanel server under NAT, we have a lots of issues with the FTP: each cPanel update version/build the FTP configuration file
/etc/pure-ftpd.conf is regenerated.

On CentOS7 the PassivePortRange is set from 49152 to 65534 but on CentOS6 those value was 30 000 50 000 (easy to give to the customer by phone and easy to learn)

Now with a naked CentOS7 you have this:

Code:
cat /etc/pure-ftpd.conf | grep Pass
PassivePortRange 49152 65534
ForcePassiveIP 185.22.110.X
I try your process, it's work for the PassivePortRange but not the ForcePassiveIP !

Code:
rm /var/cpanel/conf/pureftpd/main.cache -f
---
vi /var/cpanel/conf/pureftpd/main

#Edit this line
PassivePortRange: 49152 65534
#to
PassivePortRange: 30000 50000

#Remove this line
ForcePassiveIP: 146.88.233.X
---
/scripts/setupftpserver pure-ftpd -—force
---
cat /etc/pure-ftpd.conf | grep Pass
PassivePortRange 30000 50000
ForcePassiveIP 185.22.110.X
Do you have an other solution for us ?

Best regards.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
Hello @QuentinC,

This is actually a bug in cPanel version 64. Internal case CPANEL-13189 will address an issue where changes to the ForcePassiveIP value in the /var/cpanel/conf/pureftpd/main file are not retained. The resolution is included in cPanel version 66:

Fixed case CPANEL-13189: Allow overriding pure-ftpd configuration settings.

In the meantime, the workaround is to manually edit the /etc/pure-ftpd.conf with your preferred changes.

Thank you.
 

QuentinC

Member
Jan 10, 2013
10
1
3
cPanel Access Level
DataCenter Provider
Hello @QuentinC,

This is actually a bug in cPanel version 64. Internal case CPANEL-13189 will address an issue where changes to the ForcePassiveIP value in the /var/cpanel/conf/pureftpd/main file are not retained. The resolution is included in cPanel version 66:

Fixed case CPANEL-13189: Allow overriding pure-ftpd configuration settings.

In the meantime, the workaround is to manually edit the /etc/pure-ftpd.conf with your preferred changes.

Thank you.
Did you plan to backport this bug to 64 ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
Hello,

There are no plans to publish that resolution to cPanel version 64. However, cPanel version 66 is tentatively scheduled for publication to the "Release" build tier within the next week.

Thank you.