Settting up iptables: sudo ip route | grep default gives result different from tutorialAccess VPN from home is fine but not outside via 3GJuju cannot deploy services with MAASHow to use my ubuntu server as router?External access to Ubuntu single-node openstack horizon dashboardForward packets from bonded LAN interface to WANAllowing Remote Desktop (rdesktop) through Ubuntu (16.04) DHCP SeverCan not forward port

Can there be an atomic nucleus where there are more protons than neutrons?

Rule of thumb: how far before changing my chain to prevent cassette wear

Why did Crew Dragon switch to burst disks instead of multiple check valves?

Is it now possible to undetectably cross the Arctic Ocean on ski/kayak?

Is the algebra of compact operators flat?

Do you say "good game" after a game in which your opponent played poorly?

XDSL Internet Connection Over Optical Fibre Telephone Line?

Any Issues with running Workbench 1.3 on a Kickstart 1.2 Amiga 500?

My Villain scrys on the party, but I forgot about the sensor!

"Table" method for expanding brackets vs "each term in the first bracket gets multiplied by each term in the second bracket"

I got this nail stuck in my tire, should I plug or replace?

Why does Chinuch confuse Parashat Nitzavim and Vayelech?

Paper status "Accept with Shepherd". What does it really mean?

Why is beatboxing called 「ヒューマンビートボックス」?

Where is the 'zone of reversed commands...'?

Does almost every point in Euclidean space have unique projection on any given set?

Who is Sifter, and what is "the so-called Sifter flare"?

Does Wilfred know he is the one to fulfill the four knocks prophecy?

3-prong to 4-prong conversion - EXTRA MISLABELLED WIRES - Dryer cable upgrade and installation

Will Brexit potentially have an impact on intra-Schengen flights by EasyJet in November?

Can you set fire to beer barrels?

"inuendo" in a piano score

Applicable country for US Visa In Icelandair Airline Website

Meaning of 'sick' in 'Kylie Jenner is showing off the new sick ride in her driveway'



Settting up iptables: sudo ip route | grep default gives result different from tutorial


Access VPN from home is fine but not outside via 3GJuju cannot deploy services with MAASHow to use my ubuntu server as router?External access to Ubuntu single-node openstack horizon dashboardForward packets from bonded LAN interface to WANAllowing Remote Desktop (rdesktop) through Ubuntu (16.04) DHCP SeverCan not forward port






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















I'm following this tutorial and am right before Step 7, on this command:



$ sudo ip route | grep default


The output should be:



default dev venet0 scope link


However my output is



default via XXX.XXX.XXX.X dev eth0 onlink


Right after I should run:



sudo iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE


However seeing as my output differs, I'm not sure what command I should run. Obviously, there needs to be eth0 instead of venet0 and my XXX IP instead of 10.8.0.0/24, but maybe there's some other tweaks to be done?










share|improve this question
































    0

















    I'm following this tutorial and am right before Step 7, on this command:



    $ sudo ip route | grep default


    The output should be:



    default dev venet0 scope link


    However my output is



    default via XXX.XXX.XXX.X dev eth0 onlink


    Right after I should run:



    sudo iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE


    However seeing as my output differs, I'm not sure what command I should run. Obviously, there needs to be eth0 instead of venet0 and my XXX IP instead of 10.8.0.0/24, but maybe there's some other tweaks to be done?










    share|improve this question




























      0












      0








      0








      I'm following this tutorial and am right before Step 7, on this command:



      $ sudo ip route | grep default


      The output should be:



      default dev venet0 scope link


      However my output is



      default via XXX.XXX.XXX.X dev eth0 onlink


      Right after I should run:



      sudo iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE


      However seeing as my output differs, I'm not sure what command I should run. Obviously, there needs to be eth0 instead of venet0 and my XXX IP instead of 10.8.0.0/24, but maybe there's some other tweaks to be done?










      share|improve this question














      I'm following this tutorial and am right before Step 7, on this command:



      $ sudo ip route | grep default


      The output should be:



      default dev venet0 scope link


      However my output is



      default via XXX.XXX.XXX.X dev eth0 onlink


      Right after I should run:



      sudo iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE


      However seeing as my output differs, I'm not sure what command I should run. Obviously, there needs to be eth0 instead of venet0 and my XXX IP instead of 10.8.0.0/24, but maybe there's some other tweaks to be done?







      networking server iptables openvpn






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question



      share|improve this question










      asked May 2 at 21:51









      parsecerparsecer

      1105 bronze badges




      1105 bronze badges























          0






          active

          oldest

          votes













          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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/4.0/"u003ecc by-sa 4.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%2faskubuntu.com%2fquestions%2f1140086%2fsettting-up-iptables-sudo-ip-route-grep-default-gives-result-different-from-t%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown


























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded















































          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1140086%2fsettting-up-iptables-sudo-ip-route-grep-default-gives-result-different-from-t%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

          Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

          Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?

          apt-get update fails to fetch files, “Temporary failure resolving …” errorWhy does apt-get fail to resolve the mirror?Apt-get update not working in Ubuntu 16.04 “temporary failure resolving”Ubuntu 16.04 Server updates - Temporary failure resolving 'ro.archive.ubuntu.com'“Failed to fetch… Temporary failure resolving…” when trying to installTemporary failure resolving ca.archive.ubuntu.comUbuntu 18.04 sudo apt update doesn't work (Failed to Fetch)apt-get error: “Temporary failure resolving 'archive.ubuntu.com' ”“Temporary failure resolving us.archive.ubuntu.com” Live USB rescueTemporary failure resolving 'es.archive.ubuntu.com' on Ubuntu Server15.04 Server fails to update with failed to fetch temporary failure resolving errorsCan't install software from Software CenterApt-get failed to fetch from Ubuntu server with error code 404“Unable to connect” error with apt-get: possible proxy?v12.10 can't apt-get update111: Connection refused when trying apt updateSudo apt-get update