On Fri, 22 Sep 2017, JonRam@AOD wrote:
> [root@router squid]# firewall-cmd --zone=internal
> --add-rule-rich='rule family="ipv4" forward-port
> to-port="3128" to-addr="127.0.0.1" port="80"
protocol="tcp" '
>
> usage: see firewall-cmd man page
>
> firewall-cmd: error: unrecognized arguments:
> --add-rule-rich=rule family="ipv4" forward-port to-port="3128"
> to-addr="127.0.0.1" port="80" protocol="tcp"
>
> ehh? that example was lifted right out of the 'man' page
"--add-rule-rich=" Is this an email typo or did actually run the command like
that?
Just in case, it should be "--add-rich-rule="
will test ...
[root@router ~]# firewall-cmd --zone=internal \
--add-rich-rule='rule family="ipv4" forward-port \
to-port="3128" to-addr="127.0.0.1" port="80"
protocol="tcp" '
success
[root@router ~]#
I recall scraping and pasting with the man page open but it
was some weeks ago -- I dug through some backup detail, and it
seems I was running (which the piece was composed before a
summer break), firewalld-0.4.3.2-x .... it is a puzzlement --
perhaps a man page change, perhaps just stray beta particles
altering my recollection
actually I see also that my example is the transparent 'squid'
one, rather than the email / smtp port one
THANK YOU for the proof reading, in either case
-- Russ herrold