Differences between revisions 9 and 10
Revision 9 as of 2022-06-23 20:55:17
Size: 2074
Editor: PieterSmit
Comment:
Revision 10 as of 2022-06-23 21:31:37
Size: 2139
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
 * 2022 - install from git - https://github.com/firehol/firehol

FireHol - Firewall

  • Links: SecurityFirewall , linux/firewall , Firewall/Rules

  • A great tool to manage Linux iptables firewall rules
    • Simple bash interpreter.
      • Very compact syntax, easy to read.
    • Support IPv4 and IPv6
    • Same syntax used for QOS rules.
    • Integrates with IPSET for black listing etc.
    • Easy to extend , and supports multi up-link load-balancing.

Install Latest

IPSET

  • Install tool
    • $ sudo apt install ipset
  • Install tool
    • $ sudo apt install iprange
  • Add iptables support
    • $ sudo apt install xtables-addons-common

Firehol rule examples

Allow mosh ssh connections

  • server_mosh_ports="udp/60000:61000"
    client_mosh_ports="default"
    
    # Accept all client traffic on any interface
    interface any world
            client all accept
            server "ssh ping dns" accept
            server "mosh" accept
            server "dhcp" accept
            client "dhcp" accept

...

Linux/FireHol (last edited 2022-07-12 10:44:53 by PieterSmit)