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

    OpenVPN same subnet mask as local network?

    OpenVPN
    2
    4
    1.2k
    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.
    • D
      DPH
      last edited by

      Hello,

      Is it possible to setup OpenVPN to get on the same network as the local one?
      Im trying to connect to a program, that only connects to one type of subnet mask.
      Will access this program from a iPhone.

      Local network is on submask 192.168.1.1, DHCP from 192.168.1.100
      OpenVPN Submask from 10.0.8.1

      Would be glad if somebody could tell me how todo it.

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        If you must. Use TAP mode and set up a bridge.

        The best writeup on the subject is in the book:

        https://portal.pfsense.org/docs/book/openvpn/bridged-openvpn-connections.html

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • D
          DPH
          last edited by

          This would have worked, sadly OpenVPN client on iOS does not support tap. Would there be any other way to make a fix? OpenVPN > VLan > DHCP server?

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            Nope. Figure out how to route the traffic instead.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

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