[Ferm] Request for help with port forward

Max Kellermann max at duempel.org
Mon Jan 16 15:26:22 CET 2012


On 2012/01/16 15:23, András Kovács <Andras.Kovacs at teleconnect.hu> wrote:
> Max,
> 
> This would be the call:
> 
> &FORWARD_LAN($SMTP_SERVERS, tcp, smtp, smtp);
> 
> The function (again):
> 
> @def &FORWARD_LAN($dest, $proto, $port_external, $port_internal) = {
>     table filter chain FORWARD interface $DEV_INTERNET outerface $DEV_LAN daddr $dest proto $proto dport $port_internal ACCEPT;
>     table nat chain PREROUTING interface $DEV_INTERNET daddr $NET_NAT_STATIC proto $proto dport $port_external DNAT to "$dest:$port_internal";
> }

Oh, I guess this is really a bug: the function is parsed and the
double quotes are resolved; when the function gets invoked later, all
information about the double quotes is gone.

> I guess that upgrading to v2.1 would solve this issue using @cat.

You can upgrade by installing the package from wheezy/sid.

Max


More information about the Ferm mailing list