Re: Direct connections through NAT/firewall

From: Peter (pzeltins_at_bigfoot.com)
Date: 07/24/03


Date: Thu, 24 Jul 2003 12:03:45 +0300


> > Wonder how you do it? Smth like sending UDP on pre-agreed port (same on
both
> > sides)?
> I thought of this awhile back. If I send a packet to your router, (as
though
> initiating a connection router, and you send a response to my source port
> (spoofing it as though it was a reply to my SYN/!ACK packet) then the
> NAT box should be tricked into routing your response back to me (even
> though you never got my initial packet.

This could work for TCP provided you get low-level access to TCP stack...
have never done this under Linux, but methinks Winsock wouldn't let you just
send TCP packet with SYN bit set, without ever getting initial incoming TCP
session request.

However this should work for UDP without need for low-level stack access
since UDP is stateless.

Still one needs to pre-agree on time & port, so "handshake server" on public
IP seems like a neccessity...

Peter



Relevant Pages

  • Re[2]: Why TCP is more secure than UDP?
    ... The point that you use TCP ur UDP doesnt really matter, ... Suppose this service just echoes back any packet I send it. ... BD> Suppose my tricky friend "Moe" is across the internet at 10.0.0.1 (Oh ...
    (Security-Basics)
  • Re: recvfrom() strange operation
    ... I have only one escape way for this kind of UDP operation. ... TCP receive you always send data to upper level in sequence, ... In case of UDP you do not know the packet ...
    (comp.os.linux.development.system)
  • Re: TCP Blocking sockets
    ... the tcp buffers don't fill up etc due to slow link speeds. ... With TCP/IP the receiving system will wait for the packet to ... >arrives, ... UDP doesn't ensure you data delivery, ...
    (alt.comp.lang.borland-delphi)
  • Re: HTTP over both TCP and UDP
    ... but we're not talking about using UDP. ... with TCP packets. ... routers, and the server. ... you put a sequence number in the UDP packet. ...
    (comp.os.linux.networking)
  • alt.2600 FAQ Revision .014 (2/4)
    ... One type of firewall is the packet filtering firewall. ... Dropping packets instead of rejecting them greatly increases the time required to scan your network. ... Port scanning UDP ports is much slower than port scanning TCP ports. ... Chartreuse Use the electricity from your phone line Cheese Connect two phones to create a diverter Chrome Manipulate Traffic Signals by Remote Control ...
    (alt.2600)

Quantcast