Networking Forums

Networking Forums > Computer Networking > Linux Networking > netfilter: Redirecting incoming udp packets to other port

Reply
Thread Tools Display Modes

netfilter: Redirecting incoming udp packets to other port

 
 
muruga
Guest
Posts: n/a

 
      12-11-2006, 04:56 AM
Hi,
I want to redirect incoming udp packets comming to router to only
go out from a praticular port. will it be possible by using iptables
command. will the command change skbuff contents and tuple. Do reply
packets will be the routed properly.

scenario

client ------------> router -------------------->server
<----------- <--------------------


if receive a orignal udp packet from client from client port x to
router port y, can i use the same port y to forward to server (y acting
as source port) and then receive the reply packet to port y as
destination and successfully forward to client port x.

will the cmd like will work
iptables -A POSTROUTING -t nat -p udp --dport y --sport y -j MASQUERADE

can any one give idea

thanks in advance
murugan

 
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
IPv6 netfilter state matching: Invalid packets Lukas Barth Linux Networking 1 12-31-2008 03:53 PM
redirecting packets david.toneian@gmail.com Linux Networking 5 12-17-2006 02:03 PM
static arp entry and incoming packets Markus Heinz Linux Networking 0 07-28-2004 07:25 PM
Incoming packets Doug Laidlaw Linux Networking 3 12-13-2003 01:59 AM
iptables: redirecting packets inside a firewall pete@mynix.org Linux Networking 3 09-04-2003 08:06 AM



1 2 3 4 5 6 7 8 9 10 11