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

    Which ipaddress for vpn ?

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 3 Posters 1.8k 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.
    • S
      simpsonetti
      last edited by

      Hi, i want to setup openvpn.
      for forst testing purposes i will this have only for me. later for maybe 50 people.

      I have here some tutorials, but i don't know exactly, which ipaddresses i have to set.
      My network is like this:

      Internet
          |
          |
          Modem
          |
          Router (192.168.2.1)
          |
          PFsense (WAN=192.168.2.101, LAN=192.168.1.1)
          |
          |
          |
          Server(ext=192.168.1.4, int=172.16.0.0/16)
        | ….

      So which ipaddress i have to take for vpn ?

      1 Reply Last reply Reply Quote 0
      • M
        Metu69salemi
        last edited by

        It would be better if you don't have another nat between your setup

        Clients need to know what external ip-address they're accessing. But because there is router's own lan-subnet, i don't know does this work. Maybe using portforwards from router will do it, but not sure

        1 Reply Last reply Reply Quote 0
        • E
          eddie4
          last edited by

          @Metu69salemi:

          It would be better if you don't have another nat between your setup

          Clients need to know what external ip-address they're accessing. But because there is router's own lan-subnet, i don't know does this work. Maybe using portforwards from router will do it, but not sure

          Indeed why not connect you pfsense directly to your modem? incase if it's one box most boxes have the ability to go into just modem mode so you can get your public ip on your pfsense

          As for a range take 192.168.254.0/24 ?

          It doesn't really matter just take something that is clear to you

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