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

    Routing Problem in Test Network

    Scheduled Pinned Locked Moved OpenVPN
    22 Posts 3 Posters 2.1k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      "192.168.57.0    0.0.0.0            255.255.255.0  U        0    0          0 eth1"

      That route is not going down your tunnel.. So how would you expect to get their through the tunnel.. Seems your client is trying to go out eth1 to get there.  With no gateway so it thinks that network is on its eth1 interface.

      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
      • V
        viragomann
        last edited by

        I think, that's just the way how his OS prints networks connected directly to an interface. The line has only an U-flag, no G for a gateway.
        It the same as
        10.0.2.0          0.0.0.0            255.255.255.0  U        0    0          0 eth0

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

          Now, as the route is set as it should be, why do you think, you have a routing problem?

          Try to ping pfSense internal address and see if you get a response.

          1 Reply Last reply Reply Quote 0
          • A
            Alejandro.Carbonara
            last edited by

            As of now, I can ping the internal ip of pfsense and get a positive response.

            Attempting to ping the internal machine gets me no response whatsoever.

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

              Check the firewall of the internal machine.

              1 Reply Last reply Reply Quote 0
              • A
                Alejandro.Carbonara
                last edited by

                The target machine is an ubuntu server VM.

                sudo ufw status
                Status: inactive

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

                  And its default gateway is set to 192.168.58.2 (the pfSense internal address)?

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

                    Oh my bad.. I was reading that you wanted to get to 192.168.57… ooops..

                    If you can ping the internal IP address of pfsense then your tunnel is up and routing that network down the tunnel.  Not being able to get to the machine on the network behind pfsense points to problem on the machine.  As viragomann pointed out host firewall and or wrong gateway on the host not pointing back to pfsense are 2 very common problems.

                    Just because ufw is not running does not mean for example iptables is not running.. I run iptables on my ubuntu vms not ufw..

                    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
                    • A
                      Alejandro.Carbonara
                      last edited by

                      The routing table on the internal machine looks like:

                      Kernel IP routing table
                      Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
                      default        10.0.2.2        0.0.0.0        UG    0      0        0 eth0
                      10.0.2.0        *              255.255.255.0  U    0      0        0 eth0
                      192.168.58.0    *              255.255.255.0  U    0      0        0 eth1

                      Also, I checked and iptables is all accept rules.

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

                        Well how is that going to work??

                        Your sending unknown networks out 10.0.2.2

                        So how exactly would it get to the vpn clients ip on 192.168.80.0/24

                        Your going to have to create a host route on this machine pointing 192.168.80.0/24 to the 192.168.58 IP of pfsense.

                        Or you would have to source nat your vpn clients to look like they are coming from the 192.168.58 IP of pfsense so your host there knows how to talk to it.

                        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
                        • A
                          Alejandro.Carbonara
                          last edited by

                          I was able to resolve the problem! There was some weirdness going on because I had set up the machine on an internal network.

                          johnpoz was right, in that the problem was in the routing table of the internal machine. Once I fixed the internal machine to use the firewall as a gateway, I was able to VPN to it from the external machine.

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