Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • popvid

    (@popvid)

    Ouch! Well this is a deal-breaker. I was just about to purchase the plugin when I read this. As I am both a professional photographer and videographer, I need both functions. I’ll submit an email to their support–maybe someone will know a work around.

    @calisun That snippet of code was written in 2009. Maybe it will work, maybe not. But if NextGen hasn’t implemented this feature in 10 years, I wouldn’t hold your breath…

    Thread Starter popvid

    (@popvid)

    Alright…finally. Disregard that last section. It is up and running now that I created the appropriate log files. Will let you know if I run into any more problems. Thanks again!

    • This reply was modified 5 years, 3 months ago by popvid.
    Thread Starter popvid

    (@popvid)

    Thanks again for your help! With your conf file(s) loaded and code placed in jail.local (behavior is same for each):

    root@vps30001 [/etc/fail2ban]# fail2ban-client -v -v start

    INFO   Loading configs for fail2ban under /etc/fail2ban
    DEBUG  Reading configs for fail2ban under /etc/fail2ban
    DEBUG  Reading config files: /etc/fail2ban/fail2ban.conf
    INFO     Loading files: ['/etc/fail2ban/fail2ban.conf']
    INFO     Loading files: ['/etc/fail2ban/fail2ban.conf']
    INFO   Using socket file /var/run/fail2ban/fail2ban.sock
    INFO   Loading configs for jail under /etc/fail2ban
    DEBUG  Reading configs for jail under /etc/fail2ban
    DEBUG  Reading config files: /etc/fail2ban/jail.conf, /etc/fail2ban/jail.d/00-firewalld.conf, /etc/fail2ban/jail.local, /etc/fail2ban/jail.d/sshd.local
    INFO     Loading files: ['/etc/fail2ban/jail.conf']
    INFO     Loading files: ['/etc/fail2ban/paths-fedora.conf']
    INFO     Loading files: ['/etc/fail2ban/paths-common.conf']
    INFO     Loading files: ['/etc/fail2ban/paths-overrides.local']
    INFO     Loading files: ['/etc/fail2ban/jail.d/00-firewalld.conf']
    INFO     Loading files: ['/etc/fail2ban/jail.local']
    INFO     Loading files: ['/etc/fail2ban/jail.d/sshd.local']
    INFO     Loading files: ['/etc/fail2ban/paths-common.conf', '/etc/fail2ban/paths-fedora.conf', '/etc/fail2ban/jail.conf', '/etc/fail2ban/jail.d/00-firewalld.conf', '/etc/fail2ban/paths-common.conf', '/etc/fail2ban/paths-fedora.conf', '/etc/fail2ban/jail.local', '/etc/fail2ban/jail.d/sshd.local']
    INFO   Loading configs for filter.d/sshd under /etc/fail2ban
    DEBUG  Reading configs for filter.d/sshd under /etc/fail2ban
    DEBUG  Reading config files: /etc/fail2ban/filter.d/sshd.conf
    INFO     Loading files: ['/etc/fail2ban/filter.d/sshd.conf']
    INFO     Loading files: ['/etc/fail2ban/filter.d/common.conf']
    INFO     Loading files: ['/etc/fail2ban/filter.d/common.local']
    INFO     Loading files: ['/etc/fail2ban/filter.d/common.conf', '/etc/fail2ban/filter.d/sshd.conf']
    INFO   Loading configs for action.d/iptables-multiport under /etc/fail2ban
    DEBUG  Reading configs for action.d/iptables-multiport under /etc/fail2ban
    DEBUG  Reading config files: /etc/fail2ban/action.d/iptables-multiport.conf
    INFO     Loading files: ['/etc/fail2ban/action.d/iptables-multiport.conf']
    INFO     Loading files: ['/etc/fail2ban/action.d/iptables-common.conf']
    INFO     Loading files: ['/etc/fail2ban/action.d/iptables-blocktype.local']
    INFO     Loading files: ['/etc/fail2ban/action.d/iptables-common.local']
    INFO     Loading files: ['/etc/fail2ban/action.d/iptables-common.conf', '/etc/fail2ban/action.d/iptables-multiport.conf']
    INFO   Loading configs for filter.d/wordpress-soft under /etc/fail2ban
    DEBUG  Reading configs for filter.d/wordpress-soft under /etc/fail2ban
    DEBUG  Reading config files: /etc/fail2ban/filter.d/wordpress-soft.conf
    INFO     Loading files: ['/etc/fail2ban/filter.d/wordpress-soft.conf']
    ERROR  Failed during configuration: File contains no section headers.
    file: /etc/fail2ban/filter.d/wordpress-soft.conf, line: 1
    • This reply was modified 5 years, 3 months ago by popvid.
    Thread Starter popvid

    (@popvid)

    Will have to backtrack on my false assumption. It appears they have installed everything correctly. I deleted all files from this plugin and restarted the service and f2b runs fine. I reinstalled this plugin along with all requisite files, checked their locations, etc, but as soon as I add the [wordpress-hard] and/or [wordpress-soft] and/or [wordpress-extra] instructions to jail.local, the service breaks.

    I will mention that this is a VPS using cPanel and as I mentioned above, the WP install is not located in /var/www/html/.

    I did find that WP lives in /home/name of cpanel account/public_html.

    Thread Starter popvid

    (@popvid)

    Thanks again for the reply. I downloaded those conf files to the directory and they are now in place. I then attempted to restart fail2ban and received the same error as above:

    root@vps30001 [/etc/fail2ban/filter.d]# systemctl restart fail2ban
    Job for fail2ban.service failed because the control process exited with error code. See "systemctl status fail2ban.service" and "journalctl -xe" for details.
    root@vps30001 [/etc/fail2ban/filter.d]# systemctl status fail2ban.service
    ● fail2ban.service - Fail2Ban Service
       Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled; vendor preset: disabled)
       Active: failed (Result: start-limit) since Wed 2019-08-07 12:37:43 EDT; 1min 10s ago
         Docs: man:fail2ban(1)
      Process: 21477 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, status=255)
     Main PID: 9099 (code=exited, status=0/SUCCESS)

    I could very well be wrong, but my intuition tells me they’ve installed the package in some abby-normal way. I will try to dig deeper.

    Thread Starter popvid

    (@popvid)

    I don’t think there is a way to get the service running, given how my host provider has set up the VPS server. If there is, I’m clueless about it. Although your configs are in the proper place when looking at the file viewer (public_html/wp-content/plugins/wp-fail2ban/filters.d/), I cannot find them in the terminal.

    I am told this should do the trick:
    sudo cp /var/www/html/wp-content/plugins/wp-fail2ban/filters.d/wordpress-hard.conf /etc/fail2ban/filter.d/
    but there is nothing in /var/www/html. So I don’t know where they’ve stashed those files. Also, if I look in /etc/fail2ban/fail2ban.d/ or /etc/fail2ban/filter.d there’s no -hard.conf or -soft.conf.

    Thread Starter popvid

    (@popvid)

    Thanks for the reply.

    Yes, they’re in the proper location.

    https://imgur.com/pegl7e5

    Thread Starter popvid

    (@popvid)

    Ah…disregard. I see the menu options on each page. Nice.

    Thanks!

    Ok, checked everything again and the test successfully ran.

    It may have been an intermittent problem with GTmetrix yesterday during the ~ one hour I attempted to run the test. Also, don’t know if it made any difference, but I had manually engaged the async setting yesterday, but didn’t attempt to repeat the test until now.

    Whatever the reason, the test worked and the plugin definitely made a difference. Many thanks!

    My apologies. I thought I had linked an image yesterday, but it appears I goofed. Here’s a link:

    View post on imgur.com

    Will check the PHP log.

    Thanks

    Same problem here. I can directly access their site and run tests without issue, but it fails when attempting to run the test using the API code and WP plugin.

    This site is hosted by InMotion and there is no evidence I can find of problems with dropped or slow connection speeds.

    • This reply was modified 5 years, 11 months ago by popvid.
    Thread Starter popvid

    (@popvid)

    Thanks for the reply. Sorry for the delayed response (notification email was not generated).

    I did as you asked and have included the information you requested. This is for one of the sites in question. I didn’t see anything out of sorts in ‘System Info’, but noticed quite the anomaly in “Settings: File-Change”. For some mysterious reason, the “expected hashes” section contain entries from another hosted site on my VPS server (which is also reporting file additions/deletions).

    
    ### Site Info ###
    Site URL: https://XXXXXXXXX.com
    Home URL: https://XXXXXXXXX.com
    Multisite: No
    
    ### WordPress Configuration ###
    Version: 4.9.8
    Language: en_US
    Permalink: /%year%/%monthnum%/%day%/%postname%/
    Theme: Divi
    Show on Front: page
    Page On Front: Home (#817)
    Page For Posts: Unset
    ABSPATH: /home/cXXXXXXX/public_html/
    Table Prefix: Length: 3 Status: Acceptable
    WP_DEBUG: Disabled
    WP_DEBUG_LOG: Disabled
    SCRIPT_DEBUG: Disabled
    Object Cache: No
    Memory Limit: 40M
    
    ### iThemes Security ###
    Build: 4108
    Pro: 
    Modules: ban-users, backup, brute-force, network-brute-force, wordpress-tweaks, ssl, 404-detection, file-change, and system-tweaks
    Cron: 1
    Cron Status: 1
    Scheduler: ITSEC_Scheduler_Cron
    
    ### Active Plugins ###
    Divi Booster: 2.7.9
    iThemes Security: 7.2.0
    Meta Tag Manager: 2.1
    Simple Calendar: 3.1.19
    TinyMCE Advanced: 4.8.0
    Typing Effect: 1.5
    UpdraftPlus - Backup/Restore: 2.15.5.1
    
    ### Webserver Configuration ###
    PHP Version: 5.6.38
    MySQL Version: 5.6.41
    Use MySQLi: Yes
    Webserver Info: apache
    Host: DBH/localhost, SRV/XXXXXXXX.com
    
    ### PHP Configuration ###
    Safe Mode: Disabled
    Memory Limit: 512M
    Upload Max Size: 128M
    Post Max Size: 128M
    Upload Max Filesize: 128M
    Time Limit: 30
    Max Input Vars: 1000
    Display Errors: N/A
    
    ### PHP Extensions ###
    cURL: Supported
    fsockopen: Supported
    SOAP Client: Installed
    Suhosin: Not Installed
    [/spoiler]
    [spoiler]
    {
        "file_list": [
            "/.htaccess"
        ],
        "types": [
            ".log",
            ".mo",
            ".po",
            ".bmp",
            ".gif",
            ".ico",
            ".jpe",
            ".jpeg",
            ".jpg",
            ".png",
            ".psd",
            ".raw",
            ".svg",
            ".tif",
            ".tiff",
            ".aif",
            ".flac",
            ".m4a",
            ".mp3",
            ".oga",
            ".ogg",
            ".ra",
            ".wav",
            ".wma",
            ".asf",
            ".avi",
            ".mkv",
            ".mov",
            ".mp4",
            ".mpe",
            ".mpeg",
            ".mpg",
            ".ogv",
            ".qt",
            ".rm",
            ".vob",
            ".webm",
            ".wm",
            ".wmv"
        ],
        "notify_admin": true,
        "show_warning": true,
        "expected_hashes": {
            "/home/sXXXXXX/public_html/.htaccess": "7b2XXXXXXXXXXX",   THIS PATH/HASH IS TO ANOTHER ACCOUNT ON THE VPS   ????
            "/home/sXXXXXX/public_html/wp-config.php": "23XXXXXXXXXXXX",   THIS PATH/HASH IS TO ANOTHER ACCOUNT ON THE VPS   ?????
            "/home/cXXXXXX/public_html/.htaccess": "66XXXXXXXXXXXXXXXX"   THIS IS THE PROPER PATH FOR THIS ACCOUNT
        },
        "last_scan": 8966
    }
    
    • This reply was modified 5 years, 12 months ago by popvid.
    • This reply was modified 5 years, 12 months ago by Jan Dembowski.
Viewing 12 replies - 1 through 12 (of 12 total)