Routing additional IPs from VPS over network The Next CEO of Stack OverflowClient unable to...

Anatomically Correct Strange Women In Ponds Distributing Swords

Why do we use the plural of movies in this phrase "We went to the movies last night."?

Which kind of appliances can one connect to electric sockets located in a airplane's toilet?

Preparing Indesign booklet with .psd graphics for print

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Why does the UK parliament need a vote on the political declaration?

Should I tutor a student who I know has cheated on their homework?

Are there any limitations on attacking while grappling?

Inappropriate reference requests from Journal reviewers

Would a galaxy be visible from outside, but nearby?

If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?

How do scammers retract money, while you can’t?

Why has the US not been more assertive in confronting Russia in recent years?

MessageLevel in QGIS3

Received an invoice from my ex-employer billing me for training; how to handle?

Has this building technique been used in an official set?

Is there a way to save my career from absolute disaster?

How do I go from 300 unfinished/half written blog posts, to published posts?

Is there an analogue of projective spaces for proper schemes?

Unreliable Magic - Is it worth it?

Can I equip Skullclamp on a creature I am sacrificing?

How did people program for Consoles with multiple CPUs?

WOW air has ceased operation, can I get my tickets refunded?

Is it professional to write unrelated content in an almost-empty email?



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







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







    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







      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







      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







      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



      share






      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 2 mins ago









      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

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

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

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