Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables only NATing the first udp packet in a "connection"

Reply
Thread Tools Display Modes

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

 
 
shaharklein@gmail.com
Guest
Posts: n/a

 
      10-02-2007, 05:12 PM
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

 
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
Local forwarding with "iptables" gives "invalid arguments" newsfuzzy@geekmail.de Linux Networking 0 07-19-2006 02:47 PM
Re: SPEWS SLIMES "WindsorFox", "Kevin-!:?)", "Spin Dryer" get the cold shoulder at broadband ng! SneakyP Broadband 0 11-29-2005 10:46 PM
Attention Plus.net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM broadband newsgroup !:?) Broadband 0 11-28-2005 04:28 AM
Attention Plus.Net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM braodband newsgroup !:?) Broadband 0 11-28-2005 03:03 AM
"iptables mark with filter fw" vs "u32 match" =?ISO-8859-2?Q?Pawe=B3?= Staszewski Linux Networking 3 03-05-2005 09:23 PM



1 2 3 4 5 6 7 8 9 10 11