Posts by movielover76

    Excuse my ignorance but how and where would I put that environment variable?

    I've got a reasonable amount of linux skills but I'm not an expert


    thanks,

    Why not just run the script with the Pre-Exec and Post-exec commands. This is exactly why it is there.

    If you set hourly to 0, it will only run at the cron job times (early morning) -

    https://github.com/OpenMediaVa…in/omv-rsnapshot-conf#L56

    https://github.com/OpenMediaVa…in/omv-rsnapshot-conf#L32

    Ok so if I understand it correctly daily, weekly, monthly and yearly run around 1 - 2 am?

    That's not ideal as I have a few night owls who watch my plex server, I'd prefer 4 - 6am

    I would like to use the Rsnapshot plugin to backup my docker container config folders, obviously to do this I have to shut down the containers.

    I've created a script to run before and after the Rnsapshot job but I don't see any way to schedule it.


    Can I schedule it manually? or if it runs automatically when does it run?

    I would like to do weekly backups but as I use many of these services I only want it to run during off hours


    Thank you

    I love OMV and it's great software. I apologize in advance but I'm just wondering how long it will be for a stable OMV 6.


    I know developers hate that question but I'm not looking for anything specific, maybe like a quarter or general idea.


    Thank you for all your hard work, I really appreciate it :)

    I've got this issue that from my windows machine I cannot login to the webui via Brave (my default browser)

    I don't get an error, I hit submit and it just refreshes to the blank login page


    It works fine in Linux and the two brave instances even share the same configuration as they are sync'd and extensions.

    No strange extensions bitwarden, Grammarly, screenshoter, messages for web, the camelizer


    Any ideas what could be going on?

    It works from firefox on the same windows machine (my current workaround)


    thanks,

    John

    I've got the latest openmediavault 5.x installed, all current updates are installed.

    I've configured the notification settings and I've tried the test email button and the configuration works. I get the test email.

    However, I'm not getting any system notifications.

    This is particularly an issue for my cronjobs. I have omv-backup running weekly and snapraid diff running daily.

    I have selected send results via email. but the emails are not going out.

    I noticed something different recently it says it will email to the user it's running as which is root

    I checked mail logged in via SSH for root and it's not in root's inbox either.


    Any ideas what could be wrong?

    thanks

    I had a similar problem installing fail2ban.

    The webui component should be visible even though it didn't fully install. Go to the webui and fill in the last box action with one of the calling values. I used action_mwl. Then login via ssh and do a sudo apt-get upgrade and the package should complete it's installation

    I've managed to get the ssh and webui-omv filters to work by disabling everything else.

    I left everything pretty much at the default and it seems some of the filters I have enabled were causing the service to fail to run.


    sshd-ddos which I would like to have enabled failed with the error in fail2ban.log

    2020-08-30 16:05:13,337 fail2ban.transmitter [5092]: ERROR Jail 'ssh-ddos' skipped, because of wrong configuration: Unable to read the filter 'sshd-ddos'

    I still need help with this filter


    Do you know if the apache or ngix filters are needed, I'm not running any of my own sites

    But I think the webui uses nginx, right?

    From where are you trying to ssh in?


    Look in the fail2ban configuration file to see if you have any applicable ignoreip settings.

    I'm trying to login from a machine on my local network IP address 192.168.1.235

    I left the ignoreip setting at the default value 127.0.0.1

    I can see the invalid login attempts in the log file configured in fail2ban


    Aug 30 15:06:42 Rapier sshd[6078]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.235 user=root

    Aug 30 15:06:44 Rapier sshd[6078]: Failed password for root from 192.168.1.235 port 50570 ssh2

    Aug 30 15:06:49 Rapier sshd[6078]: Failed password for root from 192.168.1.235 port 50570 ssh2

    Aug 30 15:06:55 Rapier sshd[6078]: Failed password for root from 192.168.1.235 port 50570 ssh2

    Aug 30 15:06:57 Rapier sshd[6078]: Connection closed by authenticating user root 192.168.1.235 port 50570 [preauth]

    Aug 30 15:06:57 Rapier sshd[6078]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.235 user=root

    Aug 30 15:07:01 Rapier sshd[6166]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.235 user=root

    Aug 30 15:07:03 Rapier sshd[6166]: Failed password for root from 192.168.1.235 port 50572 ssh2

    Aug 30 15:07:08 Rapier sshd[6166]: Failed password for root from 192.168.1.235 port 50572 ssh2

    Aug 30 15:07:11 Rapier sshd[6166]: Failed password for root from 192.168.1.235 port 50572 ssh2

    Aug 30 15:07:13 Rapier sshd[6166]: Connection closed by authenticating user root 192.168.1.235 port 50572 [preauth]

    Aug 30 15:07:13 Rapier sshd[6166]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.235 user=root

    Aug 30 15:07:17 Rapier sshd[6236]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.235 user=root

    Aug 30 15:07:19 Rapier sshd[6236]: Failed password for root from 192.168.1.235 port 50574 ssh2

    Aug 30 15:07:25 Rapier sshd[6236]: Failed password for root from 192.168.1.235 port 50574 ssh2

    Aug 30 15:07:30 Rapier sshd[6236]: Failed password for root from 192.168.1.235 port 50574 ssh2

    Aug 30 15:07:31 Rapier sshd[6236]: Connection closed by authenticating user root 192.168.1.235 port 50574 [preauth]

    Aug 30 15:07:31 Rapier sshd[6236]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.235 user=root

    Aug 30 15:07:35 Rapier sshd[6332]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1.235 user=root

    Aug 30 15:07:37 Rapier sshd[6332]: Failed password for root from 192.168.1.235 port 50576 ssh2

    Aug 30 15:07:46 Rapier sshd[6332]: Connection closed by authenticating user root 192.168.1.235 port 50576 [preauth]

    Aug 30 15:08:43 Rapier sshd[6580]: Accepted password for root from 192.168.1.235 port 50578 ssh2

    Aug 30 15:08:43 Rapier sshd[6580]: pam_unix(sshd:session): session opened for user root by (uid=0)


    It looks like the Fail2ban service is failing to load

    docker.service loaded active running Docker Application Container Engine

    ● fail2ban.service loaded failed failed Fail2Ban Service

    folder2ram_startup.service loaded active exited folder2ram systemd service


    Thanks for the reploy

    I've installed and configured fail2ban

    I enabled ssh, ssh-ddos, omv-webui, ngix-404 and both apache jails.


    I started off trying to test it with ssh (the most important to me)

    But sshing into the server lets me try 3 times and then disconnects me and I can immediately try the command again

    I've done it like 5 times in a row and the ban never takes effect.

    I even tried manually restarting the fail2ban service via the command line.


    Any ideas what could be wrong?

    I have two main file shares, mostly media but some other stuff likes backups, software, etc

    I'm the only person who really accesses my server directly. My wife,son and friends access the plex server but not the file shares, rdesktop or ssh.

    Because I'm the only person accessing these files directly I just set both shares to everyone read/write. I set samba to allow guests, though I'm thinking I shouldn't trust my network so much and enforce a password for smb login.

    I installed rdesktop in a docker container because to be honest when dealing with so many files it's much easier to have a GUI file manager than using console commands.

    I've noticed with this setup OMV has set most of the share directories to be owned by root and in the group users.

    Most of my files are the same except for a directory of movies I copied via a smb share that is owned by nobody with a group of nogroup


    For SMB I'm having some weird behavior

    From windows I can access both shares with no issues and create/edit/delete files.

    From a chromebook I can read files, but I can't delete anything.

    This could just be an issue with chromebook's smb support, what do you think?


    For RDESKTOP

    I'm running it the the PUID and PGID of the admin user and I set it to privileged

    I gave access to both file shares

    Some of the files are owned by root:users and those I can manage fine.

    Others are owned by root:root and those files I can't delete in a RDESKTOP file manager.


    Should I really be trying to maintain my files as owned by root:users so I can access them and manipulate them anywhere?

    I do have some experience with linux in the past and having most of my files owned by root just seems odd.

    But if I use the reset permissions plugin, that's what it sets all files and directories to.


    Thank for helping out a OMV newbie.

    I really enjoy this software, especially the ease of adding other software via docker images.

    It's brought my old server from 2009 back to life, on windows it was running slow and very poorly.