Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Routing to another subnet through new gateway inside the server's network

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 164 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      ssppcc
      last edited by

      Hi all,

      I have the following scenario:

      pfsense v2.7.2 router with the following networks:

      • LAN: 10.0.1.0/24
      • SERVERS: 10.0.200.0/24
      • WAN

      I have a docker mounted on the server network that acts as a gateway to the 10.31.0.0/16 network and I would like to route all LAN and SERVER traffic so that they reach the 10.31.0.0/16 network through this docker (10.0.200.8/24) that does of gateway.

      I have attached a network diagram to better understand the network diagram.

      diagram.png

      I have tried several options and I cannot route the traffic correctly through the GW. What would be the logical steps to make this scenario work?

      Thanks in advance
      Kind regards

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @ssppcc
        last edited by

        @ssppcc
        You just need to add a static route for the docker subnet.

        So in System > Routing > Gateway add a new gateway within the server network with the IP 10.0.200.8.
        Then go to the Static routes tab and and a new static route for 10.31.0.0/16 and state the gateway you've created before.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.