fail2ban jail not being enabled [closed] - server

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I want to secure my debian server with Fail2Ban v0.9.6. So I created the following entries in the newly created file /etc/fail2ban/jail.local
[nextcloud-trusted]
enable = true
port = http,https
logpath = /var/nextcloud/data/nextcloud.log
maxretry = 3
[sshd]
enable = true
The corresponding filter definition in /etc/fail2ban/filter.d/nextcloud-trusted.conf looks like this
[Definition]
failregex = ^.*\"remoteAddr\":\"<HOST>\".*Trusted domain error.*$
Now I would expect fail2ban to enable both jails at startup, but only the jail sshd is being enabled but not nextcloud-trusted and I can't figure out why. Even adding the paramter backend = auto to the nextcloud-trusted jail doesn't change anything (as it was suggested in some other answers).

It turns out I wrote enable instead of enabled. That was the error.

Related

jboss_cli active sessions details [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I am pretty new to jboss and am wondering if we can get the details about the active sessions on a deployment.
For count its possible via /deployment=DEPLOYMENT.war/subsystem=undertow/:read-attribute(name=active-sessions)
But I am looking into if I can list out all the active connections with some details? and if required can kill any one based on my requirement via jboss_cli?
Any guidance or help will be really appreciated.
Thank you,
Sunny
No longer required, found an alternative instead of jboss fixed the issue from FE level.

Live-Server not working in Visual Studio Code port 5500 [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I'm new to VS code and web developing altogether. I created a website a few hours ago and ran it with live server on VS code, and everything was fine. Now I'm trying to run another website but when I run the live server, the old site pops up. I noticed that port 5500 is part of the URL and there's no file uploaded (meaning no .html) but the old site is on my browser. I've read about changing port 5500 but don't understand those instructions, when I go to the VS code settings, I find the option but can't find how to change the port...
I uninstalled and installed the extension, and nothing.
Any idea? Thanks!

Facebook auth with pointer url [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I have a domain name that points to an amazon instance. I am trying to get facebook authentication to work through my Facebook app. Unfortunately authentication through Facebook only works when a user goes directly to the url of the instance.
Ex: it works at my ec2-... url but not my domain url even though they share the same ip.
How can I solve this issue?
The problem originated in the use of an incorrect environment variable url within my deployment script.

Matlab on Ubuntu: Unable to read file [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I am trying to run a MATLAB program on my computer running Ubuntu 12.04. Then when it runs to the code
load('data\sparse_combinations\Tw.mat', 'Tw')
MATLAB will report this error
Error using load
Unable to read file 'data\sparse_combinations\Tw.mat': no sucn file or directory
But when I enter the directory 'sparse_combinations', then run the code
load('Tw.mat')
it works well.
Can you help me find the reason?
As pointed out by #Marcin the problem is the usage of the wrong path seperator.
A good and general fix for this type of issue would be the use of fullfile - this command takes care of the issues of path seperation and platforms for you.
load( fullfile('data','sparse_combinations','Tw.mat'), 'Tw')
will work both on windows machines as well as Linux/Unix ones. No need to change code when porting to other platforms!

postgresql accept dynamic dns hosts? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am doing work on a server with a postgresql database from home, where I have a dynamic IP, so I use the no-ip ddns service to map my ip to a host name.
I want to edit the pg_hba.conf file so that I can get into the database from home (not setting it to all hosts), but it doesn't seem to work with the host name. Is there anyway to make it work?
This won't work, because the DNS name in pg_hba.conf needs to match the reverse DNS- IP-to-name- lookup result for your IP address: this is assigned by your connectivity provider, and ddns doesn't touch it (just provides an extra forward- name-to-IP- entry).
I believe this functionality was introduced in v9.1: http://www.postgresql.org/docs/9.1/interactive/auth-pg-hba-conf.html
If you're using a version prior to that, you could write a cron-fired shell script that does the DNS lookup and dynamically creates the pg_hba.conf file. (You might have to do a HUP after changing it, not sure off the top of my head.)