How would I go about redirecting traffic

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











up vote
1
down vote

favorite












I am running Ubuntu 16.04 lts and I'm attempting to redirect all outgoing TCP traffic from my host:6030 to IP1:443, and all incoming traffic from IP1:443 back to host:6030. I have tried this and it works a little bit but it creates some lag (my guess it creates a loop). I am on a gigabit network with a powerful cpu, so I don't thing there would be possible bottlenecking issues. My apologizes if this post appears unclear, I am relatively new to networking. The rules that I was using:



iptables -t nat -I PREROUTING --src 0/0 --dst 207.207.240.1 -p tcp --dport 6030 -j REDIRECT --to-ports 443

iptables -t nat -I OUTPUT --src 0/0 --dst 207.207.240.1 -p tcp --dport 443 -j REDIRECT --to-ports 6030






share|improve this question


























    up vote
    1
    down vote

    favorite












    I am running Ubuntu 16.04 lts and I'm attempting to redirect all outgoing TCP traffic from my host:6030 to IP1:443, and all incoming traffic from IP1:443 back to host:6030. I have tried this and it works a little bit but it creates some lag (my guess it creates a loop). I am on a gigabit network with a powerful cpu, so I don't thing there would be possible bottlenecking issues. My apologizes if this post appears unclear, I am relatively new to networking. The rules that I was using:



    iptables -t nat -I PREROUTING --src 0/0 --dst 207.207.240.1 -p tcp --dport 6030 -j REDIRECT --to-ports 443

    iptables -t nat -I OUTPUT --src 0/0 --dst 207.207.240.1 -p tcp --dport 443 -j REDIRECT --to-ports 6030






    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am running Ubuntu 16.04 lts and I'm attempting to redirect all outgoing TCP traffic from my host:6030 to IP1:443, and all incoming traffic from IP1:443 back to host:6030. I have tried this and it works a little bit but it creates some lag (my guess it creates a loop). I am on a gigabit network with a powerful cpu, so I don't thing there would be possible bottlenecking issues. My apologizes if this post appears unclear, I am relatively new to networking. The rules that I was using:



      iptables -t nat -I PREROUTING --src 0/0 --dst 207.207.240.1 -p tcp --dport 6030 -j REDIRECT --to-ports 443

      iptables -t nat -I OUTPUT --src 0/0 --dst 207.207.240.1 -p tcp --dport 443 -j REDIRECT --to-ports 6030






      share|improve this question














      I am running Ubuntu 16.04 lts and I'm attempting to redirect all outgoing TCP traffic from my host:6030 to IP1:443, and all incoming traffic from IP1:443 back to host:6030. I have tried this and it works a little bit but it creates some lag (my guess it creates a loop). I am on a gigabit network with a powerful cpu, so I don't thing there would be possible bottlenecking issues. My apologizes if this post appears unclear, I am relatively new to networking. The rules that I was using:



      iptables -t nat -I PREROUTING --src 0/0 --dst 207.207.240.1 -p tcp --dport 6030 -j REDIRECT --to-ports 443

      iptables -t nat -I OUTPUT --src 0/0 --dst 207.207.240.1 -p tcp --dport 443 -j REDIRECT --to-ports 6030








      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 11 at 13:57









      Jaken551

      1678




      1678










      asked Apr 11 at 12:44









      Dode

      61




      61

























          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%2f437008%2fhow-would-i-go-about-redirecting-traffic%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%2f437008%2fhow-would-i-go-about-redirecting-traffic%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?