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

    How to use one openvpn client as a gateway for all other clients

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 778 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.
    • P
      pyguy
      last edited by

      Hi guys,

      I'm running OpenVPN server on pfSense and I have a scenario,

      I have multiple clients connected to OpenVPN server, I want to be able to share one of the client's internet to others.
      We have changed the client's default gateway to another client to do that, but it's not working!
      what's going wrong ?

      if it's not possible what scenario do you suggest for that purpose?

      Note: It was not possible to run OpenVPN server directly on that client because of ISP blocking all ports.

      The Scenario picture is attached.
      ovpn1.png
      ovpn1.png_thumb

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

        In the OpenVPN server settings "inter-client communication" have to be checked to enable it.
        The GW-client should have a static IP. Use client specific overrides on server to set this up.

        On the GW-client you need a firewall rule on OpenVPN interface which allows Internet access.
        Also there is an outbound NAT rule necessary on WAN interface which translates the addresses from source = VPN tunnel subnet to the WAN address.

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