This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Port forwarding HTTPS 443 to port 3000

Hello everyone,

 

I have a question that I don't seem to be able to solve.

I want to redirect incoming traffic on the port 443 to an internal server port 3000

 

This is the DNAT rule I have configured.

Now when I go to the following HTTP://IPADDRESS:443 I get redirected to the correct page.

When I try to go to HTTPS://IPADDRESS I cannot make any connection? So the NAT rule is working but the HTTPS is not working.

My questions is this a firewall setting I need to adjust or is this something I need to adjust at the backend?

 

Kind regards,

Thomas



This thread was automatically locked due to age.
Parents
  • Hi Thomas,

    Welcome to the Sophos Community.

    I have 3 questions

    1. Is port 3000 set to udp or tcp, is it the correct type (i'm sure you checked this)?

    2. is there another rule above this rule that is conflicting with it?

    3. when trying to access the resource/page, is there anything displayed in the live log or firewall log?

     

    XG & UTM Architect (Systems: XG v18 & UTM 9.7 - Virtual, HW & SW)
    Curious enough to take it apart, skilled enough to put it back together, Clever enough to hide the extra parts when I'm Done!

  • First of all thanks for the reply.

     

    Answer to your questions:

    1. The port is set to TCP but i've also changed it to UDP and UDP/TCP wihtout success

    2. I don't see any NAT rules that would conflict with it. I tried putting the NAT rule on top but without success

    3. In the firewall log I see this:

     

     

    This is what I see in the firewall logs.

    The strange things is that when I go to http://myip:443 everything is correct and I see the GET page.

    If I go to https://myip I don't get the page.

    I suspect this is something more at the site of the webserver and trying to redirect HTTPS to another ports as 443.

     

    Kind regards,

    Thomas

  • this may be because of the way the port 3000 is configured and is unable to properly redirect the port correctly. I am sure I have seen this error on the community, but am unable to find it.

    I am presuming you have tried this as a direct port to port (rather that port redirection)?

    Are you able to put this behind the WAF?

    that would effectively get the UTM to request the page and would display it properly, although there may be other reasons why this is not possible.

    XG & UTM Architect (Systems: XG v18 & UTM 9.7 - Virtual, HW & SW)
    Curious enough to take it apart, skilled enough to put it back together, Clever enough to hide the extra parts when I'm Done!

Reply
  • this may be because of the way the port 3000 is configured and is unable to properly redirect the port correctly. I am sure I have seen this error on the community, but am unable to find it.

    I am presuming you have tried this as a direct port to port (rather that port redirection)?

    Are you able to put this behind the WAF?

    that would effectively get the UTM to request the page and would display it properly, although there may be other reasons why this is not possible.

    XG & UTM Architect (Systems: XG v18 & UTM 9.7 - Virtual, HW & SW)
    Curious enough to take it apart, skilled enough to put it back together, Clever enough to hide the extra parts when I'm Done!

Children
No Data