OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: johannes on November 07, 2018, 07:19:22 am

Title: help and other port forwarding nightmare
Post by: johannes on November 07, 2018, 07:19:22 am
Hello Guys. I have issues with portForwarding .
Can anybody help me . 8)

my version of opnsense is : OPNsense 18.7.6-amd64

I have a PPoE connexion and I disable NAT for the router of my ISP.
In my opnsense dashboard I have WAN up and Two interfaces for LAN

I need to access from outside  to port 443 in opnsense box to port 22 to my webserver
I didn't this before but for some reason after the latest upgrade it isn't working anymore.
And now I'm trying to fix it.

- I checked first this rules in Firewall -->  Advanced :
Code: [Select]
  Reflection for port forwards: Enabled
  Reflection for 1:1: Disabled
  Automatic outbound NAT for Reflection: Enabled

- added alias for host/port
Code: [Select]
web: 192.168.1.10
webPort:  22

- Now Firewall --> NAT --> Port Forwarding 
 
Code: [Select]

 Interface: WAN
 - TCP/IP Version: IPv4
 - Protocol: TCP

 Under Source > Advanced:
 - Source / Invert: Unchecked
 - Source: Any
 - Source Port Range: any to any

 - Destination / Invert: Unchecked
 - Destination: WAN address
 - Destination Port range:  https to https
 - Redirect target IP:  web
 - Redirect target Port:  webPort
 - Pool Options: Default
 - NAT reflection: Enable
 - Filter rule association: Rule NAT
 

So now In Rules I can see in WAN added
Code: [Select]
prot     Source       Description
IPV4     *                    NAT

And In Firewall --> Port Forward I see
Code: [Select]
  linked
   <->       WAN     TCP    webserver  webserverPort

What I'm doing wrong ?
thanks for your time and answers
Title: Re: help and other port forwarding nightmare
Post by: johannes on November 09, 2018, 03:36:29 am
I updated opnsense to 18.7.7  :o
Now the port forwarding it is working.

Thas was all  8)
I didn't change the config for NAT or port forwarding or alias.
So weird.

Thanks guys.
Title: Re: help and other port forwarding nightmare
Post by: franco on November 09, 2018, 07:07:32 am
Hi johannes,

Sounds like this issue: https://github.com/opnsense/core/issues/2879

Was fixed in 18.7.7 indeed.


Cheers,
Franco