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

    How to setup static ips on OPT1

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 3 Posters 539 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.
    • J
      jake-mia
      last edited by

      Hello, I have /27 network with public ips for web servers that I want on the internet.

      This article is exactly what I want.
      https://docs.netgate.com/pfsense/en/latest/recipes/route-public-ip-addresses.html

      I have a /27 network instead of a /29. My co-lo company assigned me a /30 network and default gateway for the WAN interface.
      I have setup my netgate 7100 device exactly like this article describes with my web servers on OPT1. The servers plug into a cisco 4948 switch plugged into OPT1. From the internet i cannot reach any of my servers. I think the problem is that my servers on OPT1 all have static ips. Now my default gateway has moved to the /30 network on the WAN interface. Previously my default gateway x.x.x.225 was on the /27 network. So i need to edit the servers and change the default gateway for the all the static ips. I setup the OPT1 interface on x.x.x.228, the first addressable address in my /27 network just like the example. What should i use for the default gateway on these servers? OPT1 currently has "none" for the gateway. Do i use x.x.x228 or do i need to build a static route to the WAN gateway. Or do something else? The /27 network has no gateway now.

      Again i have built everything exactly like the article says. Creating firewall rules as described in article to open WAN and OPT1 for traffic.
      Any advice appreciated. thanks, --jake

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @jake-mia
        last edited by

        @jake-mia said in How to setup static ips on OPT1:

        I setup the OPT1 interface on x.x.x.228, the first addressable address in my /27 network just like the example. What should i use for the default gateway on these servers?
        OPT1 currently has "none" for the gateway.

        Well.

        Do i use x.x.x228

        Yes.

        Don't forget to add rule to OPT1 to allow outbound and to WAN for inbound.

        1 Reply Last reply Reply Quote 0
        • J
          jake-mia
          last edited by jake-mia

          Thank you so much viragomann. I used the interface ip as my default gateway. Thank you for telling me about the extra rule needed on WAN with source * going to OPT1. That rule is not in the article. This issue is resolved!

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

            @jake-mia said in How to setup static ips on OPT1:

            extra rule needed on WAN with source * going to OPT

            the only rules need on wan would be rules to allow what you want.. if you don't want to allow any unsolicited inbound traffic to this network, then you wouldn't need or want any rules on your wan for that netblock.

            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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.