How do you configure Firewalld for Openvpn?

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











up vote
0
down vote

favorite












Can someone tell me how to configure Firewalld as a kill switch for Openvpn to prevent any leakage of your real ip when there's unexpected disconnection and such and to make sure all traffic is going through your current vpn service?










share|improve this question



























    up vote
    0
    down vote

    favorite












    Can someone tell me how to configure Firewalld as a kill switch for Openvpn to prevent any leakage of your real ip when there's unexpected disconnection and such and to make sure all traffic is going through your current vpn service?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Can someone tell me how to configure Firewalld as a kill switch for Openvpn to prevent any leakage of your real ip when there's unexpected disconnection and such and to make sure all traffic is going through your current vpn service?










      share|improve this question















      Can someone tell me how to configure Firewalld as a kill switch for Openvpn to prevent any leakage of your real ip when there's unexpected disconnection and such and to make sure all traffic is going through your current vpn service?







      firewall openvpn vpn firewalld






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 21 at 3:21









      Rui F Ribeiro

      36.7k1271116




      36.7k1271116










      asked Sep 13 '16 at 22:30









      John

      1




      1




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Don't setup a default gw at all, only add your vpn server's ip to route. Command line is route add <vpnserverip> gw <defaultgwip>, or use any networkmanager sw what you like. Then you can be 100% sure there is no other traffic just vpn.






          share|improve this answer




















            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%2f309698%2fhow-do-you-configure-firewalld-for-openvpn%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            Don't setup a default gw at all, only add your vpn server's ip to route. Command line is route add <vpnserverip> gw <defaultgwip>, or use any networkmanager sw what you like. Then you can be 100% sure there is no other traffic just vpn.






            share|improve this answer
























              up vote
              1
              down vote













              Don't setup a default gw at all, only add your vpn server's ip to route. Command line is route add <vpnserverip> gw <defaultgwip>, or use any networkmanager sw what you like. Then you can be 100% sure there is no other traffic just vpn.






              share|improve this answer






















                up vote
                1
                down vote










                up vote
                1
                down vote









                Don't setup a default gw at all, only add your vpn server's ip to route. Command line is route add <vpnserverip> gw <defaultgwip>, or use any networkmanager sw what you like. Then you can be 100% sure there is no other traffic just vpn.






                share|improve this answer












                Don't setup a default gw at all, only add your vpn server's ip to route. Command line is route add <vpnserverip> gw <defaultgwip>, or use any networkmanager sw what you like. Then you can be 100% sure there is no other traffic just vpn.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 13 '16 at 22:34









                Ipor Sircer

                9,3161920




                9,3161920



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f309698%2fhow-do-you-configure-firewalld-for-openvpn%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)