Networking Forums

Networking Forums > Computer Networking > Linux Networking > UDP session tracking problem

Reply
Thread Tools Display Modes

UDP session tracking problem

 
 
xuma100@mixmail.com
Guest
Posts: n/a

 
      06-09-2005, 10:44 AM
here is the problem: I run a remote DNS server that is supposed to
resolve names only for authorized clients.

The clients are behind a router/firewall and the DNS server is on the
internet. Therefore, the server cannot see the MAC-addresses of the
clientes neither it can see their local IP's, as they all appear to the
server under the IP of the router.

So I am left only with the analysis of the client's UDP packets
arriving at the server. Once a client is authorized, the server stores
the UDP parameters REMOTE_PORT and ID of the client's UDP request. On
the next request, the client uses the former ID incremented by 1, and
the port either remains the same or is incremented by 1 as well. This
way I can tell an authorized client from one that is not by the
similarity to a previous suthorized UDP packet.

The problem is not all clinents behave predictably like the one
described (a laptop running Win ME) others appear to use random port/id
values for each UDP request.

Any ideas on where I can look for further correlations between
succesive requests? maybe the IP headers of the packet?

Thanks to all.

 
Reply With Quote
 
 
 
 
Alexander Clouter
Guest
Posts: n/a

 
      06-10-2005, 08:17 PM
On 2005-06-09, (E-Mail Removed) <(E-Mail Removed)> wrote:
> here is the problem: I run a remote DNS server that is supposed to
> resolve names only for authorized clients.
>
> The clients are behind a router/firewall and the DNS server is on the
> internet. Therefore, the server cannot see the MAC-addresses of the
> clientes neither it can see their local IP's, as they all appear to the
> server under the IP of the router.
>

You need to start thinking that the DNS server is not part of the network and
treat it as a locally controlled resource on the router/firewall thats doing
your NAT for you.

> [snipped]
>
> Any ideas on where I can look for further correlations between
> succesive requests? maybe the IP headers of the packet?
>

Do the 'authorisation' on the router/firewall and not on the DNS server.
There is nothing to authenicate with in a UDP packet unless you want to
restrict particular lookups.

You could really just install a caching nameserver on the firewall/router is
possible and then relay the requests to the one on the Internet. If its a
linux box I think you can get away with an iptables REDIRECT for the UDP
packet.

Cheers

Alex

> Thanks to all.
>

 
Reply With Quote
 
xuma100@mixmail.com
Guest
Posts: n/a

 
      06-12-2005, 02:54 AM


Alexander Clouter wrote:
> >

> Do the 'authorisation' on the router/firewall and not on the DNS server.


of course, but what I am trying to do is find a solution that does not
involve any software intalled in the router, besides the one installed
from the factory

> You could really just install a caching nameserver on the firewall/router is
> possible and then relay the requests to the one on the Internet. If its a
> linux box I think you can get away with an iptables REDIRECT for the UDP
> packet.


this is exactly what I'm trying to avoid, my intention is to find a
fingerprint in the UDP or IP packets, or in their sequences, sent by
the clients. I'm afraid it's impossible if the packet IDs and ports are
more or less random.

Another solution could be to configure the router to forward each
client's DNS requests to a different port on my remote DNS server, but
I wonder if many routers allow this, mine aparently doesn't (Sweex
Wireless Broadband Router 11G (LC000070))

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with SCPS & connection tracking Washington Ratso Linux Networking 4 02-11-2011 08:14 PM
Problem with multicast session and port. gNash Linux Networking 2 08-10-2008 08:27 AM
Session problem mabobine Windows Networking 1 10-22-2007 04:36 PM
nfs problem with php session directory jmdaviault@infogt2000.com Linux Networking 0 10-10-2006 07:53 PM
Home-Made TCP Session Cutter problem Florent Carli Linux Networking 0 11-19-2003 07:52 PM



1 2 3 4 5 6 7 8 9 10 11