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

    Openvpn tunnels settings accessing local network

    OpenVPN
    2
    3
    2.0k
    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
      sandman06
      last edited by

      Hi Guys,

      I have recently switched from pptp to openvpn and everything works fine apart from one thing
      on the tunnel settings , you are given a choice to allow access to your local network. is it possible to put more than 1 network in this field? I dont want to be restricted to just my 192.168.1.0/24 LAN, i also want to access other subnets such as 192.168.2.0/24(dmz) and 192.168.3.0/24(vmware mngmnt)

      can someone help.

      thanks

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        On 2.0.n put your ordinary LAN in the Local Network field and (push route) statements in the advanced box, separated by ";"

        push "route 192.168.2.0 255.255.255.0";push "route 192.168.3.0 255.255.255.0"
        

        On 2.1 you can put a comma-separated list of networks in the Local Network field - no need to use the advanced box.
        Make sure the firewall rules on OpenVPN allow the traffic to/from all the networks you want to reach.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • S
          sandman06
          last edited by

          thank you very much

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