Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SYN/ACK redirect

Status
Not open for further replies.

JURNL

Programmer
Dec 18, 2010
3
NL
Hello all,

(getting a bit crazy here)

PROBLEM:

- client 1 (behind router 1) requires to connect to client 2 (behind router 2)

- rendezvous server inbetween, having connections to both client 1 and 2


PROPOSED SOLUTION:

- connection from client 1 should be redirected to client 2
- client 1 informs server S about the request
- server S informs client 2 to connect
- client 1 AND 2 connect to S (ACK received)
- S reads ip/port/flag/sequence through rawsocket from both clients
- S swaps IP's, ports, flags and seq# to simulate 1 talking to 2, and vice versa

both clients receive SYN+ACK from other client, and the first arriving is used, the "slow" one dropped (like with simultaneous tcp open's...)


REAL PROBLEM:

I thought routers AND nic's would allow a new IP (aka server redirection) if the sequence was correct in the NAT... duh... not... RST is returned from both clients...

How do we get to the solution?

Jur






 
What router/data/VPN?


Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...

Dain Bramaged
___________________________________________
 
No VPN, various types of routers (should open up full/restricted cones as well)...

(thx Bas)
 
The best thing is to run a wireshark trace, then you can see what is going on.

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...

Dain Bramaged
___________________________________________
 
Been there, did that, that's how I traced the RST coming back...
 
Sure you don't have a malware problem?
Try CCleaner or something else.
Also look at the services, it could be the server is busy. And then it could not handle multiple connections.

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...

Dain Bramaged
___________________________________________
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top