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

    It should work (Routing to a different Net)

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 2 Posters 1.0k 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.
    • M
      mark99
      last edited by

      Hello,

      I am trying to route to a different Net, but somehow something is missing.
      I need to access the 10.112.116.220 server.
      Ping to the 192.168.33.1  the 192.168.33.3 is fine.

      Here is my Netplan

      LAN 192.168.11.0 /24 –------(192.168.11.110 pfSense 192.168.33.116)------- WAN 192.168.33.0/24
                                                                                                                              |
                                                                                                                              |
                                                                                                                              default GW 192.168.33.1 (router) ----- ISP
                                                                                                                              |
                                                                                                                              |
                                                                                                                              GW 192.168.33.3 router ------ VPN------ 10.112.116.0/24
                                                                                                                                                                                            |
                                                                                                                                                                                            server 10.112.116.220
      The default traffic goes trough the default GW.

      The following static route I created under System -> Routing: 10.112.116.0/24 with the 192.168.33.3 as GW.

      I thought this is enough. When I traceroute 10.112.116.220 the dafault GW appears as the first hop.

       1  (192.168.33.1)  0.518 ms  0.405 ms  0.925 ms
       2  * * *
      

      Shouldn't the 192.168.33.3 GW apear as the first hop?

      Markus

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        what do your lan rules look like..  if you want a lan device to get to this other gateway on your wan, you have to allow it to use that gateway.

        Where are you tracing from? Pfsense?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • M
          mark99
          last edited by

          Yes, I am tracing from pfSense.

          As GWs I have the default GW 192.168.33.1
          and the GW 192.168.33.2 which I want to youse the net 10.112.116.0/24.

          As a route I have:
          network 10.112.116.0/24 with the GW 192.168.33.3 over the pfSense WAN interface 192.168.33.116

          My thoughts are:

          • The 10.112.116.220 doensn't know the way back to my LAN.

          • But shouldn't tracing show the following hops:
              - 192.168.33.116 (pfSense WAN Adress)
              - 192.168.33.3 (Router to the 10.112.116.0/24 network which I am able to ping)
                instead of the 192.168.33.1 the IP of the default GW

          Markus

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            Why would your trace show your pfsense wan IP???

            Where are you lan rules???

            A trace always shows the hops as you hit them… So from your lan would be 192.168.11.110, then 192.168.33.3

            As to 116.220 yes it would need to know how to get back.. But that would have nothing to do with your trace showing you what the 2nd hop is..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • M
              mark99
              last edited by

              I am tracing from pfsense.

              What do you mean with LAN Rules?
              I test often with the FW turned off.

              So when I trace the 10.112.220 the GW 192.168.33.3 should apear as the first hop.

              Is my route wrong?

              In System -> routing I:

              • Configured my two GWs on the WAN Interface and the 192.168.33.1 is the default one.
              • then I clicked on the "Routes" tab and configured the route: 10.112.116/0./24      GW: my second GW      interface: my WAN interface

              is there anything else to be done?

              Markus

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