firehol-modifiers(5)
π firehol-modifiers β the page from firehol-modifiers(5) π
okay bestie, sit DOWN, because this one is short but it's giving main character energy for your firewall rules. π
β¨ NAME β¨
firehol-modifiers β pick whether your stuff runs on IPv4 or IPv6, or both, no cap
π SYNOPSIS π
ipv4 definition-or-command argument...
ipv6 definition-or-command argument...
[both] definition-or-command argument...
π¦ DESCRIPTION π¦
okay so here's the vibe: when you slap a modifier in front of any command or definition, you're telling it to apply to IPv4 only or IPv6 only. that's it. that's the whole thing. π
and if you don't use a modifier? then your interface and router definitions β plus any commands that come before either of those β get applied to BOTH IPv4 and IPV6. both. periodt. π
lowkey important: commands that live inside an interface or router just inherit whatever the enclosing definition is doing. so like, you cannot create an IPv4 command inside an IPv6 interface or router, and you can't do IPv6 inside an IPv4 one either. nope. not happening. π«
here are the examples, exactly as written, because I would never mess with them:
interface eth0 myboth src4 192.0.2.0/24 src6 2001:DB8::/24
ipv4 server http accept
ipv6 server http accept
ipv4 interface eth0 my4only src 192.0.2.0/24
server http accept
ipv6 interface eth0 my6only src 2001:DB8::/24
server http accept
see how the server http accept inside the ipv4 interface just knows it's IPv4? that's the enclosing-definition behaviour, and it's honestly iconic. π§
also!! lots of definitions and commands have explicitly named variants β like router4, router6, and router46 β which you can use as shorthand instead of slapping a modifier out front. obsessed with the efficiency honestly. π
π SEE ALSO π
firehol(1)β FireHOL programfirehol.conf(5)β FireHOL configurationfirehol-interface(5)β interface definitionfirehol-router(5)β router definitionfirehol-policy(5)β policy commandfirehol-protection(5)β protection commandfirehol-server(5)β server, route commandsfirehol-client(5)β client commandfirehol-group(5)β group commandfirehol-iptables(5)β iptables helperfirehol-masquerade(5)β masquerade helper- FireHOL Website
- FireHOL Online PDF Manual
- FireHOL Online Documentation
πΈ AUTHORS πΈ
FireHOL Team. shoutout to the team, they ate. π«Ά
and that's the whole page bestie!! this was FireHOL Reference, built 13 Apr 2025, sitting pretty at version 3.1.8. mwah. πβ¨
π¦ where this page comes from
- debian trixie: firehol-doc 3.1.8+ds-1 Β· GPL-2.0-or-later
- ubuntu resolute: firehol-doc 3.1.8+ds-1 Β· GPL-2.0-or-later
- ubuntu stonking: firehol-doc 3.1.8+ds-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms