Seeking help to config to let road warriors to access LAN hosts throung openvpn

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stonework
    Junior Member
    • Jan 2025
    • 3

    Seeking help to config to let road warriors to access LAN hosts throung openvpn

    I have a Ubuntu Openvpn server at cloud vpc with the following .conf directives:
    port 1194
    proto tcp4
    dev tun
    ca ca.crt
    cert vpnserver.crt
    key vpnserver.key
    dh dh.pem
    topology subnet
    data-ciphers-fallback AES-256-CBC
    server 172.20.40.0 255.255.255.0
    route 192.168.40.0 255.255.255.0
    client-config-dir /etc/openvpn/ccd
    ifconfig-pool-persist /etc/openvpn/myserveripp.txt
    client-to-client
    keepalive 10 120
    persist-key
    persist-tun
    verb 3
    mute 20
    and my office has a pfsense router connecting the cloud server as openvpn client with CN=branchoffice.
    In server side ccd directory I have a file named "branchoffice" which contains a line:
    iroute 192.168.40.0 255.255.255.0
    Meanwhile, I have some people working outside office (road warriors) who connect to cloud vpc openvpn server as client also.

    My purpose is to let road warriors to access office hosts with ip directly, like \\192.168.40.x, and let them see each other "client to client". and let host in office can access road warriors pc with ip like :
    \\172.20.40.x

    I have already added route at server side and what shall I do else?
    very grateful to helpful ideas.
    stonework
Working...
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