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

XG18 SNAT to WAN Alias

Hello, I am running version SFOS 18.0.1 MR-1-Build396

 

On the device:

WAN1 (Port2) is X.X.X.197

 

My client wants traffic from internal server 192.168.1.5 to communicate out to the web via X.X.X.195. 

X.X.X.195 is currently setup as an alias and is Port2:0

I tried to setup SD-WAN routing but the gateways only give me WAN1, WAN2, or link balanced. 

There already is a functioning DNAT rule forwarding traffic from X.X.X.195 to 192.168.1.5

How do I setup an SNAT where traffic from 192.168.1.5 uses X.X.X.195 to route traffic back out to the internet?  

 

Thank you in advance.



This thread was automatically locked due to age.
Parents Reply Children
  • NAT is applied one time to Traffic. 

    So if somebody tries to reach your XG, XG will apply NAT to this connection. Its session based = A talks to B. All packets by A and B will use the same NAT / Firewall rule for the entire session.

     

    If A is a Client in the Internet, he will try to reach .195 in the first place. 

    XG will have a DNAT, to forward Traffic coming to .195 to your internal Server (B). 

     

    All Packets coming and going by this session will use the same NAT and Firewall rule. So you do not have to apply NAT for this Session.

     

    If the Server (B) will try to reach A, you need a SNAT Rule, to tell XG, use SNAT (.195) for traffic outbound going to A. 

    About your NAT in your screenshot: This is correct, this SNAT will be used outbound, if your Server will initial a Session. Interface matching criteria are optional and consider the entire Interface (PortB in your example). 

     

     

    This is called Stateful. 

    https://en.wikipedia.org/wiki/Stateful_firewall

  • Thank you, I implemented the SNAT rule I created previously in the screen shot and it they are still being seen as X.X.X.197 on the outside when sending mail from 192.168.1.5. 

     

    I moved the rule to the top of the NAT list and they said they now see it as the .195 address. 

    Thanks. 

  • NAT is first match. 

    So if you have a NAT Rule on Top of your other rule, it will apply.