Double NAT with two USG FLEX devices

baba
baba Posts: 280  Master Member
First Comment Friend Collector First Anniversary
edited September 2023 in Security

Hi all,

i've two USG FLEX connected to each other via Point-to-Point WiFi and IPSec VPN as Backup. Both USG FLEX have it's own DSL connection. All Incoming WAN traffic from USG on the right should be forwarded to the USG on the left and from there to the servers in the DMZ zone.

How to configure the USG's for this scenario (especially the USG on the right)?

Is this the right way or should I forward only specific ports from right to left USG?

Thanks!

Best,
baba

«1

All Replies

  • baba
    baba Posts: 280  Master Member
    First Comment Friend Collector First Anniversary

    I've gotten to the point where I only want to forward certain ports, but I can't get it configured

    Thanks!

  • PeterUK
    PeterUK Posts: 3,459  Guru Member
    100 Answers 2500 Comments Friend Collector Seventh Anniversary

    What the PC IP that needs the ports from FLEX200 to FLEX200H?

  • baba
    baba Posts: 280  Master Member
    First Comment Friend Collector First Anniversary
    edited September 2023

    @PeterUK 10.50.10.50

  • PeterUK
    PeterUK Posts: 3,459  Guru Member
    100 Answers 2500 Comments Friend Collector Seventh Anniversary

    So on the FLEX200 you do a NAT rule Virtual Server

    incoming WAN

    external IP your WAN IP

    internal IP 10.50.10.10

    ports

    This alone will not work you need to do a static route on FLEX200

    destination IP 10.50.10.0

    subnet 255.255.0.0

    gateway 10.70.70.1

    With firewall rule in place that should forward the ports

  • baba
    baba Posts: 280  Master Member
    First Comment Friend Collector First Anniversary

    I've a policy route on flex 200 with 10.50.0.0/16 with GW 10.70.70.1 but it does not work. Must it be a static route?

  • PeterUK
    PeterUK Posts: 3,459  Guru Member
    100 Answers 2500 Comments Friend Collector Seventh Anniversary
    edited September 2023

    I don't think a routing rule would work tested here by static route which the NAT rule will follow

    You might need a routing rule on FLEX200H

    incoming LAN 10.50.10.0

    source 10.50.10.0

    next hop 10.70.70.2

    SNAT none

    and maybe on FLEX200

    incoming LAN 10.70.70.2

    source 10.50.10.0

    next hop WAN

    SNAT outgoing

  • baba
    baba Posts: 280  Master Member
    First Comment Friend Collector First Anniversary

    Hi @PeterUK the static route does not help :/

    You might need a routing rule on FLEX200H

    incoming LAN 10.50.10.0

    source 10.50.10.0

    next hop 10.70.70.2

    SNAT none

    This route would forward all traffic from DMZ (10.50.10.0/24) to 10.70.70.2 but that's not correct. Only when requests comes through 10.70.70.2 response should go back through 10.70.70.2

    Best,
    baba

  • baba
    baba Posts: 280  Master Member
    First Comment Friend Collector First Anniversary

    Any other ideas?

    Thanks!

    Best,
    baba

  • PeterUK
    PeterUK Posts: 3,459  Guru Member
    100 Answers 2500 Comments Friend Collector Seventh Anniversary

    do it for 10.50.10.50 then?

  • baba
    baba Posts: 280  Master Member
    First Comment Friend Collector First Anniversary

    Also 10.50.10.50 should have 10.70.70.1 as gateway by default. Only when requests comes through 10.70.70.2 response should go back through 10.70.70.2

Security Highlight