Routing additional IPs from VPS over network The Next CEO of Stack OverflowClient unable to reach Internet through OpenVPNiptables questionOpenVPN routing caseTraffic not routing as expectedHow can I share my internet connection to my LAN with Debian?Ping reply not getting to LAN machines but getting in Linux router Gateway,Internet not working on clientHow to add additional network segment?How to configure dual homed server in order for both network segments to communicate?NO routing in VPN to client sideVPN Router does not reply to ARP Requests

Can you teleport closer to a creature you are Frightened of?

Physiological effects of huge anime eyes

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

Can someone explain this formula for calculating Manhattan distance?

Getting Stale Gas Out of a Gas Tank w/out Dropping the Tank

How did Beeri the Hittite come up with naming his daughter Yehudit?

Is there an equivalent of cd - for cp or mv

Sulfuric acid symmetry point group

Can I use the word “Senior” as part of a job title directly in German?

Is French Guiana a (hard) EU border?

What CSS properties can the br tag have?

What connection does MS Office have to Netscape Navigator?

What difference does it make using sed with/without whitespaces?

Help! I cannot understand this game’s notations!

Towers in the ocean; How deep can they be built?

New carbon wheel brake pads after use on aluminum wheel?

What does "shotgun unity" refer to here in this sentence?

What is the difference between Statistical Mechanics and Quantum Mechanics

Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico

Audio Conversion With ADS1243

Reference request: Grassmannian and Plucker coordinates in type B, C, D

How to find image of a complex function with given constraints?

what's the use of '% to gdp' type of variables?

Is there a reasonable and studied concept of reduction between regular languages?



Routing additional IPs from VPS over network



The Next CEO of Stack OverflowClient unable to reach Internet through OpenVPNiptables questionOpenVPN routing caseTraffic not routing as expectedHow can I share my internet connection to my LAN with Debian?Ping reply not getting to LAN machines but getting in Linux router Gateway,Internet not working on clientHow to add additional network segment?How to configure dual homed server in order for both network segments to communicate?NO routing in VPN to client sideVPN Router does not reply to ARP Requests










0















I have a VPS with multiple IP addresses (ubuntu). It is connected to my LAN network using ZeroTier.



I am trying to use some of these additional IP addresses for servers on my ZeroTier LAN so they are visible from the internet.



The only (Semi) success I have had is using IP MASQUERADING, which sort of works, but the traceroute shows a double hop with the same IP at the end, and the source IP is replaced with the VPS IP address when it hits my servers.



On my VPS I am using:



sysctl net.ipv4.ip_forward=1 
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

ip route add 103.xx.xx.xx via 192.168.1.19 dev ztxxxxx
iptables -A FORWARD -i ztxxxxx -o eth0 -j ACCEPT
iptables -A FORWARD -i ztxxxxx -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o ztxxxxx -j MASQUERADE


How can I route this second IP properly without MASQUERADE? The normal route command above does nothing externally without the MASQ.










share|improve this question







New contributor




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
























    0















    I have a VPS with multiple IP addresses (ubuntu). It is connected to my LAN network using ZeroTier.



    I am trying to use some of these additional IP addresses for servers on my ZeroTier LAN so they are visible from the internet.



    The only (Semi) success I have had is using IP MASQUERADING, which sort of works, but the traceroute shows a double hop with the same IP at the end, and the source IP is replaced with the VPS IP address when it hits my servers.



    On my VPS I am using:



    sysctl net.ipv4.ip_forward=1 
    echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

    ip route add 103.xx.xx.xx via 192.168.1.19 dev ztxxxxx
    iptables -A FORWARD -i ztxxxxx -o eth0 -j ACCEPT
    iptables -A FORWARD -i ztxxxxx -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
    iptables -t nat -A POSTROUTING -o ztxxxxx -j MASQUERADE


    How can I route this second IP properly without MASQUERADE? The normal route command above does nothing externally without the MASQ.










    share|improve this question







    New contributor




    jay 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








      I have a VPS with multiple IP addresses (ubuntu). It is connected to my LAN network using ZeroTier.



      I am trying to use some of these additional IP addresses for servers on my ZeroTier LAN so they are visible from the internet.



      The only (Semi) success I have had is using IP MASQUERADING, which sort of works, but the traceroute shows a double hop with the same IP at the end, and the source IP is replaced with the VPS IP address when it hits my servers.



      On my VPS I am using:



      sysctl net.ipv4.ip_forward=1 
      echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

      ip route add 103.xx.xx.xx via 192.168.1.19 dev ztxxxxx
      iptables -A FORWARD -i ztxxxxx -o eth0 -j ACCEPT
      iptables -A FORWARD -i ztxxxxx -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
      iptables -t nat -A POSTROUTING -o ztxxxxx -j MASQUERADE


      How can I route this second IP properly without MASQUERADE? The normal route command above does nothing externally without the MASQ.










      share|improve this question







      New contributor




      jay 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 VPS with multiple IP addresses (ubuntu). It is connected to my LAN network using ZeroTier.



      I am trying to use some of these additional IP addresses for servers on my ZeroTier LAN so they are visible from the internet.



      The only (Semi) success I have had is using IP MASQUERADING, which sort of works, but the traceroute shows a double hop with the same IP at the end, and the source IP is replaced with the VPS IP address when it hits my servers.



      On my VPS I am using:



      sysctl net.ipv4.ip_forward=1 
      echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

      ip route add 103.xx.xx.xx via 192.168.1.19 dev ztxxxxx
      iptables -A FORWARD -i ztxxxxx -o eth0 -j ACCEPT
      iptables -A FORWARD -i ztxxxxx -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
      iptables -t nat -A POSTROUTING -o ztxxxxx -j MASQUERADE


      How can I route this second IP properly without MASQUERADE? The normal route command above does nothing externally without the MASQ.







      linux routing ipv4






      share|improve this question







      New contributor




      jay 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




      jay 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




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









      asked yesterday









      jayjay

      1




      1




      New contributor




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





      New contributor





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






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



          );






          jay 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%2f960721%2frouting-additional-ips-from-vps-over-network%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








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









          draft saved

          draft discarded


















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












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











          jay 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%2f960721%2frouting-additional-ips-from-vps-over-network%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

          How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

          What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

          Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos