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 - Тарых жана география Навигация менюсу

                    Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                    What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company