Guest User!

You are not Sophos Staff.

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

Sophos XG230 - Firewall NAT rules - Same Destination port - Different Destination IP - Different Source IP

Hi,

I work for an MSP and we host client backup data in our data center.  I am evaluating switching our Draytek 3900 firewall for a Sophos XGS device.  Before we commit to a purchase I am using an XG230 as a test platform to see if it will do what we need it to do and if we're happy we will purchase an XGS.

Our situation is as follows:

We use Altaro VM backup across our customer base and off site traffic goes over the WAN to our data center.  Altaro uses TCP ports 35116, 35117 and 35120.  We have four diffrent offsite servers to spread the traffic across.  All of them on internal IP's.  We use a URL at the client's end for the backup location.  On the Draytek 3900 this has been working flawlessly as I have been able to specify my destination port/IP on the NAT rule based on the source IP the traffic originates from.  So for exampe Customer A will hiit Server A on our network on the previously mentioned ports and likewise Customer B will hit Server B.

I'm going through a trial run on the XG230.  I've created my firewall rules/NAT rules using the Server Access Assistant and whilst things seem to be working I am getting a some connection timeouts on 3 of my off site servers.  The one without any issue just so happens to be placed highest in the firewall rule order.

My first question, can the Sophox XG/XGS hardware handle port forwarding where the destination port is the same but the destination IP is different depending on the source IP?

Are there any settings I can tweak to help with the connection timeouts?  I've checked the usage graphs and it doesn't seem to be a case of the XG struggling to cope with the traffic.  We have a Gig line too so bandwidth is not the issue here.  I do have one train of thought that it could be my servers themselves but thought I'd post here to check if the XG/XGS can do what I want it to do and if there are any recommended settings for this sort of setup.

Thanks



This thread was automatically locked due to age.
Parents
  • "Sophos Partner: Infrassist Technologies Pvt Ltd".

    If a post solves your question please use the 'Verify Answer' button.

  • Hi,

    Thanks.  I'm not quite sure how this helps my scenario.

    This is a fresh build on the latest SFOS so no rules have been migrated.

  • Hi,

    what device originates the connection?

    Ian

    XG115W - v19.5.1 mr-1 - Home

    If a post solves your question please use the 'Verify Answer' button.

  • Hi,

    The source is on the WAN side.

    I'll give an example:

    Customer A's Server --------------  Sends                   -----------------------  XG230 ----------------------------  Backup Server 1

    IP: 1.1.1.1                                    Backup Traffic to                                                                                 IP: 10.1.10.1

     TCP: 35116/35117                      Data Center's WAN IP                                                                        TCP: 35116/35117

    Customer B's Server --------------  Sends                   -----------------------  XG230 ----------------------------  Backup Server 2

    IP: 2.2.2.2                                   Backup Traffic to                                                                                 IP: 10.1.10.2

     TCP: 35116/35117                      Data Center's WAN IP                                                                        TCP: 35116/35117

    Customer C's Server --------------  Sends                   -----------------------  XG230 ----------------------------  Backup Server 3

    IP: 3.3.3.3                                    Backup Traffic to                                                                                 IP: 10.1.10.3

     TCP: 35116/35117                      Data Center's WAN IP                                                                        TCP: 35116/35117

    Customer D's Server --------------  Sends                   -----------------------  XG230 ----------------------------  Backup Server 4

    IP: 4.4.4.4                                   Backup Traffic to                                                                                 IP: 10.1.10.4

     TCP: 35116/35117                      Data Center's WAN IP                                                                        TCP: 35116/35117

    I've included screenshots of my firewall and NAT rules below.  Again these were created using the wizard. The Service Altaro is just a group of 3 TCP ports.

    So effectively what I am expecting is if traffic comes from an IP that is in the IP host group Altaro Customers 3 it will be NAT'd on TCP 35116/35117 to the Backup Server named Altaro 3.  If traffic comes from an IP that is in the IP host group Altaro Customers 4 it will be NAT'd on TCP 35116/35117 to the Backup Server named Altaro 4.

    I have 4 IP host groups like these in total and four Altaro servers.  The ports are the same throughout.  Source IP derives what destination IP/backup Server its traffic should go to.  For the most part its working but since I've set it up I am seeing some connection timeouts which I was not getting on the Draytek 3900.

  • Hi,

    The source is on the WAN side.

    I'll give an example:

    Customer A's Server --------------  Sends                   -----------------------  XG230 ----------------------------  Backup Server 1

    IP: 1.1.1.1                                    Backup Traffic to                                                                                 IP: 10.1.10.1

     TCP: 35116/35117                      Data Center's WAN IP                                                                        TCP: 35116/35117

    Customer B's Server --------------  Sends                   -----------------------  XG230 ----------------------------  Backup Server 2

    IP: 2.2.2.2                                   Backup Traffic to                                                                                 IP: 10.1.10.2

     TCP: 35116/35117                      Data Center's WAN IP                                                                        TCP: 35116/35117

    Customer C's Server --------------  Sends                   -----------------------  XG230 ----------------------------  Backup Server 3

    IP: 3.3.3.3                                    Backup Traffic to                                                                                 IP: 10.1.10.3

     TCP: 35116/35117                      Data Center's WAN IP                                                                        TCP: 35116/35117

    Customer D's Server --------------  Sends                   -----------------------  XG230 ----------------------------  Backup Server 4

    IP: 4.4.4.4                                   Backup Traffic to                                                                                 IP: 10.1.10.4

     TCP: 35116/35117                      Data Center's WAN IP                                                                        TCP: 35116/35117

  • The above was meant to show my rules but it got caught in SDPAM due to image links.  The NAT rule for the above is below and there's also a reflexive rule too.  All created fgrom the Wizard.  I've got four separate tules with different source network devices.  The TCP ports are the same on each rule.  The Destination server is different on each rule.   The source IP determines what server the traffic goes to.

  • My thoughts,

    1/. your service definition needs to be 1:65535 to xxxxx

    2/. you need to create linked NAT rule for each firewall rule. You don't need reflexive rules.

    Ian

    XG115W - v19.5.1 mr-1 - Home

    If a post solves your question please use the 'Verify Answer' button.

  • The service definition is a group of ports all consisting of 1:65535 to xxxxx

    The reflexive rules were created using the wizard which created my firewall rules, Nat rules and reflexive rules.  
    I’ll try creating linked NAT rules and see how I get on.

Reply Children