iptables forwarding incoming IP to another destination IP
up vote
0
down vote
favorite
- server 1.1.1.1
- client 2.2.2.2
- client: 3.3.3.3
I have a server and two clients, in order to visualize all the trafic in my network from my client 2.2.2.2 i have to forward the trafic between my server and my client 3.3.3.3
I tried
iptables -t nat -A PREROUTING -d 3.3.3.3 -j DNAT --to-destination 2.2.2.2
iptables -t nat -A POSTROUTING -s 2.2.2.2 -j SNAT --to-source 3.3.3.3
But it's not working.
linux ubuntu iptables forwarding
New contributor
add a comment |
up vote
0
down vote
favorite
- server 1.1.1.1
- client 2.2.2.2
- client: 3.3.3.3
I have a server and two clients, in order to visualize all the trafic in my network from my client 2.2.2.2 i have to forward the trafic between my server and my client 3.3.3.3
I tried
iptables -t nat -A PREROUTING -d 3.3.3.3 -j DNAT --to-destination 2.2.2.2
iptables -t nat -A POSTROUTING -s 2.2.2.2 -j SNAT --to-source 3.3.3.3
But it's not working.
linux ubuntu iptables forwarding
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
- server 1.1.1.1
- client 2.2.2.2
- client: 3.3.3.3
I have a server and two clients, in order to visualize all the trafic in my network from my client 2.2.2.2 i have to forward the trafic between my server and my client 3.3.3.3
I tried
iptables -t nat -A PREROUTING -d 3.3.3.3 -j DNAT --to-destination 2.2.2.2
iptables -t nat -A POSTROUTING -s 2.2.2.2 -j SNAT --to-source 3.3.3.3
But it's not working.
linux ubuntu iptables forwarding
New contributor
- server 1.1.1.1
- client 2.2.2.2
- client: 3.3.3.3
I have a server and two clients, in order to visualize all the trafic in my network from my client 2.2.2.2 i have to forward the trafic between my server and my client 3.3.3.3
I tried
iptables -t nat -A PREROUTING -d 3.3.3.3 -j DNAT --to-destination 2.2.2.2
iptables -t nat -A POSTROUTING -s 2.2.2.2 -j SNAT --to-source 3.3.3.3
But it's not working.
linux ubuntu iptables forwarding
linux ubuntu iptables forwarding
New contributor
New contributor
edited Nov 15 at 17:43
Rui F Ribeiro
38.2k1475123
38.2k1475123
New contributor
asked Nov 15 at 17:42
N. Asuna
1
1
New contributor
New contributor
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
N. Asuna is a new contributor. Be nice, and check out our Code of Conduct.
N. Asuna is a new contributor. Be nice, and check out our Code of Conduct.
N. Asuna is a new contributor. Be nice, and check out our Code of Conduct.
N. Asuna 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%2funix.stackexchange.com%2fquestions%2f482002%2fiptables-forwarding-incoming-ip-to-another-destination-ip%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