Redirect HTTP responses to different IP and port [on hold]Linux IPTables Destination NAT with Asymmetrical Routing?iptables port forwardingBastion Firewall Host ipTables Redirect Questioniptables NAT with multiple interfacesiptables questioniptables and DNAT. quick questionHow to configure port-forwarding to enable internal service accessed by another machine?Iptables port forwarding with restrictions on someiptables port-redirect to proxyNeed correct iptable rules for NAT instance to prevent loop back for private subnet EC2 instance outgoing traffic
What reasons are there for a Capitalist to oppose a 100% inheritance tax?
How to prevent "they're falling in love" trope
Is it logically or scientifically possible to artificially send energy to the body?
iPad being using in wall mount battery swollen
How to remove strange space symbols in Word
Why would the Red Woman birth a shadow if she worshipped the Lord of the Light?
How do I deal with an unproductive colleague in a small company?
Arrow those variables!
How badly should I try to prevent a user from XSSing themselves?
Is there an expression that means doing something right before you will need it rather than doing it in case you might need it?
Why are the 737's rear doors unusable in a water landing?
Can a virus destroy the BIOS of a modern computer?
Do scales need to be in alphabetical order?
CAST throwing error when run in stored procedure but not when run as raw query
Dreadful Dastardly Diseases, or Always Atrocious Ailments
Zip/Tar file compressed to larger size?
Can my sorcerer use a spellbook only to collect spells and scribe scrolls, not cast?
Can I run a new neutral wire to repair a broken circuit?
How dangerous is XSS?
Why doesn't using multiple commands with a || or && conditional work?
Why do I get two different answers for this counting problem?
Why was the shrinking from 8″ made only to 5.25″ and not smaller (4″ or less)?
Are there any examples of a variable being normally distributed that is *not* due to the Central Limit Theorem?
How did the Super Star Destroyer Executor get destroyed exactly?
Redirect HTTP responses to different IP and port [on hold]
Linux IPTables Destination NAT with Asymmetrical Routing?iptables port forwardingBastion Firewall Host ipTables Redirect Questioniptables NAT with multiple interfacesiptables questioniptables and DNAT. quick questionHow to configure port-forwarding to enable internal service accessed by another machine?Iptables port forwarding with restrictions on someiptables port-redirect to proxyNeed correct iptable rules for NAT instance to prevent loop back for private subnet EC2 instance outgoing traffic
In the setup I am considering, a client and a server are connected by two different networks.
The client and server eth0
interfaces are on 192.168.10.0/24
(192.168.10.1
and .2
, respectively), while their eth1
interfaces are on 192.168.11.0/24
(192.168.11.1
and .2
, respectively).
For some reason, I would like to access a webpage hosted in the server and send the client->server GET
requests from eth0
, while the responses need to go through eth1
.
I tried to achieve this with NAT and iptables
on the server:
sudo iptables -t nat -A OUTPUT -p tcp -d 192.168.10.1 --dport 80 -j DNAT --to-destination 192.168.11.1:80
but I keep receiving responses on 192.168.10.1
.
What am I missing?
iptables nat
New contributor
put on hold as off-topic by Ward♦ 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Ward
add a comment |
In the setup I am considering, a client and a server are connected by two different networks.
The client and server eth0
interfaces are on 192.168.10.0/24
(192.168.10.1
and .2
, respectively), while their eth1
interfaces are on 192.168.11.0/24
(192.168.11.1
and .2
, respectively).
For some reason, I would like to access a webpage hosted in the server and send the client->server GET
requests from eth0
, while the responses need to go through eth1
.
I tried to achieve this with NAT and iptables
on the server:
sudo iptables -t nat -A OUTPUT -p tcp -d 192.168.10.1 --dport 80 -j DNAT --to-destination 192.168.11.1:80
but I keep receiving responses on 192.168.10.1
.
What am I missing?
iptables nat
New contributor
put on hold as off-topic by Ward♦ 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Ward
Explain the reason behind this request; the solution you are trying to build looks like ANTTDNW
– Paolo
2 days ago
It is an experiment, I would like to force two different paths for the get & response, where the response go through a link which only works from the server to the client, and not vice versa.
– Mychele
2 days ago
The server (x.1) is listening on port 80, but the request from the client comes from some random port. So if you want to alter the output port then you would need to know what port the client used. Your rule above will not catch the random port.
– Robert Leckie
2 days ago
@Mychele conditional routing is a thing. Why don't use that? What led you to try this solution?
– Paolo
2 days ago
add a comment |
In the setup I am considering, a client and a server are connected by two different networks.
The client and server eth0
interfaces are on 192.168.10.0/24
(192.168.10.1
and .2
, respectively), while their eth1
interfaces are on 192.168.11.0/24
(192.168.11.1
and .2
, respectively).
For some reason, I would like to access a webpage hosted in the server and send the client->server GET
requests from eth0
, while the responses need to go through eth1
.
I tried to achieve this with NAT and iptables
on the server:
sudo iptables -t nat -A OUTPUT -p tcp -d 192.168.10.1 --dport 80 -j DNAT --to-destination 192.168.11.1:80
but I keep receiving responses on 192.168.10.1
.
What am I missing?
iptables nat
New contributor
In the setup I am considering, a client and a server are connected by two different networks.
The client and server eth0
interfaces are on 192.168.10.0/24
(192.168.10.1
and .2
, respectively), while their eth1
interfaces are on 192.168.11.0/24
(192.168.11.1
and .2
, respectively).
For some reason, I would like to access a webpage hosted in the server and send the client->server GET
requests from eth0
, while the responses need to go through eth1
.
I tried to achieve this with NAT and iptables
on the server:
sudo iptables -t nat -A OUTPUT -p tcp -d 192.168.10.1 --dport 80 -j DNAT --to-destination 192.168.11.1:80
but I keep receiving responses on 192.168.10.1
.
What am I missing?
iptables nat
iptables nat
New contributor
New contributor
New contributor
asked 2 days ago
MycheleMychele
1
1
New contributor
New contributor
put on hold as off-topic by Ward♦ 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Ward
put on hold as off-topic by Ward♦ 2 days ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Ward
Explain the reason behind this request; the solution you are trying to build looks like ANTTDNW
– Paolo
2 days ago
It is an experiment, I would like to force two different paths for the get & response, where the response go through a link which only works from the server to the client, and not vice versa.
– Mychele
2 days ago
The server (x.1) is listening on port 80, but the request from the client comes from some random port. So if you want to alter the output port then you would need to know what port the client used. Your rule above will not catch the random port.
– Robert Leckie
2 days ago
@Mychele conditional routing is a thing. Why don't use that? What led you to try this solution?
– Paolo
2 days ago
add a comment |
Explain the reason behind this request; the solution you are trying to build looks like ANTTDNW
– Paolo
2 days ago
It is an experiment, I would like to force two different paths for the get & response, where the response go through a link which only works from the server to the client, and not vice versa.
– Mychele
2 days ago
The server (x.1) is listening on port 80, but the request from the client comes from some random port. So if you want to alter the output port then you would need to know what port the client used. Your rule above will not catch the random port.
– Robert Leckie
2 days ago
@Mychele conditional routing is a thing. Why don't use that? What led you to try this solution?
– Paolo
2 days ago
Explain the reason behind this request; the solution you are trying to build looks like ANTTDNW
– Paolo
2 days ago
Explain the reason behind this request; the solution you are trying to build looks like ANTTDNW
– Paolo
2 days ago
It is an experiment, I would like to force two different paths for the get & response, where the response go through a link which only works from the server to the client, and not vice versa.
– Mychele
2 days ago
It is an experiment, I would like to force two different paths for the get & response, where the response go through a link which only works from the server to the client, and not vice versa.
– Mychele
2 days ago
The server (x.1) is listening on port 80, but the request from the client comes from some random port. So if you want to alter the output port then you would need to know what port the client used. Your rule above will not catch the random port.
– Robert Leckie
2 days ago
The server (x.1) is listening on port 80, but the request from the client comes from some random port. So if you want to alter the output port then you would need to know what port the client used. Your rule above will not catch the random port.
– Robert Leckie
2 days ago
@Mychele conditional routing is a thing. Why don't use that? What led you to try this solution?
– Paolo
2 days ago
@Mychele conditional routing is a thing. Why don't use that? What led you to try this solution?
– Paolo
2 days ago
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Explain the reason behind this request; the solution you are trying to build looks like ANTTDNW
– Paolo
2 days ago
It is an experiment, I would like to force two different paths for the get & response, where the response go through a link which only works from the server to the client, and not vice versa.
– Mychele
2 days ago
The server (x.1) is listening on port 80, but the request from the client comes from some random port. So if you want to alter the output port then you would need to know what port the client used. Your rule above will not catch the random port.
– Robert Leckie
2 days ago
@Mychele conditional routing is a thing. Why don't use that? What led you to try this solution?
– Paolo
2 days ago