SlrG

Community Developer
  • Posts

    584
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by SlrG

  1. @MJA Inc. The second install option from the first post should still work, I think. @all If anyone want's to pick up my work, you're welcome! It is open source, feel free to use it.
  2. @kricker Please let me know, if you find anything unusual.
  3. @kricker I would guess that if it crashes because of heavy access over the net, it would crash locally, too. If you hammer it locally and there are no issues, I would suspect the internet connection drops. Do you use a vpn to access your server? Goes this tunnel down, too and if not, does your server itself stay up or does the whole unraid server crash? By default proftpd logs to the syslog, so in theory you could look there, if there is anything unusual.
  4. @Thulsa Doom You don't need the Webserver functionality to setup a FTP server. It was used to edit the proftpd.conf and configure the FTP server from the plugins settings page. Some unRAID security updates broke this functionality a long time ago and it has been broken since then. I have sadly no time to work on this plugin any longer. If you want to use the FTP server, only the first setting you have already enabled is relevant. Just edit the proftpd.conf from the shell using vi or nano or by accessing your boot drive from any linux, windows or mac system you have, where you can use a text editor of your choice. Afterwards don't forget to reboot the FTP server, so the new settings get activated. Read through the thread to find how to error check your config and how to enable encryption. Be aware, that as FTP is by default an unencrypted protocol, it is not recommended to expose it to the internet. @all I stopped using unRAID myself so I can't support this plugin any further. If other developers want to take over, feel free to use my code. Thank you all for your support over the years. ❤️
  5. @Renegade605 The short answer: No there isn't. The long one: A bit more of the inaccurate numbers were fixed upstream but it still wasn't a complete fix. Also since v9.0 the coreutils developer team introduced a new kernel space copy mechanism to the original cp and mv. Since then it is no longer possible (at least to my knowledge), for the patch to track the progress of the individual file copy. It jumps from 0 to 100% and back to 0, ... for each new file, whenever the new method is used (most of the time). As there is no solution, this basically killed the upstream project. No one is able to work on this patch anymore and time seems to be another limitation. Without a real upstream fix, it doesn't make sense to update the plugin.
  6. @PlanetDyna Looking at your config and the error message a bit more, I would try to add "RequireValidShell no" to your virtual server config, as the global one probably doesn't carry over. Also following proftpds example sftp conf from here, I would try to remove the "SFTPAuthMethods publickey" clause and add "MaxLoginAttempts 6".
  7. @PlanetDyna That looks as if you didn't add the keyword "ftpuser" in the comment field of your user test, or didn't restart the plugin after creating the user. The plugin prevents "normal" users without the keyword from logging in via FTP by assigning an invalid shell for security reasons.
  8. @kricker I'm glad you got it working. 😀 The number of ports in the range should match the range of ports opened in your router. Of course it would be possible to open more ports than proftpd needs, but that wouldn't really make sense. And going the other way round and declaring ports as open, that really are not, is not advised either. It increases the chance the connection fails, as AFAIK the passive ports are opened randomly and not in order starting with the lowest one.
  9. @solomonshv Thank you very much for your kind words. 🥰 I wish I had time to work on the plugin and remove the old and broken webserver based configuration functionality. I'm very happy it works for you as it is.
  10. @postboy99 It's possible to check if there are users connected and what they are doing by calling /usr/local/SlrG-Common/usr/local/bin/ftptop from a shell.
  11. @bonienl Thank you very much, for answering my request. I'm not set on fork awesome in any way. It was just an example of what could easily be used as open source alternative. If there already is a special font the gui uses, I would really like to apply for the proftpd font icon I designed for fork awesome to be included. I have the permission of the original proftpd author to use it. If there are any changes needed or source files I could supply or a place for me to supply a pull request, please let me know. Or do you know an alternative how I could include an icon in my plugin which is compatible with all available themes? As you already did, I don't want to tag @limetech or @Mex again at the moment. I hope they see this and I get a response. If not, may I ask you later to ask them in my Name if there is a chance? @Squid Thank you for testing. Please see my answer above. Of course I don't want to degrade the unraid icon quality. I would have liked for font awesome to include a proftpd icon, but their prices are insane for me as hobby developer with a non profit plugin. 😢 So I'm searching for alternatives.
  12. @limetech@bonienl I would like to kindly ask for an official answer regarding my feature request: I really think Unraid would benefit from having its own icon font. Maybe it doesn't even need to replace Font Awesome, but could complement it.
  13. @Mr_Jay84 You don't. The functionality is sadly broken since a long time. But you don't really need it anyway. Just use the shell editor of your choice (nano, vi or mc's editor) to edit the proftpd.conf directly. nano /etc/proftpd.conf Check the changes by running: /usr/local/SlrG-Common/usr/local/sbin/proftpd -t -c /etc/proftpd.conf Which will look like this, if no errors are found (the mod_lang message can be ignored). Checking syntax of configuration file 2022-02-09 17:42:39,824 lafiel proftpd[18318] 127.0.0.1: mod_lang/1.1: unable to scan the localised files in '/usr/local/share/locale': No such file or directory Restart the ProFTPd server afterwards in the plugins settings or from the shell for the changes to take effect. /etc/rc.d/rc.ProFTPd restart
  14. @eFrame You seem to be establishing a connection in passive mode. Please make sure you define a passive port range and make sure the firewall on your router opens the passive ftp port range to your server, too. Also you probably need to set a masquerade address (your dyndns hostname or static external ip). Also my usual "disclaimer". I don't recommend for the unraid server to be directly accessible from the internet. IMHO it is better to create a VPN connection to your home network and then using that to connect to your server. Then the VPN handles the encryption and FTP can be used unencrypted. This works only for your own and family devices, however and not if you need other "clients" to connect., too.
  15. @Gee1 I think this is not possible. To be absolutely sure, its probably better to ask in the proftpd forum.
  16. Do you connect as root or as another user? The symlink /etc/proftpd.conf requires root access to be modified. Alternatively you could modify the file in it's storage location /boot/config/plugins/ProFTPd/proftpd.conf.
  17. @KentBrockman I'm glad you are happy. KB/s is Kilo Bytes per Second. 1 Kilo Byte is 1024 Byte and 1 Byte is 8 bit. So 1 KB/s is 8192 bits per second or 8192 bps. Your chosen values of 500 KB/s are 4096000 bps or 4 Mbps and 1000KB/s are 8192000 bps or 8 Mbps. If other things in your network besides your FTP server generate some traffic too, this would probably explain the overhead reported by your router.
  18. @KentBrockman The proftpd version in the plugin is compiled with integrated mod_shaper support. So by editing your proftpd.conf file and adding directives as described in the link you have posted above, you should be able to limit the bandwith proftpd is able to use. An configuration example is given on the bottom of the page you linked. Obviously you will have to modify the paths and directives from the example to suit your needs, but it should get you started. <IfModule mod_shaper.c> ShaperEngine on ShaperLog /var/log/ftpd/shaper.log ShaperTable /var/log/ftpd/shaper.tab # An overall rate (in KB/s) must be set. This line explicitly # sets both the download and upload rates to be the same. ShaperAll downrate 1500 uprate 1500 # Allow all system users to see shaper info ShaperControlsACLs info allow user * # Allow FTP admins to alter settings both overall and per-session ShaperControlsACLs all,sess allow group ftpadm </IfModule> Don't forget to test your modified configuration. It should give you hints if something is not correctly configured: /usr/local/SlrG-Common/usr/local/sbin/proftpd -c /etc/proftpd.conf -t Also remember to restart the proftpd server from the plugins configuration page for the changes to take effect.
  19. @KluthR Using FTPS is possible, and if you search this thread, you will find infos how to do it, but it is not a very straightforward process and integrating it flawlessly into the plugin wouldn't be easy. More so if LE certificates would be used, as they need to be renewed regularly and the server has to fulfill certain requirements (e.g. fixed public IP) to get a certificate. Also if it works and what is needed to make it work depends heavily on the users personal network setup which come in a multitude of variants. Such "complicated" setups leave the scope of what this plugin is designed for (quick, easy, unencrypted FTP for private networks, tightly integrated into the unraid user management) and I recommend using a docker alternative or setting up a VM which will allow for much more ease and freedom in tinkering with the system. The underlying slackware linux of unraid is very basic and is missing a lot of packages and management tools other distros have by default. As plugins are directly modifying the unraid system any additional package increases the risk to break the base functionality and potentionelly harm the data integrity. Firing up an ubuntu vm with proftpd and gadmin-proftpd gui or using another ftpserver with gui and mounting the shares to be accessed by ftp is much easier and will be more flexible in the long run. Personally for larger projects I like CrushFTP, which is not free however.
  20. @KluthR Thank you very much. I'm happy that you like the plugin. This is a great idea. At the moment the option is broken, but I hope to bring it back/replace it based on stock unraid functionality in the future. I'm still in the research phase however and have so little time besides job and family. Cool idea. I'll put it on my research list, too. While not accessible through the plugins settings page (and you might already know this), but it's possible to check if there are users connected and what they are doing by calling /usr/local/SlrG-Common/usr/local/bin/ftptop from a shell.
  21. @master00 Not within the scope of this plugin. If you setup a vm and install gadmin-proftpd as gui this will come with gprostats as statistics generator. Also there might be other ftp servers more capable but not necessarily free. @kricker The easiest way would be to restore a backup, if you have. Otherwise as there is no recycle bin you can only search and try some linux ways to restore your data. First make sure nothing is written to your array anymore or you will risk the deleted data being overwritten! I had successes using testdisk and photorec on standalone machines, but never had to try on an unraid machine yet. (see this article for other tools: https://www.journaldev.com/36900/top-best-linux-data-recovery-tools) Make sure however, you mount another disk outside of your array as target for all write operations or again you will risk the deleted data being overwritten. Also you will probably need to know on which exact disk the data you want to recover was and then let the tools work on that disk. I hope this ideas are useful, but I fear the chance to recover the data is very slim. 😟
  22. @SvbZ3r0 Yes, sadly the last change by me to solve the problems with quotes and double quotes in filenames is not perfect either and shows the shown symptoms under certain conditions. In all my test there was never data lost, but from time to time these "cosmetic" problems show up. If I have the time, I'll have a look at it again and will try to solve it. Sadly my times is very limited, so please don't expect fast results.
  23. @Berto90vi In unraids user creation screen open your user "x" and put "ftpuser /mnt/user/Download" (without the double quotes) into the Description field. Then apply and restart the proftpd plugin. This will jail the user x into the given directory. It will still have read and write access, however. If you want to restrict that, you will need to configure limits in your proftpd.conf.
  24. Hi, While I really like Font Awesome as an icon provider, I would prefer for it to be switched to a more open source alternative, like Fork Awesome. Or maybe it would be an even better idea to create an own unraid icon font based on Fork Awesome. Developers could then create their own icon for their plugin and it could be added by merging their pull request on the new unraid fonts repository. Please let me know your opinions. Background Story: I'm the developer of the ProFTPD plugin and obviously I would like to use an icon of the official logo for the plugin. In March 2019 I requested the logo to be incorporated in font awesome. But as it was classified as a "brand icon" it would cost 3.000$ to get it included. Even the non brand 300$ would be to much for me. As it is now 2021 I doubt it has a chance to be included for free in the future. Getting it included into fork awesome was much easier. cheers, SlrG
  25. @Flemming See here for the difference between active and passive ftp. For both types normally data ports >1024 are randomly opened. You can restrict the used ports using the PassivePorts directive.