Differences between revisions 8 and 9
Revision 8 as of 2017-08-19 09:02:12
Size: 1704
Editor: PieterSmit
Comment:
Revision 9 as of 2022-06-23 20:55:17
Size: 2074
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 36: Line 36:

= 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

}}}

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)