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

    Routing internet traffic through a client-to-site OpenVPN-connection

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 1.6k 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.
    • M
      mohammadreza73
      last edited by

      hi everyone
      i have one client that it out of my company and access to our server from client-to-site open vpn .
      i wanna make configuration that all of my clinet traffic route into openvpn and he see internet from inside of company and not any traffic of him route from his personal internet ?
      is it posible taht we route all traffic to open vpn . that mean route 0.0.0.0 to openvpn
      and other question is how route internet traffic of  client from client site  to openvpn site ,
      i found this but its about site to site vpn
      https://doc.pfsense.org/index.php/Routing_internet_traffic_through_a_site-to-site_OpenVPN-connection_in_PfSense_2.1

      and sorry for my incorrect english and grammer ;D

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

        It depends on the particular client if routes can be pushed. Mostly this works.

        If so, check "redirect gateway" in server configuration and put a firewall rule to OpenVPN interface that allow access to any if it isn't already done by OpenVPN wizard.
        Ensure that there is an automotic NAT rule in Firewall > NAT > Outbound with your vpn tunnel network as source and WAN address as NAT address, otherwise add it yourself after checking "hyprid outbound nat rule generation".

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