Code Monkey home page Code Monkey logo

web-shield's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rakhithjk

web-shield's Issues

Alternative approach to handling ipset sets

Can I suggest a couple of different things you can do with loading ipset sets?

  1. When you add an entry to a set use the -exist flag in case of duplicates.
  2. Never load in to the set you want to use. This sounds counter-intuitive, but if you are loading into a set web-shield, instead load into a set web-shield-temp. Then when it is loaded, swap web-shield-temp with web-shield and delete web-shield-temp
# ensure that ipsets exist
ipset destroy -q web-shield-temp
ipset -N web-shield-temp nethash -exist
ipset -N web-shield nethash -exist

# load ipset sets here

# swap sets
ipset swap web-shield web-shield-temp

# ensure that temp sets do not exist
ipset destroy -q "web-shield-temp"

You can then safely run your script multiple times without duplications.

  1. In your firewall script also create an empty ipset set so it does not fail if you have not created your sets. Then the two scripts can be run in any order.

Need some guidance

Many thanks to @DPsystems

Not an issue, but a question :)

Raspberry Pi OS Bullseye

I was waiting for this since i'm running "Login-Shield" :)

I'm not sure how to set it up.

I successfully have running an instance of "Login-Shield" and to me "Web-Shield" seems to be an add-on.

So saving "START.web-shield.sh" to "/usr/local/bin/Login-Shield-master/", customize, rename to "S.web-shield.sh" and run as root should do it, right?. Will i miss something or maybe completely screw up my system?

Some guidance would be great.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.