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

    [SOLVED] WAN Static IP with Virtual IPS

    Scheduled Pinned Locked Moved General pfSense Questions
    wanvirtualipstatic ip
    6 Posts 3 Posters 1.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.
    • C
      crooskey
      last edited by crooskey

      For the past few years I have used PPOE connection that was assigned a /29 block of Public IP addresses.

      On PPOE i was assigned a /29 subnet for IP addresses to use, I simply set this up in Virtual IP's (type OTHER), and my WAN IP was given a IP outside of this range (via PPOE). Now on my new setup, my WAN is configured via static IP, my provider has again assigned me a /29 block of public IPV4 addresses.

      But this time, say I am given the following subnet (example):

      192.168.155.112/29 # IP Range
      192.168.155.113 # Gateway Address 
      

      So I set my Wan Static IP (for the pfsense box) as 192.168.155.114/29 with the gateway as 192.168.155.113. This works fine and internet routes correctly.

      Now when I go to add my new block of Virtual IP's do I still add 192.168.155.112/29 and simply not assign .114 to anything, or do I do this another way? At the moment I have the static IP connection working correctly, just wondered how to configure the Virtual IP's (so I can assign .115 .116 .117 and .118 to internal addresses) thanks.

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        You add them as Virtual IP - IP Aliases, and no you don't add one for the WAN since .114 is already in use.

        1 Reply Last reply Reply Quote 0
        • C
          crooskey
          last edited by

          Thanks, so just add each one individually as a /32 ?

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            No, you add them as they were assigned .115/29, .116/29 .117/29 etc etc

            1 Reply Last reply Reply Quote 0
            • C
              crooskey
              last edited by

              Thanks, seems to be working as expected.

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                With IPAliases you can usually use either /32 or the correct subnet size. The important thing is you have at least one IP defined on the interface with the correct subnet in order to add the correct routing.

                https://docs.netgate.com/pfsense/en/latest/firewall/virtual-ip-address-feature-comparison.html#ip-alias

                Steve

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