firehol-cthelper(5)
π firehol-cthelper β the manual page, but make it a group chat π
okay bestie, sit down, hydrate, because today we're talking about firehol-cthelper β that's the section 5 page from the FireHOL Reference, version 3.1.8. it's all about connection tracking helpers and honestly? it's giving β¨ control freak β¨ in the best way.
π NAME π
firehol-cthelper β control connection tracking helpers π
πΈ SYNOPSIS πΈ
{ cthelper | cthelper4 | cthelper6 } protocol helper where [rule-params]
that's the whole vibe. three possible command names, then a protocol, then a helper, then a where, then optionally some rule params. periodt. π
β¨ DESCRIPTION β¨
okay so. the netfilter team (love them, no notes) put protocol helpers into the Linux kernel. what do they do? they sit there and monitor traffic so that certain protocols can actually function under the connection tracker. it's giving surveillance but make it helpful π¦
here's the full list of protocol helpers they've provided:
amandaftptftp(cannot be configured π)h323(cannot be configured π)irc(does not support IPv6)netbios_ns(cannot be configured π)pptp(does not support IPv6)gre(cannot be configured π)sanesip
π¨ vibe check, and it's a bad one: by default, the helpers will trust either side of the communication. this is considered a security issue and should be avoided. like, genuinely. do not let it slide. π
so, using cthelper, the helpers that can be configured can be told to trust one specific side of the communication. main character energy: you decide, not the kernel. π
but before you do any of that, the variable FIREHOL_CONNTRACK_HELPERS_ASSIGNMENT should be set to manual. don't skip this step bestie, it's literally the whole setup. π
π the where argument π
where defines where the trusted traffic is expected. it can be:
IN,INPUT, orPREROUTINGβ to match incoming packetsOUT,OUTPUTβ to match outgoing packetsBOTH,BIDIRECTIONAL, orINOUTβ to match all packets
π§ about rule-params π§
the rule-params define a set of rule parameters to further restrict the traffic that is matched. see firehol-params(5) for more details. iykyk π«Ά
π₯ FIREHOL_CONNTRACK_HELPERS_ASSIGNMENT values π₯
this variable accepts the following values:
kernelβ which is the default, and it allows the kernel to determine by itself which side to trust. letting the algorithm cook, basically. πfireholβ to have FireHOL automatically generatecthelperstatements, keepingsrc,dst,infaceandoutfacefrom the statements that require each helper.
β οΈ keep in mind this will only generate valid statements if you don't use NAT at all.cthelperstatements are executed byiptablesbefore any NAT is applied, while packet filtering is configured after DNAT and before SNAT β resulting in wrong statements when NAT is applied. not a vibe. not even a little bit. π
manualβ to use thecthelperhelper to configure the trusts infirehol.conf. this is your "i'll do it myself" era. π
and the little plot twist: when set to kernel, FireHOL will set net.netfilter.nf_conntrack_helper=1. in all other cases, FireHOL will set net.netfilter.nf_conntrack_helper=0. slay, that's just how it is. β
π EXAMPLES π
here's the snack platter, verbatim, don't touch a single character:
# enable manual protocol helpers mode
FIREHOL_CONNTRACK_HELPERS_ASSIGNMENT="manual"
# trust SIP packets we send via interface dsl0
cthelper sip out outface dsl0
# trust SIP packets we receive from 10.0.0.1 via eth0
cthelper sip in inface eth0 src 10.0.0.1
# trust pptp packets we send via interface wan0 (IPv4 only)
cthelper4 pptp out outface wan0
obsessed. ate. no crumbs. π
π SEE ALSO π
go read these next, bestie, they're the extended universe:
firehol(1)β FireHOL programfirehol.conf(5)β FireHOL configuration- FireHOL Website
- FireHOL Online PDF Manual
- FireHOL Online Documentation
π AUTHORS π
FireHOL Team. legends, honestly. π«Ά
and that's the whole page!! this was the FireHOL Reference edition, version 3.1.8, built 13 Apr 2025 β shoutout to the firehol-cthelper(5) manual for the lore. stay tracked, stay trusted on the right side only, and never let NAT catch you slippin' πβ¨ππ¦πΈπ
π«Άπ
π¦ 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