firehol-server - server, route commands: accept requests to a service
{ server | server46 } service action rule-params
server4 service action rule-params
server6 service action rule-params
{ route | route46 } service action rule-params
route4 service action rule-params
route6 service action rule-params
The server subcommand defines a server of a service on
an interface or router. Any
rule-params given to a parent interface or router are inherited
by the server.
For FireHOL a server is the destination of a request. Even though this is more complex for some multi-socket services, to FireHOL a server always accepts requests.
The route subcommand is an alias for server
which may only be used in routers.
The service parameter is one of the supported service names from firehol-services(5). Multiple services may be specified, space delimited in quotes.
The action can be any of the actions listed in firehol-actions(5).
The rule-params define a set of rule parameters to further restrict the traffic that is matched to this service. See firehol-params(5) for more details.
Note
Writing
server4is equivalent to writingipv4 serverand ensures this subcommand is applied only in the IPv4 firewall rules.Writing
server6is equivalent to writingipv6 serverand ensures this subcommand is applied only in the IPv6 firewall rules.Writing
server46is equivalent to writingboth serverand ensures this subcommand is applied in both the IPv4 and IPv6 firewall rules; it cannot be used as part an interface or router that is IPv4 or IPv6 only.The default
serverinherits its behaviour from the enclosing interface or router.The same rules apply to the variations of
route.
server smtp accept
server "smtp pop3" accept
server smtp accept src 192.0.2.1
server smtp accept log "mail packet" src 192.0.2.1