Networking Forums

Networking Forums > Computer Networking > Linux Networking > stateful rules and UDP

Reply
Thread Tools Display Modes

stateful rules and UDP

 
 
jeanlutrin@yahoo.fr
Guest
Posts: n/a

 
      09-18-2005, 07:01 PM
Hi,

how comes some stateful firewall (eg iptables) and some NAT's
allows to keep track of "fake sessions" for UDP traffic.

For example, I've got:

- NAT at 10.0.0.1
- client A at 10.0.0.2
- client B at 10.0.0.3

Both client A and B contact a single server, on the same port,
by UDP.

Now when the server answers, how comes the NAT can dispatch to
either A or B ?

What would happen if the client side Socket for A was, say
10.0.0.2:33231
and the client side Socket for B was, say 10.0.0.3:33231 and they
where both to communicate with a single UDP server (on the same port) ?

Thanks in advance for any explanation,

Jean

 
Reply With Quote
 
 
 
 
Allen Kistler
Guest
Posts: n/a

 
      09-19-2005, 05:49 AM
(E-Mail Removed) wrote:
> Hi,
>
> how comes some stateful firewall (eg iptables) and some NAT's
> allows to keep track of "fake sessions" for UDP traffic.
>
> For example, I've got:
>
> - NAT at 10.0.0.1
> - client A at 10.0.0.2
> - client B at 10.0.0.3
>
> Both client A and B contact a single server, on the same port,
> by UDP.
>
> Now when the server answers, how comes the NAT can dispatch to
> either A or B ?
>
> What would happen if the client side Socket for A was, say
> 10.0.0.2:33231
> and the client side Socket for B was, say 10.0.0.3:33231 and they
> where both to communicate with a single UDP server (on the same port) ?


TCP and UDP state is tracked fully by all info on both endpoints of a
connection:
Source IP, Source port, Destination IP, Desitination port
As long as each combination is unique, the state is unique.
 
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
Stateful firewalls and dynamic routing question. abstractclass Linux Networking 11 10-23-2006 06:17 PM
Stateful firewalls and dynamic routing abstractclass Network Routers 0 10-15-2006 02:45 AM
stateful firewall with sync support Aleksei Dzhulai Linux Networking 3 10-13-2006 03:42 PM
stateful filtering of ipv6 Christoph Scheurer Linux Networking 1 07-09-2006 09:51 PM
packet filtering and stateful inspection? somez72 Linux Networking 1 02-25-2004 08:25 AM



1 2 3 4 5 6 7 8 9 10 11