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

    OpenVPN Static NAT - Please help

    Scheduled Pinned Locked Moved NAT
    1 Posts 1 Posters 598 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.
    • G Offline
      greek_noob
      last edited by

      Apologies if this has been answered elsewhere, coming up blank.  This is the need.

      3 OpenVPN Users (userA, userB, userC)
      Each user gets static local IP each time they authenticate to OpenVPN running on PFSense

      UserA - 192.168.5.2
      UserB - 192.168.5.3
      UserC - 192.168.5.4

      I have 4 WAN IP addresses.

      User A - 192.168.5.2 will statically nat to WAN IP 1 - x.5.5.2
      UserB - 192.168.5.3 will statically nat to WAN IP 2 - x.5.5.3
      UserC - 192.168.5.4 will statically nat to WAN IP 3 - x.5.5.4

      WAN IP 4 = x.5.5.5 - using this for management access for now

      So far I am unable to figure out how to set this up so that:

      UserA gets the same local 192.168.5.2 each time they login

      AND

      UserA gets the WAN IP 1 - x.5.5.2, instead all traffic is being HIDE NAT'd behind the management WAN IP 4 = x.5.5.5.  I have set up Static NAT 1:1.  I have also tried to manually configure NAT.  When configuring this I have selected the source interface as the OpenVPN interface AND the WAN IP which is the address that I terminate the VPN on (WAN IP 4 = x.5.5.5).

      Thank you in advance.

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