VPN



  • I want to connect 4 site using at each location pfSense box

    this is the main :

    Site A

    local ip address: 192.168.1.0

    • Static ip address adsl
    • PfSense 2.0

    Site B:

    local ip address: 192.168.3.0

    • Static ip address adsl
    • PfSense 2.0

    Site C:

    local ip address: 192.168.10.0

    • Static ip address adsl
    • PfSense 2.0

    Site D  (main):

    local ip address: 192.168.4.0

    • Static ip address adsl
    • PfSense 2.0

    I wish that each site (A, B​​, C) could connect with the site D (main)
    How do I configure openvpn in each pfSense (shared key)

    Many thanks



  • Create 3 openvpn server instance with different port on Site D, share the key with the others.
    Create an openvpn client instance on each site A,B,C using the respective keys, tunnel ip and port.
    There is an option that u can let the client communicate with each other too.



  • No need to create three OpenVPN server instances. Just connect all sites to one server.
    The most difficult to do ist setup the correct routes on OpenVPN server and OpenVPN Client to connect to the LANs behind each pfsense.

    I think this forum post will explain it:
    http://forum.pfsense.org/index.php/topic,12888.0.html

    You probably need these 3 commands as custom OpenVPN options:

    
    push "route IP.IP.IP.IP SM.SM.SM.SM";
    route IP.IP.IP.IP SM.SM.SM.SM;
    iroute IP.IP.IP.IP SM.SM.SM.SM;
    
    

Log in to reply