Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

iptables only NATing the first udp packet in a "connection"

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2007, 06:12 PM
Default iptables only NATing the first udp packet in a "connection"



Hi

boxes A and B are negtiating a very simple udp conversation:

A says "Hi" to B
B says "Hello" to A
and A replies with a message say "MMM"

this works fine
but now I want to "hide" box A

so I use box C

A says "Hi to B but B sees "Hi" from C
B says "Hello" to C which redirects the packet to A
A says "MMM" to B but B sees it from A

one rule on A:
iptables -t nat -A POSTROUTING -p udp --sport 5555 -j SNAT --to
"address_of_C"

and one rule on C:
iptables -t nat -A PREROUTING -p udp --destination C --dport 5555 -j
DNAT --to A


sniffing on B
I see
C --> B
B --> C
A --> B //arrrrrrr

on box A I see only one packet is matched


Thanks a head for any help



shaharklein@gmail.com
Reply With Quote
Reply

Tags
connection, iptables, nating, packet, udp

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
Forum Jump


All times are GMT. The time now is 01:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.