Giter VIP home page Giter VIP logo

nftables-rules-for-debian-desktop's Introduction

Nftables-for-Debian-Desktop

This repo contains the rules for nftables for desktop. 
The file " nftables rules " contains the rules that is to be typed  in the terminal. 
The file " nftables ruleset.md " contains the nftables script that is to be started at 
boot time using systemd. 
If you want to include ipv6 protocol in your firewall use the inet address family instead of ip 
as it combines both ip and ip6 protocols in nftables.

Enabling the nftables at boot time

systemctl enable nftables
 
Remove the Execstop in the nftable.service file. The file is usually located in 
 
/etc/systemd/system/sysinit.target.wants/nftables.service

Logging invalid packets by rsyslog

Create a directory called nftables in /var/log and in it, create two files called
Input.log and Output.log to store the input and output logs, respectively. 
Now go to /etc/rsyslog.d and create a file called nftables.conf with the following contents:

:msg,regex, " Invalid-Input: " -/var/log/nftables/Input.log
:msg,regex, " Invalid-Output: "  -/var/log/nftables/Output.log
& stop

Save the file and exit. Now all the log for nftables will be saved in these files

Reference

Logging in Nftables

nftables-rules-for-debian-desktop's People

Contributors

lecramyajiv avatar

Stargazers

Yoram van de Velde avatar

Watchers

James Cloos avatar Yoram van de Velde avatar

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.