Skip to content

Commit cc1f6fb

Browse files
committed
added workaround for passive mode under NATed network
1 parent d76e9f0 commit cc1f6fb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

install/0.9.7/rhel/vsftpd.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ pam_service_name=vsftpd
1313
userlist_enable=YES
1414
tcp_wrappers=YES
1515
force_dot_files=YES
16+
pasv_enable=YES
17+
pasv_max_port=12100
18+
pasv_min_port=12000

install/vst-install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,11 @@ wget vestacp.com/notify/?$REPO -O /dev/null
575575

576576
# Get server ip
577577
vst_ip=$(wget vestacp.com/what-is-my-ip/ -O - 2>/dev/null)
578+
if [ ! -z "$vst_ip" ] && [ "$vst_ip" != "$main_ip" ]; then
579+
# Assign passive ip address
580+
echo "pasv_address=54.246.111.50" >> /etc/vsftpd/vsftpd.conf
581+
fi
582+
578583
if [ -z "$vst_ip" ]; then
579584
vst_ip=$main_ip
580585
fi

0 commit comments

Comments
 (0)