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

    Port forwarding VirtualIP subnet to an internal subnet?

    Scheduled Pinned Locked Moved NAT
    4 Posts 3 Posters 2.0k 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.
    • B Offline
      benze
      last edited by

      Hi,

      Is there any way to set up port forwarding for a VirtualIP subnet to an internal subnet?

      I'm trying to port forward all web ports (80/443) of my Virtual IP block (ie: /29 subnet) to my internal network ips, without doing them 1 by 1.  I know I can set up Port Forward Nat for individual Virtual IPs, but I have been unable to figure out how to do them as subnets.

      Ex:
      190.10.1.17/29 to map to 10.1.0.1/29

      Is that even feasible without using 1-to-1 NAT?  I'd like to ONLY forward ports 80 & 443.

      Thanks!

      Eric

      1 Reply Last reply Reply Quote 0
      • B Offline
        betopena
        last edited by

        "without doing them 1 by 1"??
        I dont think so.

        1 Reply Last reply Reply Quote 0
        • K Offline
          ktims
          last edited by

          So you intentionally want all other ports to go where exactly?

          If you just want to blackhole everything to ports not 80,443 you can easily do this with firewall rules and use 1:1 NAT instead.

          1 Reply Last reply Reply Quote 0
          • B Offline
            benze
            last edited by

            Dunno why, but it didn't even occur to me to do this thru the firewall rules…  smack.

            Thanks for pointing out the obvious!

            Eric

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