search

FTP Port 21 blocked

Some ISPs block port 21 or maybe you just don't like leaving port 21 open.
If you have a router which does port translation (takes packets received for one port and redirects them to another port) then there's no problem. But if your router won't do that then the following might help


Before you start, it's easy to get the GoFlex Home ftp server to listen on a different port, but the proxy server at Seagateshare.com will not forward requests on other ports.

In that case you would need to know your Public IP address, which may change frequently and this can be a pain. That's the point of the Seagateshare proxy server, to keep track of your Public IP address. 
My Public IP address stays for months at a time until I reboot the router, but some ISPs drop the lease routinely and force you to reconnect and get a new IP address. 

But if you decide to go ahead then here's how to do it;

First connect with SSH and become root user.

Modify the FTP server
Edit the vsftp config file with the command vi /etc/vsftpd/vsftpd.conf and add a line listen_port =2021 
(or any high port number you want)

I should also mention that the vi text editor can be tricky check here for tips on using vi

Basically type I to enter Insert mode and Esc ZZ to save changes or :q to quit without saving

Restart the vsftpd service with the command  /sbin/service vsftpd restart

 Open the Goflex Home firewall ports
Modify the firewall config with the command  vi /etc/iptables/config and add a line TCP_OPEN_PORTS_EXT="2021"
(or the same port you used when you modified the ftp server)

Restart the firewall service with the command  /etc/init.d/iptables restart

Set up your  router
Forward port 2021 (or whatever port you chose) to your GoFlex Home port 2021. (I have a Netgear router which only does port forwarding and not port translation)
Make sure UPnP is enabled in the router and GoFlex Home preferences.


Direct your remote FTP client (I use ANDftp on my Android phone) to your home Public IP address at port 2021 (or whatever port you set). 


