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 With Service Translation

I'm not quite understanding the following error:

The matching service protocol is not the same as the translated one.

I want to accept connections at 8081 on the external interface and then forward them to port 80 of a machine on the LAN.  I defined a service for 8081, and called it"HTTP-8081".  I attempted to define a DNAT/SNAT rule that matched inbound packets destine for the external address port 8081, and then change the destination to a machine on the LAN, and set the service destination to "HTTP".

Why is this not allowing me to set this up?


This thread was automatically locked due to age.
Parents Reply Children
  • perhapes you have already another rule that uses a port you want to use and your rules would no be well defined because for the computer it is not clear which rule to use?

    only an idea.

    cu
    pat
  • Please make sure, that the service HTTP-8081 you defined is only set to TCP, not TCP and UDP. Then create a DNAT:
    From: Any
    To: External Interface 
    Service: HTTP
    Change Destination To: your Webserver
    Service: HTTP-8081

    Also create a packet filter rule saying:
    From: Any 
    Service HTTP-8081 
    To: your Webserver
    Action: Allow

    I tested it and it works without any problems.

    /bagira
  • As soon as I set my service to just TCP, it worked like a charm.  Perhaps the error message needs to be a bit more descriptive.