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

DNAT vs Generic Proxy

What is the benefit of using DNAT over the generic proxy for port forwarding?  I just want to forward all incoming http/https traffic to my internal web server.   Seems both DNAT and the generic proxy o it, but I wonder if one is better than the 

Thanks 

Greg


This thread was automatically locked due to age.
  • Greg, I suppose the basic downside of using a Generic Proxy is that, like a Full NAT, all of the traffic appears to come from a single IP.

    Cheers - Bob
  • And generic proxy traffic isn't loggend - as far as i know.

    Regards
    Manfred
  • Bob is right. The Source will be Translated into the Interface IP.

    From the help-site of the UTM:
    The difference to standard DNAT, however, is that a generic proxy also replaces the source IP address of a request with the IP address of the interface for outgoing connections.
  • Hi, DNAT with firewall rules is preferred by probably 99%+ users.

    Barry
  • Then it would seem that the generic proxy is what is called port forwarding on most other firewalls.  Most port forwarding iP masquerading.  Are you guys saying DNAT doesn't ip masquerade as the external interface?  If not, then what's it doing?  

    The docs don't really spell this out well.  

    Which service is best to forward http/https (80/443) to an internal web server?
  • Hi, DNAT with firewall rules is preferred by probably 99%+ users.

    Barry


    Why?  The docs spell out the how but not why.
  • Then it would seem that the generic proxy is what is called port forwarding on most other firewalls.  Most port forwarding iP masquerading.  Are you guys saying DNAT doesn't ip masquerade as the external interface?
     DNAT is called port forwarding on home routers. There is no masquerading of inbound traffic in either case. 

    Cheers - Bob  

    Sorry for any short responses.  Posted from my iPhone.
  • Morning,

    BobAlfson nailed the reason why DNAT is prefered over a generic proxy. Preservation of the source IP is the key here. With DNAT you keep the source IP, with the generic proxy your webserver only sees the proxies IP.

    Subtle difference but important if you apply anything to your website that depends on the client IP. Good example being bans on web based forums. A lot of places allow admins to ban IP addresses for site infractions. With the proxy you can't ban based on IP because everyone has the same IP, that of the proxy.
  • DNAT is called port forwarding on home routers. There is no masquerading of inbound traffic in either case. 


    Many enterprise routers call it port forwarding as well, thus my confusion.    The docs are really lacking in defining stuff like this.

    In any event, it seems DNAT is what I'm looking for.   Thanks.

    Greg