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

    Public IP on lan

    Scheduled Pinned Locked Moved NAT
    11 Posts 3 Posters 3.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.
    • U
      userkiller
      last edited by

      Hi i want i currently have IP 96.57.xxx.226 as my Wan i want my
      Lan1 ip to be 96.57.xxx.227
      Lan2 to be 96.57.xxx.228

      how can i achieve such setup?

      1 Reply Last reply Reply Quote 0
      • U
        userkiller
        last edited by

        Can anyone please help me.

        1 Reply Last reply Reply Quote 0
        • U
          userkiller
          last edited by

          Dns server requires 2 public ip how can i assign public IP to vps from behind pfsense,

          is it even possible to assaign a public ip to a vps from behind pfsense?
          I can easily managed to assign vps with local ip and later do a NAT but i can't managed to do it with local IP's

          these are my interfaces
          1=WAN my public ip
          2=Lan 10.0.1.10
          3
          4
          5
          6

          Please help

          1 Reply Last reply Reply Quote 0
          • G
            gderf
            last edited by

            @userkiller:

            Hi i want i currently have IP 96.57.xxx.226 as my Wan i want my
            Lan1 ip to be 96.57.xxx.227
            Lan2 to be 96.57.xxx.228

            how can i achieve such setup?

            It is not possible to have two or more interfaces in the same machine that belong to the same network.

            1 Reply Last reply Reply Quote 0
            • U
              userkiller
              last edited by

              So can i use 1:1 and assign the vps with local ip?

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

                What you want to accomplish?
                if you want to use certain public ip from outside to inside connections, you need few steps

                1. Create ip-alias, i prefer vip
                2. Create portforward rule using that vip as internet side ip

                if you want to use certain public ip from inside to outside connections, you need also few steps

                1. Same as earlier
                2. Create Manual outbound rules with that vip address
                1 Reply Last reply Reply Quote 0
                • U
                  userkiller
                  last edited by

                  So the vip is automatically assign to the server via dhcp?

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

                    vip are used with static ip's
                    I think that carp vip's are better with dhcp, cause those have mac-addresses

                    1 Reply Last reply Reply Quote 0
                    • U
                      userkiller
                      last edited by

                      @Metu69salemi:

                      What you want to accomplish?
                      if you want to use certain public ip from outside to inside connections, you need few steps

                      1. Create ip-alias, i prefer vip
                      2. Create portforward rule using that vip as internet side ip

                      if you want to use certain public ip from inside to outside connections, you need also few steps

                      1. Same as earlier
                      2. Create Manual outbound rules with that vip address

                      i just want to host multiple vps behind a pfsense firewall, some of the vps like the two dns servers require the use of public ips.

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

                        That is something what i haven't done yet with pfsense(public ip behind pfsense). But i think, that manual outbound nat is something, which can help you at least with missing rule.

                        1 Reply Last reply Reply Quote 0
                        • U
                          userkiller
                          last edited by

                          @Metu69salemi:

                          That is something what i haven't done yet with pfsense(public ip behind pfsense). But i think, that manual outbound nat is something, which can help you at least with missing rule.

                          alright so im going to try it with 1:1 nat since its simple and easy. I want to 1:1 Nat but in order to do that the dhcp from pfsense needs to automatically assign the ip from the DHCP available ip list to the vps. In my case the vps are being created via the solusvm interface and it doesn't give you the option to obtain the ip via dhcp like a normal server would.

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