Route everything in server Centos7 through VPN except SSH on Port 22 and Port 2030 http

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 a server Centos 7 and I want to setup a VPN on it to route all traffic.



I don't want to block myself out when establishing the OpenVPN connection so I want port 22 tcp to be unaffected and port 2030 be reachable as usual.



Is this possible? And if so, how can I set this up?









share







New contributor




Win-Design is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    I have a server Centos 7 and I want to setup a VPN on it to route all traffic.



    I don't want to block myself out when establishing the OpenVPN connection so I want port 22 tcp to be unaffected and port 2030 be reachable as usual.



    Is this possible? And if so, how can I set this up?









    share







    New contributor




    Win-Design is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a server Centos 7 and I want to setup a VPN on it to route all traffic.



      I don't want to block myself out when establishing the OpenVPN connection so I want port 22 tcp to be unaffected and port 2030 be reachable as usual.



      Is this possible? And if so, how can I set this up?









      share







      New contributor




      Win-Design is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I have a server Centos 7 and I want to setup a VPN on it to route all traffic.



      I don't want to block myself out when establishing the OpenVPN connection so I want port 22 tcp to be unaffected and port 2030 be reachable as usual.



      Is this possible? And if so, how can I set this up?







      centos ssh networking openvpn





      share







      New contributor




      Win-Design is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Win-Design is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Win-Design is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 7 mins ago









      Win-Design

      11




      11




      New contributor




      Win-Design is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Win-Design is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Win-Design is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          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
          );



          );






          Win-Design is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478326%2froute-everything-in-server-centos7-through-vpn-except-ssh-on-port-22-and-port-20%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Win-Design is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          Win-Design is a new contributor. Be nice, and check out our Code of Conduct.












          Win-Design is a new contributor. Be nice, and check out our Code of Conduct.











          Win-Design is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478326%2froute-everything-in-server-centos7-through-vpn-except-ssh-on-port-22-and-port-20%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?