site to site TUN OpenVPN - how to add the reverse route on the server ?

Discussion in 'Tomato Firmware' started by cloneman, Dec 5, 2018.

  1. cloneman

    cloneman Addicted to LI Member

    As with all things OpenVPN/Routing, I'm confused.

    Server-Side - OpenVPN Tomato Shibby (TUN) -- Local Lan is 192.168.2.0/24
    "10.8.0.1"
    "tun22"

    Pinging the "client" lan devices does not work (.6.x and .7.x)
    However, pinging 10.8.0.6 works.

    Client-Side - OpenVPN Tomato Shibby (Tun) -- Local Lan is 192.168.6.0/23
    "10.8.0.6"

    Pinging the "server" lan devices (2.x) works as expected. Nothing Abnormal.


    Suspected problem: The OpenVPN server does not have a route to connect to the LAN clients on the other (client) side, or the client is not allowing this

    Solution attempted, in vain:
    In the openVPN server custom config :
    route 192.168.6.0 255.255.254.0

    In the openVPN client CLI
    iptables -t nat -I POSTROUTING -o tun12 -j MASQUERADE
     
  2. cloneman

    cloneman Addicted to LI Member

    I figured it out after a few hours of playing :)

    On the Server Side, I had to add 2 things, a Custom configuratoin route, and a client-specific option. The common name was obtained by the status page on the server side.
     

    Attached Files:

    M_ars likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice