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

    OpenVPN for internet only, restrict access to other computers

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 518 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.
    • F Offline
      Fpsware
      last edited by

      I have OpenVPN setup for my use, everything works as intended; I can access my servers and the internet.

      What I want to do is provide a friend with access to my VPN, but I don't want him to have access to the server, just internet only. Unfortunately he is located in a country where almost all torrent sites are block. My idea is to provide him with VPN access through me to all the sites he needs. How can I go about achieving this?

      1 Reply Last reply Reply Quote 0
      • T Offline
        TurboAAA
        last edited by

        There are two options.

        A. Create a secondary OpenVPN server and keep the two separated.
        B. Assign his user a static IP in the pool and create firewall rules to prevent access to your server. Under client specific overides you can add something like ifconfig-push 192.168.1.200 255.255.255.0 to assign his client that IP.

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