OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: sirio81 on April 10, 2018, 10:17:35 am

Title: [RESOLVED] NAT of alias redirects to single port
Post by: sirio81 on April 10, 2018, 10:17:35 am
Hi all, I created a port alias named ZimbraProxyPorts to redirect them all to the internal ip.
I noticed that all ports are redirected to the 110 (the first one of the list).

grep ZimbraProxyPorts /tmp/rules.debug
ZimbraProxyPorts = "{ 110 143 993 995 80 443 }"
rdr pass on vtnet1 inet proto tcp from {any} to {(vtnet1)} port $ZimbraProxyPorts -> 192.168.178.4 port 110

(https://imageshack.com/i/poa5SHtyp)

Code: [Select]
OPNsense 18.1-amd64
FreeBSD 11.1-RELEASE-p6
OpenSSL 1.0.2n 7 Dec 2017
Title: Re: NAT of alias redirects to single port
Post by: sirio81 on April 10, 2018, 02:55:42 pm
It should be fixed since 18.1.1
https://github.com/opnsense/changelog/blob/master/doc/18.1/18.1.1
Quote
firewall: ignore target port alias in port forwards when it equals the destination

I'll update soon and confirm that.
Title: Re: NAT of alias redirects to single port
Post by: sirio81 on April 11, 2018, 03:27:47 pm
Confirmed.
Title: Re: [RESOLVED] NAT of alias redirects to single port
Post by: franco on April 11, 2018, 05:15:52 pm
Whew, ok :)