Which ipaddress for vpn ?



  • 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 ?



  • 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



  • @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


Log in to reply