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

    Muliple OpenVPN servers each with different gateway

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 284 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.
    • S
      skwaler
      last edited by

      Is the following possible.

      Goal - setup 3 separate OpenVPN instances, have users that are connected to each OpenVPN instance go out to internet with different public IPs.
      e.g.
      VPN1 --> 53.53.53.1
      VPN2 --> 53.53.53.2
      VPN3 --> 53.53.53.3

      1. Configure AWS EC2 instance with multiple (3) interfaces. (done)
      2. Assign the interfaces in pfSense, ie. each of the EC2 interfaces (done)
      3. Create three OpenVPN interfaces allowing connections from the different interfaces. (done)

      I can connect fine, bit traffic always leave via the default gateway (the first interface).
      How can i set a different gateway for each VPN?

      1 Reply Last reply Reply Quote 0
      • JeGrJ
        JeGr LAYER 8 Moderator
        last edited by

        @skwaler said in Muliple OpenVPN servers each with different gateway:

        How can i set a different gateway for each VPN?

        Just configure your outbound NAT accordingly and map them to the external IPs you want.

        Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

        If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

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