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

OpenVPN same subnet mask as local network?

Scheduled Pinned Locked Moved OpenVPN
4 Posts 2 Posters 1.2k 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.
  • D
    DPH
    last edited by Dec 25, 2017, 6:42 PM Dec 25, 2017, 6:21 PM

    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
    • D
      Derelict LAYER 8 Netgate
      last edited by Dec 25, 2017, 8:35 PM

      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 Dec 25, 2017, 10:09 PM Dec 25, 2017, 10:05 PM

        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
        • D
          Derelict LAYER 8 Netgate
          last edited by Dec 26, 2017, 10:47 AM

          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
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received