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

    Virtual IP to Outgoing Address

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 391 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.
    • D
      darvin
      last edited by

      Client Lan: 192.168.2.0/24
      Server Lan: 192.168.1.0/24
      pfSense Server: 192.168.1.121
      WAN1 Lan: 1.1.1.1/29
      WAN2 Lan: 2.2.2.2/27

      I want to redirect some traffic to Outgoing Address: 195.78.228.226 to port 443
      Its possible to use an virtual ip address (192.168.1.125) inside pfSense to redirect that traffic :
      192.168.2.4 <-> 192.168.1.125:443 <-> 195.78.228.226:443
      or i need to use the pfSense ip?
      192.168.2.4 <-> 192.168.1.121:8443 <-> 195.78.228.226:443

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        It's possible to use virtual IPs for forwarding, but it's not possible to assign 192.168.1.125 to the client LAN, since that IP is out of the server LANs network.
        However, you don't need to assign a virtual IP for what you intent if pfSense is the default gateway in the client LAN.

        If so, just add a NAT port forwarding rule to the client LAN for
        dest: 192.168.1.125:443
        target: 195.78.228.226:443
        and it will do the job.

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