How to forward MITM traffic through SSH tunnel?

Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
Using the arpspoof command I have created a MITM attack on another device. I would now like to forward the traffic through an SSH tunnel (SOCKS5 Proxy). Heres an example....
Client 1-----MITM----->Client 2------MITM-----(Router)---SSH Tunnel---->Server A
Step 1: MITM
Client 2 uses arpspoof to trick Client 1 into thinking that Client 2 is the router. Client 2 uses arpspoof to trick the Router into thinking Client 2 is Client 1.
Step 2: SSH Tunnel
Client 2 sets up a SSH tunnel that connects to Server A.
Step 3: SOCKS5 Proxy
Client 2 sets up a SOCKS5 Proxy running on localhost (127.0.0.1) that forwards traffic to Server A.
Step 4: My Goal
Forward the traffic from Client 1 to Client 2 and forward that to the SOCKS5 proxy and then forward that through the SSH Tunnel Server A.
Is it possible and how do I do it?
Thanks in advanced,
Josh
iptables ssh-tunneling socks5-proxy
add a comment |Â
up vote
2
down vote
favorite
Using the arpspoof command I have created a MITM attack on another device. I would now like to forward the traffic through an SSH tunnel (SOCKS5 Proxy). Heres an example....
Client 1-----MITM----->Client 2------MITM-----(Router)---SSH Tunnel---->Server A
Step 1: MITM
Client 2 uses arpspoof to trick Client 1 into thinking that Client 2 is the router. Client 2 uses arpspoof to trick the Router into thinking Client 2 is Client 1.
Step 2: SSH Tunnel
Client 2 sets up a SSH tunnel that connects to Server A.
Step 3: SOCKS5 Proxy
Client 2 sets up a SOCKS5 Proxy running on localhost (127.0.0.1) that forwards traffic to Server A.
Step 4: My Goal
Forward the traffic from Client 1 to Client 2 and forward that to the SOCKS5 proxy and then forward that through the SSH Tunnel Server A.
Is it possible and how do I do it?
Thanks in advanced,
Josh
iptables ssh-tunneling socks5-proxy
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Using the arpspoof command I have created a MITM attack on another device. I would now like to forward the traffic through an SSH tunnel (SOCKS5 Proxy). Heres an example....
Client 1-----MITM----->Client 2------MITM-----(Router)---SSH Tunnel---->Server A
Step 1: MITM
Client 2 uses arpspoof to trick Client 1 into thinking that Client 2 is the router. Client 2 uses arpspoof to trick the Router into thinking Client 2 is Client 1.
Step 2: SSH Tunnel
Client 2 sets up a SSH tunnel that connects to Server A.
Step 3: SOCKS5 Proxy
Client 2 sets up a SOCKS5 Proxy running on localhost (127.0.0.1) that forwards traffic to Server A.
Step 4: My Goal
Forward the traffic from Client 1 to Client 2 and forward that to the SOCKS5 proxy and then forward that through the SSH Tunnel Server A.
Is it possible and how do I do it?
Thanks in advanced,
Josh
iptables ssh-tunneling socks5-proxy
Using the arpspoof command I have created a MITM attack on another device. I would now like to forward the traffic through an SSH tunnel (SOCKS5 Proxy). Heres an example....
Client 1-----MITM----->Client 2------MITM-----(Router)---SSH Tunnel---->Server A
Step 1: MITM
Client 2 uses arpspoof to trick Client 1 into thinking that Client 2 is the router. Client 2 uses arpspoof to trick the Router into thinking Client 2 is Client 1.
Step 2: SSH Tunnel
Client 2 sets up a SSH tunnel that connects to Server A.
Step 3: SOCKS5 Proxy
Client 2 sets up a SOCKS5 Proxy running on localhost (127.0.0.1) that forwards traffic to Server A.
Step 4: My Goal
Forward the traffic from Client 1 to Client 2 and forward that to the SOCKS5 proxy and then forward that through the SSH Tunnel Server A.
Is it possible and how do I do it?
Thanks in advanced,
Josh
iptables ssh-tunneling socks5-proxy
asked Jan 24 at 2:39
JBis
1163
1163
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419241%2fhow-to-forward-mitm-traffic-through-ssh-tunnel%23new-answer', 'question_page');
);
Post as a guest
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
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
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