OpenVPN client on OpenWRT not routing traffic through VPN on Linksys WRT3200ACM Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Come Celebrate our 10 Year Anniversary!Problems setting up a VPN: can connect but can't ping anyoneOpenVPN routing problemOpenVPN connection from within 2nd subnet in office?OpenVPN: forward client's LAN to the VPNAllowing SSH on a server with an active OpenVPN clientOpenVPN server and client configuration for openwrtConfiguring OpenVPN server (Debian 8) and client (Windows 10)OpenVPN and multicast routingOpenVPN Client Local LAN AccessHow to configure iptables for a dial-up VPN with OpenVPN and two interfaces?

tabularx column has extra padding at right?

Why doesn't the university give past final exams' answers?

FME Console for testing

Etymology of 見舞い

What were wait-states, and why was it only an issue for PCs?

Can a Knight grant Knighthood to another?

Can a Wizard take the Magic Initiate feat and select spells from the Wizard list?

Can I take recommendation from someone I met at a conference?

When does Bran Stark remember Jamie pushing him?

Help Recreating a Table

Has a Nobel Peace laureate ever been accused of war crimes?

How to produce a PS1 prompt in bash or ksh93 similar to tcsh

What is the evidence that custom checks in Northern Ireland are going to result in violence?

2 sample t test for sample sizes - 30,000 and 150,000

Why isn't everyone flabbergasted about Bran's "gift"?

What is the definining line between a helicopter and a drone a person can ride in?

Why these surprising proportionalities of integrals involving odd zeta values?

Proving inequality for positive definite matrix

How to create a command for the "strange m" symbol in latex?

A German immigrant ancestor has a "Registration Affidavit of Alien Enemy" on file. What does that mean exactly?

Is Bran literally the world's memory?

Why do people think Winterfell crypts is the safest place for women, children & old people?

Putting Ant-Man on house arrest

Is my guitar’s action too high?



OpenVPN client on OpenWRT not routing traffic through VPN on Linksys WRT3200ACM



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Problems setting up a VPN: can connect but can't ping anyoneOpenVPN routing problemOpenVPN connection from within 2nd subnet in office?OpenVPN: forward client's LAN to the VPNAllowing SSH on a server with an active OpenVPN clientOpenVPN server and client configuration for openwrtConfiguring OpenVPN server (Debian 8) and client (Windows 10)OpenVPN and multicast routingOpenVPN Client Local LAN AccessHow to configure iptables for a dial-up VPN with OpenVPN and two interfaces?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am unable to get the traffic routed through the VPN tunnel, when using OpenVPN on OpenWRT firmware.



The router is a WRT3200ACM, connecting to OpenVPN server on Ubuntu.



OpenVPN client is connecting and I am able to ping ip's on the the remote network from SSH console on the router. However, all my connectet clients on the network are disconnected from the internet, when the OpenVPN connection is established.



The OpenVPN client configuration currently looks like this:



dev tun
proto udp
remote x.x.x.x 1194
cipher AES-256-CBC
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
redirect-gateway def1
verb 3

<ca>
-----BEGIN CERTIFICATE-----
REMOVED
-----END CERTIFICATE-----
</ca>

key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
REMOVED
-----END OpenVPN Static key V1-----
</tls-auth>


<cert>
-----BEGIN CERTIFICATE-----
REMOVED
-----END CERTIFICATE-----

</cert>

<key>
-----BEGIN PRIVATE KEY-----
REMOVED
-----END PRIVATE KEY-----

</key>


This configuration works perfectly on the Windows and MacOS clients, and traffic is being routed correctly, but as soon as I connect this on the Linksys WRT3200ACM router, things go wrong.



I have also tested using dd-wrt firmware on the router, but the problem was the same, however it was not possible to ping remote ip's when using dd-wrt, so the OpenWRT solution works slightly better.



The local network configuration is:



Network: 192.168.237.0
Subnet: 255.255.255.0
GW: 192.168.237.1


The remote network configuration is:



Network: 192.168.37.0
Subnet: 255.255.255.0
GW: 192.168.37.1


and the OpenVPN virtual network configuration is:



Network: 10.8.0.0
Subnet: 255.255.255.0
GW: 10.8.0.1

IP-range: 10.8.0.6-10
OpenVPN server: 10.8.0.5









