question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Whitelist RegEx not working

See original GitHub issue

I don’t think I’ve overlooked anything but I’ve added a very simple regex to whitelist my local LAN’s IP range but if I perform a couple of deliberately incorrect logins, the IPs are still being banned.

<add key="WhitelistRegex" value="^(192\.168\.0\.*)"/>

But then:

Banning ip address: 192.168.0.172, user name: Admin, config black listed: True, count: 2, extra info:

The RegEx checks out on regex101 so I think it’s correct. I do make use of the [UserNameWhitelist] option, does the IP whitelist not override this? Any help appreciated.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jjxtracommented, Dec 2, 2019

I’ll make a unit test and get back

0reactions
jjxtracommented, Dec 27, 2019

Just released 1.5.3.0 which has this one change and fixes the whitelist regex.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Whitelisting a domain (regex) does not work (For people ...
I Have Tried These Steps: Rebooting system and DNS resolver; Resetting Pi-hole completely (delete all files, and re-create Docker); Disabling ...
Read more >
Regex, string is a combination of whitelisted characters ...
I receive two groups of characters (whitelist and blacklist) from a server and need to validate user input based on those. I cannot...
Read more >
How to whitelist correctly (RegEx) : r/pihole
A great place to test if your regex is going to work or not is https://regex101.com. You can paste in some test data...
Read more >
does whitelisting patterns / regex work
It looks like whitelist only works by exact match. Any chance you could code in a wildcard (*) operator? This topic was modified...
Read more >
Whitelisting is not working
We have whitelisted few ips and its not working as expected. Configuring policy to allow whitelist of ip addresses using regex to extract ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found