Loopback port redirect not working
|Reported by:||Artur Bodera||Owned by:||Victor Julien|
The following does not work as expected:
RULE="Redirect service https from local.lo to local.lo options redirectport=\"80\""
The aim is to redirect requests coming on loopback from port 443->80. It does not work because vuurmuur assigns the rule to
PRE-VRMR-PREROUTING chain in nat table. For this rule to work it should be placed in
PRE-VRMR-OUTPUT chain, ie:
Chain PRE-VRMR-OUTPUT (1 references) target prot opt source destination REDIRECT tcp -- anywhere anywhere tcp dpt:https redir ports 80 R
I believe there are several ways to archieve loopback redirects, but I believe it should be handled implicitly in vuurmuurlib or vuurmuur_conf.