share|improve this question




























    0















    I am unable to get the traffic routed through the VPN tunnel, when using OpenVPN on OpenWRT firmware.



    The router is a WRT3200ACM, connecting to OpenVPN server on Ubuntu.



    OpenVPN client is connecting and I am able to ping ip's on the the remote network from SSH console on the router. However, all my connectet clients on the network are disconnected from the internet, when the OpenVPN connection is established.



    The OpenVPN client configuration currently looks like this:



    dev tun
    proto udp
    remote x.x.x.x 1194
    cipher AES-256-CBC
    auth SHA1
    resolv-retry infinite
    nobind
    persist-key
    persist-tun
    client
    redirect-gateway def1
    verb 3

    <ca>
    -----BEGIN CERTIFICATE-----
    REMOVED
    -----END CERTIFICATE-----
    </ca>

    key-direction 1
    <tls-auth>
    #
    # 2048 bit OpenVPN static key
    #
    -----BEGIN OpenVPN Static key V1-----
    REMOVED
    -----END OpenVPN Static key V1-----
    </tls-auth>


    <cert>
    -----BEGIN CERTIFICATE-----
    REMOVED
    -----END CERTIFICATE-----

    </cert>

    <key>
    -----BEGIN PRIVATE KEY-----
    REMOVED
    -----END PRIVATE KEY-----

    </key>


    This configuration works perfectly on the Windows and MacOS clients, and traffic is being routed correctly, but as soon as I connect this on the Linksys WRT3200ACM router, things go wrong.



    I have also tested using dd-wrt firmware on the router, but the problem was the same, however it was not possible to ping remote ip's when using dd-wrt, so the OpenWRT solution works slightly better.



    The local network configuration is:



    Network: 192.168.237.0
    Subnet: 255.255.255.0
    GW: 192.168.237.1


    The remote network configuration is:



    Network: 192.168.37.0
    Subnet: 255.255.255.0
    GW: 192.168.37.1


    and the OpenVPN virtual network configuration is:



    Network: 10.8.0.0
    Subnet: 255.255.255.0
    GW: 10.8.0.1

    IP-range: 10.8.0.6-10
    OpenVPN server: 10.8.0.5









    share|improve this question
























      0












      0








      0








      I am unable to get the traffic routed through the VPN tunnel, when using OpenVPN on OpenWRT firmware.



      The router is a WRT3200ACM, connecting to OpenVPN server on Ubuntu.



      OpenVPN client is connecting and I am able to ping ip's on the the remote network from SSH console on the router. However, all my connectet clients on the network are disconnected from the internet, when the OpenVPN connection is established.



      The OpenVPN client configuration currently looks like this:



      dev tun
      proto udp
      remote x.x.x.x 1194
      cipher AES-256-CBC
      auth SHA1
      resolv-retry infinite
      nobind
      persist-key
      persist-tun
      client
      redirect-gateway def1
      verb 3

      <ca>
      -----BEGIN CERTIFICATE-----
      REMOVED
      -----END CERTIFICATE-----
      </ca>

      key-direction 1
      <tls-auth>
      #
      # 2048 bit OpenVPN static key
      #
      -----BEGIN OpenVPN Static key V1-----
      REMOVED
      -----END OpenVPN Static key V1-----
      </tls-auth>


      <cert>
      -----BEGIN CERTIFICATE-----
      REMOVED
      -----END CERTIFICATE-----

      </cert>

      <key>
      -----BEGIN PRIVATE KEY-----
      REMOVED
      -----END PRIVATE KEY-----

      </key>


      This configuration works perfectly on the Windows and MacOS clients, and traffic is being routed correctly, but as soon as I connect this on the Linksys WRT3200ACM router, things go wrong.



      I have also tested using dd-wrt firmware on the router, but the problem was the same, however it was not possible to ping remote ip's when using dd-wrt, so the OpenWRT solution works slightly better.



      The local network configuration is:



      Network: 192.168.237.0
      Subnet: 255.255.255.0
      GW: 192.168.237.1


      The remote network configuration is:



      Network: 192.168.37.0
      Subnet: 255.255.255.0
      GW: 192.168.37.1


      and the OpenVPN virtual network configuration is:



      Network: 10.8.0.0
      Subnet: 255.255.255.0
      GW: 10.8.0.1

      IP-range: 10.8.0.6-10
      OpenVPN server: 10.8.0.5









      share|improve this question














      I am unable to get the traffic routed through the VPN tunnel, when using OpenVPN on OpenWRT firmware.



      The router is a WRT3200ACM, connecting to OpenVPN server on Ubuntu.



      OpenVPN client is connecting and I am able to ping ip's on the the remote network from SSH console on the router. However, all my connectet clients on the network are disconnected from the internet, when the OpenVPN connection is established.



      The OpenVPN client configuration currently looks like this:



      dev tun
      proto udp
      remote x.x.x.x 1194
      cipher AES-256-CBC
      auth SHA1
      resolv-retry infinite
      nobind
      persist-key
      persist-tun
      client
      redirect-gateway def1
      verb 3

      <ca>
      -----BEGIN CERTIFICATE-----
      REMOVED
      -----END CERTIFICATE-----
      </ca>

      key-direction 1
      <tls-auth>
      #
      # 2048 bit OpenVPN static key
      #
      -----BEGIN OpenVPN Static key V1-----
      REMOVED
      -----END OpenVPN Static key V1-----
      </tls-auth>


      <cert>
      -----BEGIN CERTIFICATE-----
      REMOVED
      -----END CERTIFICATE-----

      </cert>

      <key>
      -----BEGIN PRIVATE KEY-----
      REMOVED
      -----END PRIVATE KEY-----

      </key>


      This configuration works perfectly on the Windows and MacOS clients, and traffic is being routed correctly, but as soon as I connect this on the Linksys WRT3200ACM router, things go wrong.



      I have also tested using dd-wrt firmware on the router, but the problem was the same, however it was not possible to ping remote ip's when using dd-wrt, so the OpenWRT solution works slightly better.



      The local network configuration is:



      Network: 192.168.237.0
      Subnet: 255.255.255.0
      GW: 192.168.237.1


      The remote network configuration is:



      Network: 192.168.37.0
      Subnet: 255.255.255.0
      GW: 192.168.37.1


      and the OpenVPN virtual network configuration is:



      Network: 10.8.0.0
      Subnet: 255.255.255.0
      GW: 10.8.0.1

      IP-range: 10.8.0.6-10
      OpenVPN server: 10.8.0.5






      networking openvpn router openwrt linksys






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 9 '18 at 20:57









      GunnarGunnar

      1062




      1062




















          1 Answer
          1






          active

          oldest

          votes


















          0














          I think in your case this is a routing issue. You state that the configuration works well on your clients - hence your clients get an IP-Addr within the 10.8.0.6-10/24 range and route all traffic via the Ubuntu. The sending IP here is a 10.8.0.x IP. Furthermore, the ping works with SSH from your local router when connected, but not from the clients. If you want all your clients to connect to the internet via the OpenVPN-tunnel, then the sending IP address is 192.168.237.0 - hence your local network. The Ubuntu server does not know anything by default about that network. You have two options here:



          1. add a static route on your ubuntu machine that network 192.168.237.0/24 is reachable via the 10.8.0.x IP of your router. You then have to ensure that the router always gets the very same IP-Address

          2. add a routing protocol - e.g. RIP2. You can easily enable this by installing quagga-zebra and quagga-ripd on openwrt and ubuntu. Then you dont have to care about the dynamic IP of the router within the OpenVPN.

          If the Ubuntu server does not directly access the internet and performs a NAT you have to further distribute the route to your next device / firewall to enable it to reach back to your clients. Either via RIP or via a static route. You probably have to adjust the NAT-statement too.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f915931%2fopenvpn-client-on-openwrt-not-routing-traffic-through-vpn-on-linksys-wrt3200acm%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I think in your case this is a routing issue. You state that the configuration works well on your clients - hence your clients get an IP-Addr within the 10.8.0.6-10/24 range and route all traffic via the Ubuntu. The sending IP here is a 10.8.0.x IP. Furthermore, the ping works with SSH from your local router when connected, but not from the clients. If you want all your clients to connect to the internet via the OpenVPN-tunnel, then the sending IP address is 192.168.237.0 - hence your local network. The Ubuntu server does not know anything by default about that network. You have two options here:



            1. add a static route on your ubuntu machine that network 192.168.237.0/24 is reachable via the 10.8.0.x IP of your router. You then have to ensure that the router always gets the very same IP-Address

            2. add a routing protocol - e.g. RIP2. You can easily enable this by installing quagga-zebra and quagga-ripd on openwrt and ubuntu. Then you dont have to care about the dynamic IP of the router within the OpenVPN.

            If the Ubuntu server does not directly access the internet and performs a NAT you have to further distribute the route to your next device / firewall to enable it to reach back to your clients. Either via RIP or via a static route. You probably have to adjust the NAT-statement too.






            share|improve this answer



























              0














              I think in your case this is a routing issue. You state that the configuration works well on your clients - hence your clients get an IP-Addr within the 10.8.0.6-10/24 range and route all traffic via the Ubuntu. The sending IP here is a 10.8.0.x IP. Furthermore, the ping works with SSH from your local router when connected, but not from the clients. If you want all your clients to connect to the internet via the OpenVPN-tunnel, then the sending IP address is 192.168.237.0 - hence your local network. The Ubuntu server does not know anything by default about that network. You have two options here:



              1. add a static route on your ubuntu machine that network 192.168.237.0/24 is reachable via the 10.8.0.x IP of your router. You then have to ensure that the router always gets the very same IP-Address

              2. add a routing protocol - e.g. RIP2. You can easily enable this by installing quagga-zebra and quagga-ripd on openwrt and ubuntu. Then you dont have to care about the dynamic IP of the router within the OpenVPN.

              If the Ubuntu server does not directly access the internet and performs a NAT you have to further distribute the route to your next device / firewall to enable it to reach back to your clients. Either via RIP or via a static route. You probably have to adjust the NAT-statement too.






              share|improve this answer

























                0












                0








                0







                I think in your case this is a routing issue. You state that the configuration works well on your clients - hence your clients get an IP-Addr within the 10.8.0.6-10/24 range and route all traffic via the Ubuntu. The sending IP here is a 10.8.0.x IP. Furthermore, the ping works with SSH from your local router when connected, but not from the clients. If you want all your clients to connect to the internet via the OpenVPN-tunnel, then the sending IP address is 192.168.237.0 - hence your local network. The Ubuntu server does not know anything by default about that network. You have two options here:



                1. add a static route on your ubuntu machine that network 192.168.237.0/24 is reachable via the 10.8.0.x IP of your router. You then have to ensure that the router always gets the very same IP-Address

                2. add a routing protocol - e.g. RIP2. You can easily enable this by installing quagga-zebra and quagga-ripd on openwrt and ubuntu. Then you dont have to care about the dynamic IP of the router within the OpenVPN.

                If the Ubuntu server does not directly access the internet and performs a NAT you have to further distribute the route to your next device / firewall to enable it to reach back to your clients. Either via RIP or via a static route. You probably have to adjust the NAT-statement too.






                share|improve this answer













                I think in your case this is a routing issue. You state that the configuration works well on your clients - hence your clients get an IP-Addr within the 10.8.0.6-10/24 range and route all traffic via the Ubuntu. The sending IP here is a 10.8.0.x IP. Furthermore, the ping works with SSH from your local router when connected, but not from the clients. If you want all your clients to connect to the internet via the OpenVPN-tunnel, then the sending IP address is 192.168.237.0 - hence your local network. The Ubuntu server does not know anything by default about that network. You have two options here:



                1. add a static route on your ubuntu machine that network 192.168.237.0/24 is reachable via the 10.8.0.x IP of your router. You then have to ensure that the router always gets the very same IP-Address

                2. add a routing protocol - e.g. RIP2. You can easily enable this by installing quagga-zebra and quagga-ripd on openwrt and ubuntu. Then you dont have to care about the dynamic IP of the router within the OpenVPN.

                If the Ubuntu server does not directly access the internet and performs a NAT you have to further distribute the route to your next device / firewall to enable it to reach back to your clients. Either via RIP or via a static route. You probably have to adjust the NAT-statement too.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 28 '18 at 23:12









                Felix HFelix H

                16




                16



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f915931%2fopenvpn-client-on-openwrt-not-routing-traffic-through-vpn-on-linksys-wrt3200acm%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                    Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

                    Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070