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

    Routing from WAN to DMZ (routing loop ?)

    Scheduled Pinned Locked Moved Routing and Multi WAN
    12 Posts 3 Posters 1.3k 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

      "which has an interface in the main LAN (192.168.1.253)."

      huh??  So your dmz is also connected to your lan??  Or this other router on your dmz??

      So you have this??  So the vpn are from the mpls router to remote sites?  Or from pfsense to remote sites via the mpls?

      Is this correct as drawn?  And we can go from there..

      yournetwork.png
      yournetwork.png_thumb

      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.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      • P
        packetfilter
        last edited by

        Thanks for your quick reply !

        The DMZ is connected to the LAN and internet via an IPFire distro.
        For the rest of your diagram, it's correct, pfsense only relays outgoing data to the ISP router which handle the VPN connection.

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

          I would get rid of the LAN facing interface on the IPFire box and create a transit network between pfSense and the IPFire box intead, ideally a /30 network. Once you setup the appropriate static routes everything will work just the way you want it.

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

            "The DMZ is connected to the LAN and internet via an IPFire distro."

            So you have a downstream router/firewall this ipfire box that hangs off your LAN?  Yeah that is not good.. All kinds of asymmetrical routing could be happening.

            MaxPF has it right if your going to have a downstream router it should be on a transit network..

            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.7.2, 24.11

            1 Reply Last reply Reply Quote 0
            • P
              packetfilter
              last edited by

              Here is the network attached.

              I get your point but the pfsense server only has 2 network interfaces. But still, I don't understand why I can't ping a LAN ip from the WAN interface, since pfsense is directly attached to the destination network, the routing process should be transparent…

              network.jpg
              network.jpg_thumb

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

                Nice drawing thanks!!  Make its much easier to visualize your setup.

                "I can't ping a LAN ip from the WAN interface,"

                What exactly are you trying to ping and from where?

                If you do not have another interface in pfsense - just use a vlan on your lan interface..  I would hope your switch in your lan is vlan capable??

                if not you could aways get a cheap vlan switch with a few ports and use it to split the vlans before you connect to your ipfire and your other dumb switch.  Does your pfsense have room for another interface if so - nics can be had for cheap..

                That setup is a asymmetrical nightmare ;)

                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.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                • P
                  packetfilter
                  last edited by

                  On the pfsense web interface, I go to Diagnostics -> Ping, I select the WAN interface as source address and I get the same output :

                  PING 192.168.1.2 (192.168.1.2) from 192.168.100.240: 56 data bytes
                  36 bytes from 192.168.100.250: Redirect Host(New addr: 192.168.100.240)
                  Vr HL TOS  Len  ID Flg  off TTL Pro  cks      Src      Dst
                  4  5  28 0054 2c45  0 0000  40  01 66f9 192.168.100.240  192.168.1.2

                  Which makes me think that's not just a routing problem.

                  By asymmetrical, you mean that the DMZ will answer to the VPN sites by taking another path ? That is not possible because the DNS they are using makes the DMZ unreachable via internet.

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

                    What I mean by asymmetrical is your lan devices, unless they have host routing to point to the ipfire to get to the dmz are going to be hairpin and then asymmetrical return.. 1st pic.

                    Now on your vpn devices getting to your dmz.. What is the routes on the ipfire for 192.168.x that is in your vpn/mpls cloud??  2nd pic.

                    lanasym.png_thumb
                    lanasym.png
                    ipfireroutes.png
                    ipfireroutes.png_thumb

                    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.7.2, 24.11

                    1 Reply Last reply Reply Quote 0
                    • P
                      packetfilter
                      last edited by

                      Hello,

                      Thanks, I have totally forgotten to add a route on ipfire, I can be dumb sometimes…

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

                        So your hosts have routes into the dmz on them?  If not its an asymmetrical condition.

                        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.7.2, 24.11

                        1 Reply Last reply Reply Quote 0
                        • P
                          packetfilter
                          last edited by

                          Yes, you're right it's asymetrical.
                          It's working now but we'll upgrade the pfsense with some NICs later…

                          Thanks again.

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