How to route Client OpenVPN in LAN on Mac OS X OpenVPN Server

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have configured an OpenVPN Server on my Mac OS X High Sierra.



I did that using Easy RSA 3.04 which I had downloaded from github, and Tunnelblick to start and stop the server.



My LAN network is: 192.168.100.0/24, the Server IP is: 192.168.100.10 and the Gateway is: 192.168.100.1. The VPN network is the OpenVPN default 10.8.0.0/24 with server 10.8.0.1



"All works" but after the connection, the client can reach the Server LAN. In the OpenVPN server.conf, I put the following:



dev tun 
proto udp
port 1194
ca ca.crt
cert server.crt
key server.key
dh dh.pem
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
route 192.168.100.0 255.255.255.0
client-config-dir /OpenVPN/ccd
push "route 192.186.100.0 255.255.255.0 192.168.100.1 1"
client-to-client
push "route 192.168.100.0 255.255.255.0"
keepalive 10 120
remote-cert-tls client
tls-version-min 1.2
tls-auth ta.key 0
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
crl-verify crl.pem
status-version 3
verb 1


Then I have abilitated the forwarding:



sudo sysctl -w net.inet.ip.forwarding=1


And after server connection the, results of the command:



netstat -rn


is:



Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.100.1 UGSc 92 485 en0
10.8/24 10.8.0.1 UGSc 0 0 utun1
10.8.0.1 10.8.0.1 UH 1 0 utun1


It seems that something is not correct in the routing of the OpenVPN server, but after several tests nothing works.



Can someone help me?










share|improve this question



























    up vote
    0
    down vote

    favorite












    I have configured an OpenVPN Server on my Mac OS X High Sierra.



    I did that using Easy RSA 3.04 which I had downloaded from github, and Tunnelblick to start and stop the server.



    My LAN network is: 192.168.100.0/24, the Server IP is: 192.168.100.10 and the Gateway is: 192.168.100.1. The VPN network is the OpenVPN default 10.8.0.0/24 with server 10.8.0.1



    "All works" but after the connection, the client can reach the Server LAN. In the OpenVPN server.conf, I put the following:



    dev tun 
    proto udp
    port 1194
    ca ca.crt
    cert server.crt
    key server.key
    dh dh.pem
    topology subnet
    server 10.8.0.0 255.255.255.0
    ifconfig 10.8.0.1 10.8.0.2
    route 192.168.100.0 255.255.255.0
    client-config-dir /OpenVPN/ccd
    push "route 192.186.100.0 255.255.255.0 192.168.100.1 1"
    client-to-client
    push "route 192.168.100.0 255.255.255.0"
    keepalive 10 120
    remote-cert-tls client
    tls-version-min 1.2
    tls-auth ta.key 0
    cipher AES-256-CBC
    auth SHA256
    user nobody
    group nogroup
    persist-key
    persist-tun
    crl-verify crl.pem
    status-version 3
    verb 1


    Then I have abilitated the forwarding:



    sudo sysctl -w net.inet.ip.forwarding=1


    And after server connection the, results of the command:



    netstat -rn


    is:



    Routing tables
    Internet:
    Destination Gateway Flags Refs Use Netif Expire
    default 192.168.100.1 UGSc 92 485 en0
    10.8/24 10.8.0.1 UGSc 0 0 utun1
    10.8.0.1 10.8.0.1 UH 1 0 utun1


    It seems that something is not correct in the routing of the OpenVPN server, but after several tests nothing works.



    Can someone help me?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have configured an OpenVPN Server on my Mac OS X High Sierra.



      I did that using Easy RSA 3.04 which I had downloaded from github, and Tunnelblick to start and stop the server.



      My LAN network is: 192.168.100.0/24, the Server IP is: 192.168.100.10 and the Gateway is: 192.168.100.1. The VPN network is the OpenVPN default 10.8.0.0/24 with server 10.8.0.1



      "All works" but after the connection, the client can reach the Server LAN. In the OpenVPN server.conf, I put the following:



      dev tun 
      proto udp
      port 1194
      ca ca.crt
      cert server.crt
      key server.key
      dh dh.pem
      topology subnet
      server 10.8.0.0 255.255.255.0
      ifconfig 10.8.0.1 10.8.0.2
      route 192.168.100.0 255.255.255.0
      client-config-dir /OpenVPN/ccd
      push "route 192.186.100.0 255.255.255.0 192.168.100.1 1"
      client-to-client
      push "route 192.168.100.0 255.255.255.0"
      keepalive 10 120
      remote-cert-tls client
      tls-version-min 1.2
      tls-auth ta.key 0
      cipher AES-256-CBC
      auth SHA256
      user nobody
      group nogroup
      persist-key
      persist-tun
      crl-verify crl.pem
      status-version 3
      verb 1


      Then I have abilitated the forwarding:



      sudo sysctl -w net.inet.ip.forwarding=1


      And after server connection the, results of the command:



      netstat -rn


      is:



      Routing tables
      Internet:
      Destination Gateway Flags Refs Use Netif Expire
      default 192.168.100.1 UGSc 92 485 en0
      10.8/24 10.8.0.1 UGSc 0 0 utun1
      10.8.0.1 10.8.0.1 UH 1 0 utun1


      It seems that something is not correct in the routing of the OpenVPN server, but after several tests nothing works.



      Can someone help me?










      share|improve this question















      I have configured an OpenVPN Server on my Mac OS X High Sierra.



      I did that using Easy RSA 3.04 which I had downloaded from github, and Tunnelblick to start and stop the server.



      My LAN network is: 192.168.100.0/24, the Server IP is: 192.168.100.10 and the Gateway is: 192.168.100.1. The VPN network is the OpenVPN default 10.8.0.0/24 with server 10.8.0.1



      "All works" but after the connection, the client can reach the Server LAN. In the OpenVPN server.conf, I put the following:



      dev tun 
      proto udp
      port 1194
      ca ca.crt
      cert server.crt
      key server.key
      dh dh.pem
      topology subnet
      server 10.8.0.0 255.255.255.0
      ifconfig 10.8.0.1 10.8.0.2
      route 192.168.100.0 255.255.255.0
      client-config-dir /OpenVPN/ccd
      push "route 192.186.100.0 255.255.255.0 192.168.100.1 1"
      client-to-client
      push "route 192.168.100.0 255.255.255.0"
      keepalive 10 120
      remote-cert-tls client
      tls-version-min 1.2
      tls-auth ta.key 0
      cipher AES-256-CBC
      auth SHA256
      user nobody
      group nogroup
      persist-key
      persist-tun
      crl-verify crl.pem
      status-version 3
      verb 1


      Then I have abilitated the forwarding:



      sudo sysctl -w net.inet.ip.forwarding=1


      And after server connection the, results of the command:



      netstat -rn


      is:



      Routing tables
      Internet:
      Destination Gateway Flags Refs Use Netif Expire
      default 192.168.100.1 UGSc 92 485 en0
      10.8/24 10.8.0.1 UGSc 0 0 utun1
      10.8.0.1 10.8.0.1 UH 1 0 utun1


      It seems that something is not correct in the routing of the OpenVPN server, but after several tests nothing works.



      Can someone help me?







      osx openvpn






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 19 at 14:42









      Goro

      6,16552762




      6,16552762










      asked Sep 19 at 14:36









      Paolo Bertolli

      11




      11

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470035%2fhow-to-route-client-openvpn-in-lan-on-mac-os-x-openvpn-server%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f470035%2fhow-to-route-client-openvpn-in-lan-on-mac-os-x-openvpn-server%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?