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
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
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.
add a comment |
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
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.
add a comment |
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
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
linux routing ipv4
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.
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.
add a comment |
add a comment |
0
active
oldest
votes
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
