Not able to ping VM and/or mount NFS after changing IP via POSTROUTINGLinux IPTables Destination NAT with...

Why might Google Analytics report a sudden, but persistent, drop in bounce rate (70% to 12%)

Significance and timing of "mux scans"

When was drinking water recognized as crucial in marathon running?

How to acknowledge an embarrassing job interview, now that I work directly with the interviewer?

Can chords be played on the flute?

How do I implement simple JS code to deploy a compiled smart contract to ganache-cli?

How can I handle a player who pre-plans arguments about my rulings on RAW?

How would we write a misogynistic character without offending people?

Is there a better way to make addon working on both blender 2.80 and 2.79?

What is the difference between ashamed and shamed?

The change directory (cd) command is not working with a USB drive

Equivalent to "source" in OpenBSD?

Sometimes a banana is just a banana

Where is this triangular-shaped space station from?

How to avoid being sexist when trying to employ someone to function in a very sexist environment?

Make me a metasequence

Are small insurances worth it

Hacker Rank: Array left rotation

You'll find me clean when something is full

When should a commit not be version tagged?

Exponential growth/decay formula: what happened to the other constant of integration?

What is the difference between throw e and throw new Exception(e)?

Is there a frame of reference in which I was born before I was conceived?

Compare four integers, return word based on maximum



Not able to ping VM and/or mount NFS after changing IP via POSTROUTING


Linux IPTables Destination NAT with Asymmetrical Routing?iptables questionConnect networks with identical IPs via iptables+NAT: selecting outgoing network interfaceBasic iptables NAT port forwardingPing: sendmsg: operation not permitted error after installing iptables on Arch GNU/Linuxhow to correctly change the source ip of a ping packet?iptables: How to combine DNAT and SNAT to use a secondary IP address?PAT with IPTABLE over Virtual NIC in a virtual machinePublic to Public IP GREpfsense and virtual IP addresses













0















imagine following setup.



I have a machine A which exports a network share and is reachable under, say 1.1.1.1.



A second B machine with an IP, say 2.2.2.2, is mounting that share, everything's fine.



Now I'm trying to setup some kind of blue/green development.

The machine B starts with the IP 2.2.2.2. When I assign some kind of a new Virtual IP (like ElasticIP from aws, but in my case Floating IP from Hetzner Cloud), I create a new POSTROUTING entry in the iptables with



iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source $FIP


which results correctly in



10      20  1415 SNAT       all  --  *      eth0    0.0.0.0/0            0.0.0.0/0            to:x.x.x.x


That means, the machine B now communicates with the new IP address.



Here comes the pain:

I no longer can mound and/or ping the machine A with the IP 1.1.1.1.
The machine A is 'pingable' from everywhere but from the Machine B with the new IP address.



How come? Any ideas?



Thanks,
xxx










share|improve this question







New contributor




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

























    0















    imagine following setup.



    I have a machine A which exports a network share and is reachable under, say 1.1.1.1.



    A second B machine with an IP, say 2.2.2.2, is mounting that share, everything's fine.



    Now I'm trying to setup some kind of blue/green development.

    The machine B starts with the IP 2.2.2.2. When I assign some kind of a new Virtual IP (like ElasticIP from aws, but in my case Floating IP from Hetzner Cloud), I create a new POSTROUTING entry in the iptables with



    iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source $FIP


    which results correctly in



    10      20  1415 SNAT       all  --  *      eth0    0.0.0.0/0            0.0.0.0/0            to:x.x.x.x


    That means, the machine B now communicates with the new IP address.



    Here comes the pain:

    I no longer can mound and/or ping the machine A with the IP 1.1.1.1.
    The machine A is 'pingable' from everywhere but from the Machine B with the new IP address.



    How come? Any ideas?



    Thanks,
    xxx










    share|improve this question







    New contributor




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























      0












      0








      0








      imagine following setup.



      I have a machine A which exports a network share and is reachable under, say 1.1.1.1.



      A second B machine with an IP, say 2.2.2.2, is mounting that share, everything's fine.



      Now I'm trying to setup some kind of blue/green development.

      The machine B starts with the IP 2.2.2.2. When I assign some kind of a new Virtual IP (like ElasticIP from aws, but in my case Floating IP from Hetzner Cloud), I create a new POSTROUTING entry in the iptables with



      iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source $FIP


      which results correctly in



      10      20  1415 SNAT       all  --  *      eth0    0.0.0.0/0            0.0.0.0/0            to:x.x.x.x


      That means, the machine B now communicates with the new IP address.



      Here comes the pain:

      I no longer can mound and/or ping the machine A with the IP 1.1.1.1.
      The machine A is 'pingable' from everywhere but from the Machine B with the new IP address.



      How come? Any ideas?



      Thanks,
      xxx










      share|improve this question







      New contributor




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












      imagine following setup.



      I have a machine A which exports a network share and is reachable under, say 1.1.1.1.



      A second B machine with an IP, say 2.2.2.2, is mounting that share, everything's fine.



      Now I'm trying to setup some kind of blue/green development.

      The machine B starts with the IP 2.2.2.2. When I assign some kind of a new Virtual IP (like ElasticIP from aws, but in my case Floating IP from Hetzner Cloud), I create a new POSTROUTING entry in the iptables with



      iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source $FIP


      which results correctly in



      10      20  1415 SNAT       all  --  *      eth0    0.0.0.0/0            0.0.0.0/0            to:x.x.x.x


      That means, the machine B now communicates with the new IP address.



      Here comes the pain:

      I no longer can mound and/or ping the machine A with the IP 1.1.1.1.
      The machine A is 'pingable' from everywhere but from the Machine B with the new IP address.



      How come? Any ideas?



      Thanks,
      xxx







      ip nat nfs ping virtual-ip






      share|improve this question







      New contributor




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











      share|improve this question







      New contributor




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









      share|improve this question




      share|improve this question






      New contributor




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









      asked 6 hours ago









      xxxxxx

      1




      1




      New contributor




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





      New contributor





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






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






















          0






          active

          oldest

          votes











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


          }
          });






          xxx 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%2fserverfault.com%2fquestions%2f956676%2fnot-able-to-ping-vm-and-or-mount-nfs-after-changing-ip-via-postrouting%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








          xxx is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          xxx is a new contributor. Be nice, and check out our Code of Conduct.













          xxx is a new contributor. Be nice, and check out our Code of Conduct.












          xxx is a new contributor. Be nice, and check out our Code of Conduct.
















          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%2f956676%2fnot-able-to-ping-vm-and-or-mount-nfs-after-changing-ip-via-postrouting%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

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...