34 comments:

  1. I admire the valuable information you offer in your articles. I will bookmark your blog and have my friends check up here often. I am quite sure they will learn lots of new stuff here than anybody else! Regards aws jobs in hyderabad.

    ReplyDelete
  2. có cách nào thay đổi forlder home Ftp
    GoFlex Home Public thành forlder name 8 ký tự ko
    để tôi du g ftp trên camera dahua
    camera dahua không hổ trợ forlder tên dài

    ReplyDelete
  3. help rename forlder
    GoFlex Home Public to NAME

    ReplyDelete
    Replies
    1. Apologies for taking so long to reply to your question. I have been away from the internet for a few days.

      There should be no need to rename the folder. The GoFlex Home Public folder is actually /home/0common .
      The GoFlex Home Public is a symlink in the user's folder which redirects to /home/0common.

      I use AndFTP from my phone and can read/write to the /home/0common with no trouble.

      Delete
  4. chào bạn ban có biết

    user admin va pasword không.?

    ReplyDelete
    Replies
    1. Apologies again. I use sftp which can access /home/0common

      For standard ftp it may be best to create a symbolic link or shortcut to the GoFlex Home Public folder.
      Connect with SSH and become superuser http://goflexhome.blogspot.com.au/p/ssh_3.html

      After becoming superuser enter the command

      ln -s GoFlex\ Home\ Public dahua

      This will create the virtual folder dahua.
      Be sure to include the \ characters before the spaces in the folder name.

      After creating the link dahua I can upload files to the Public folder in Winscp on my laptop or from my phone with AndFTP using plain FTP

      Delete
    2. In the Dahua camera interface FTP tab the remote directory should be

      /home/user/dahua

      Where "user" is the username that you connect with. So, for example if your GoFlex Home username is hieu then /home/hieu/dahua.

      Delete
  5. chào mọi người
    cho mình hỏi ftp server của goflexhome có bao nhiêu phiên kết nối
    mình dùng camera dahua record ftp vào goflexhome thì có phiên được phiên không
    ftp client dahua c35 record khoang 5 de 8 phiên
    """""::::::"""""""""
    cho minh hỏi thêm goflexhone có Nas server không nfs server
    camera dahua c35 co nas client
    mình muốn record băng NAS client to goflexhome
    thank

    ReplyDelete
  6. I saw that dahua webcam also has the option to save to NAS as well as FTP and I wondered why you wanted to use FTP.
    The dahua manual is not clear on what protocol it uses to connect to NAS but I assume it is smb or windows file sharing. GoFlex Home has a samba server which is how you usually do file sharing from a PC or Android Or Windows phone.

    My post on making the public folder read only https://goflexhome.blogspot.com.au/2015/11/protect-public-folder.html shows how to edit the smb.conf file in case you have trouble with long names with spaces.

    You can also chnage the real folder names by editing the /etc/branding conf file.
    Changing the names is simple but because you also have to change the smb.conf to match the new folder names and also any existing mappings or backup paths, the suggested solution of symbolic link is simpler.

    What was the problem you had with FTP?

    I didn't understand and since I don't read vietnamese I have to use Google translate which was unclear.

    ReplyDelete
  7. FTP tôi hay bị lỗi
    nếu dùng 1 camera thi ok
    nhừn dùng 2 camera trở đi thì lỗi record
    cameea dahua có mục record storage NAS
    nên bạn biết thì hướng dẫn
    stoeage NAS
    edit btanding.conf or samba.conf
    thank
    camera ip dahua c35

    ReplyDelete
    Replies
    1. If 1 camera is working with ftp but 2 or more cameras do not save correctly then maybe the data transfer rate is too much. Make sure that you are using H.264 encode and consider reducing the resolution or framerate or snapshot instead of video stream.

      You can try the NAS record instead of FTP.
      Edit the smb.conf file to create a new share location if spaces in the file name cause problems.

      First, connect with SSH and become root user

      Use vi text editor to edit the samba configuration file with the command vi etc/samba/smb.conf
      use the arrow (cursor) keys to move to the end of the file and then type a to enter input mode in vi and add the following text to the smb.conf file

      [Dahua]
      comment = GoFlex Home Public
      path=/home/%U/GoFlex Home Public
      browseable = yes
      writeable = yes
      guest ok = no
      #guest only = no
      #public = yes
      create mode = 0664
      directory mode = 0775
      force create mode = 0664
      force directory mode = 0775
      force security mode = 0775
      force directory security mode = 0775
      force group = users
      valid users = %U


      Press 'Esc' to exit input mode and type ZZ (note capitals) to save and exit smb.conf

      Restart the smb server by entering the command /etc/init.d/smb restart and wait for restart.

      Delete
    2. I haven't done any testing myself but the internet says FTP is faster then SMB.
      See how you go with 1 camera using FTP and 1 using NAS/smb. If it still fails then you are probably past the limit of the GoFlex Home's hardware for streaming 1080p video.

      Delete
    3. I just realised that NAS won't work as the Dahua NAS interface doesn't have anywhere to enter username and password so you will not be able to connect to the server.
      I will investigate anonymous access with smb.

      Delete
  8. cám ơn bạn trong thời gian qua đã trả lời hưỡng dẫn tôi
    tôi sẽ thử xem
    thank

    ReplyDelete
    Replies
    1. I have added a new post to show the three ways of recording IP camera to the GoFlex Home.
      https://goflexhome.blogspot.com.au/2018/03/ip-camera-record-to-goflex-home.html

      I am interested to know if the NAS option works with the Dahua camera

      Delete
  9. Thank you
    tôi đã làm và thành công nhưng chỉ với share windows or android
    còn cameara dahua thì cấu hình OK nhưng không có record nào cả
    theo tôi biết NAS phải là NFS server
    có the DAHUA NAS chỉ hổ trợ SMB
    còn NFS thì không có

    goflex home seagate có NFS server không
    thank

    ReplyDelete
    Replies
    1. Thanks for the information.
      GoFlex Home doesn't have NFS. Instructions to install it can be found here
      http://www.openstora.com/wiki/index.php?title=Kernel_mode_NFS
      But since it says it won't work with NTFS format drives then I think FTP is still the best option for you.

      Delete
  10. thank
    rất vui vì đã trò chuyện với 1 người nước ngoài như ban
    facebook

    ReplyDelete
  11. hj Kenji
    goflexhome có thể chạy script command để getip public
    giống như ddns
    tôi mún viết 1 script ipdate ip public vào file trong forlder goflexhome
    nếu được thì đây là ddns free
    hjhj

    ReplyDelete
  12. help cách sử dụng lệnh trong goflex home
    mình vào forlder sbin có lệnh ifconfig
    nhưng khi run thì thông báo command not found
    login root

    ReplyDelete
  13. hi mới khám phá hóa ra tên miền
    [nasname].seagateshare.com chính là ip public cua ISP
    hj hj hj
    or ssh run command curl -s ipinfo.io/ip

    ReplyDelete
    Replies
    1. seagateshare.com is a proxy for remote connection so that users do not need to know their own public IP address to log in remotely. There is a service on the GoFlex Home which updates the proxy with your current IP address.

      There is a lot more information available on the OpenStora website
      http://www.openstora.com/wiki/index.php?title=Main_Page

      I tried to get my GFH to work with SSH keys so that I could send commands without manually logging in but I was not successful.

      The best I could do is use the Hipserv API with php. The API is quite powerful and is the basis of the Hipserv mobile app for iPhone and Android.

      http://www.openstora.com/files/albums/userpics/10078/HipServ_Web_Services_API_v1_2.pdf

      Delete
    2. My post of Auto remote shutdown
      http://goflexhome.blogspot.com.au/2015/11/auto-remote-shutdown.html
      gives some tips about using the API and php command line

      Delete
  14. hj
    tôi có vấn đề này hỏi
    pc login vào goflexhome có mục preferences đê cài đặt goflexhome
    androis thì không có mục preferences
    phần mềm ch play goflex access cũng không có preferences
    tại sao

    ReplyDelete
    Replies
    1. You do not install GoFlex Home. It is a separate computer.
      Seagate provides Dashboard software and you have the option to install that software.
      But all the dashboard software does is set up drive mappings on your PC and provide shortcuts to GoFlex Home web pages.
      The dashboard software is designed for users who know absolutely nothing about computers. My opinion is that people who know nothing about computers should not get a NAS.

      Delete
  15. Hj
    Tôi có gặp vấn đề golexhome
    nếu goflexhome set ip dhcp thì ok
    nếu goflexhome set ip static thì ok nhưng reboot goflexhome thì ip dns bị sai thay vào là 1 địa chỉ nào đó
    thank

    ReplyDelete
    Replies
    1. You need to set your router to assign the static ip address to the GoFlex Home otherwise the router DHCP server will dynamically assign a random ip address each time.

      Delete
  16. Can you write how to connect to goflex home via sftp instead of ftp assume that we have trial license

    ReplyDelete
    Replies
    1. Do you mean SFTP or FTPS?
      They aren't the same thing and the trial licence/Seagate Pro licence is only "required" for FTPS.

      What application are you using to connect?
      A lot on the client software and I generally use SFTP and recommend using that as I have found FTPS to be a bit fussy.

      Delete
    2. Hi Anonymous, I worked out the problem you might be having with FTPS and have added a post
      https://goflexhome.blogspot.com/2018/07/ftps-stopped-working.html#more

      Delete