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

    firewall configuration to accept connections only from certain public IPs- help

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 2 Posters 166 Views 2 Watching
    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.
    • P Offline
      pino121
      last edited by

      Hello to all,
      I have published a service on port 80 and 443, but I would like to configure the firewall to accept only the requests of ten known ip.
      Do I have to create ten lines with ten different sources in the firewall rules?
      Can I create a single rule by adding a list of IPs as a source?

      if not feasible with firewall rules can I use NAT rules to insert a list of enabled source IPs?

      thanks

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

        Just create an alias with the IPs in it. Use that as source on your port forward. There you go only those IPs can access what you forwarded.

        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 25.07 | Lab VMs 2.8, 25.07

        1 Reply Last reply Reply Quote 0
        • P Offline
          pino121
          last edited by

          hi, thanks for the reply, but i don't understand

          thanks

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

            Under aliases - create one whatever name you want..

            alias.png

            Then use it in your port forward rule.. as the source, when it auto creates your firewall rule it will use the same alias.

            rule.png

            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 25.07 | Lab VMs 2.8, 25.07

            1 Reply Last reply Reply Quote 0
            • P Offline
              pino121
              last edited by

              thanks
              thanks
              thanks

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