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

    Vmware routervm + nat + public IP's

    Scheduled Pinned Locked Moved General pfSense Questions
    11 Posts 3 Posters 1.5k 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

      so your /29 is routed to pfsense via a tranist.  Or this /29 sits on the wan of pfsense?  Sounds like its routed to me.

      So you want to also have another segment on pfsense that is nated to one of these routed /29 or natted to the IP that sites on pfsense public IP that would be in the 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.8, 24.11

      1 Reply Last reply Reply Quote 0
      • N
        noratx
        last edited by

        @johnpoz:

        so your /29 is routed to pfsense via a tranist.  Or this /29 sits on the wan of pfsense?  Sounds like its routed to me.

        So you want to also have another segment on pfsense that is nated to one of these routed /29 or natted to the IP that sites on pfsense public IP that would be in the transit network?

        You are correct, the /29 (5.9.xxx.xxx) network is routed to pfsense via 78.46.xxx.xxx (which is the WAN address of my pfsense).
        On top of this, I want another segment which should be nated to one of those /29 addresses.

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

          I would think u could use one of the /29 and put as vip on wan and then nat another segment to that ip

          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
          • N
            noratx
            last edited by

            Put on wan, as in having two ip's on the wan nic?

            Not sure how you mean otherwise, as 78.46.xxx.xxx, which is my current WAN IP, needs to be there for the /29 subnet to come through at all (unless I am mistaken).

            1 Reply Last reply Reply Quote 0
            • D
              dreamslacker
              last edited by

              @noratx:

              Put on wan, as in having two ip's on the wan nic?

              Not sure how you mean otherwise, as 78.46.xxx.xxx, which is my current WAN IP, needs to be there for the /29 subnet to come through at all (unless I am mistaken).

              Yes, put it as a Virtual IP on WAN.

              The way it works is that your ISP doesn't really care how you use a routed subnet. All they know is that if any requests enters their network bound for an IP in 5.9.xxx.xxx/29 range, they send it to your WAN IP (78.46.xxx.xxx).
              Likewise, when you use the virtual IP as a NAT IP, pfSense simply sends the data out to the gateway for 78.46.xxx.xxx but marks the source IP as your VIP. The gateway doesn't reject it because it's configured to forward/ route for that IP.

              1 Reply Last reply Reply Quote 0
              • N
                noratx
                last edited by

                I see!

                Will try do that tonight.
                Thanks for the suggestion! :)

                1 Reply Last reply Reply Quote 0
                • N
                  noratx
                  last edited by

                  Don't I need to add another interface for the second LAN as well?
                  And if so, is there a way to make BSD scan for new hardware instead of rebooting?
                  I did actually add a third interface to use as secondary LAN for NATing, but it doesn't show up in dmesg…

                  Also, which type should the Virtual IP be? IP Alias, Proxy ARP or other?

                  1 Reply Last reply Reply Quote 0
                  • N
                    noratx
                    last edited by

                    I am not getting it to work at all, no matter how much I try.
                    The only thing I get to work, is the DHCP, but there is no connection what so ever from the VM.

                    Is there anyone who can give me some advice on how to get it all to work propely?
                    Thanks!

                    Edit: Maybe, since this is more a NAT question, I should close this thread and open a new one in the NAT forum instead?

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

                      Are you creating the outbound nat to use the VIP ip?

                      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
                      • N
                        noratx
                        last edited by

                        @johnpoz:

                        Are you creating the outbound nat to use the VIP ip?

                        Hi!

                        Yes, I have added an outbound nat rule with different settings.
                        https://gyazo.com/211f10b64fe492b5ab36d91d8a94fcac

                        I have tried to change the inteface between the WAN and NAT interface, tried different protocols and different translation rules.

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