Linux Netfilter discussions
 help / color / mirror / Atom feed
* where are my udp packets going?
@ 2008-11-15 21:04 sean darcy
  2008-11-15 23:54 ` sean darcy
  0 siblings, 1 reply; 6+ messages in thread
From: sean darcy @ 2008-11-15 21:04 UTC (permalink / raw)
  To: netfilter

I'm trying to setup port forwarding for a VOIP server that uses IAX 
packets, port 4569:

+ /sbin/iptables -t nat -A PREROUTING -i eth0 -p udp --dport 4569 -j 
DNAT --to 10.10.10.180:4569
+ /sbin/iptables -A FORWARD -p udp -m state --state NEW -d 10.10.10.180 
--dport 4569 -j ACCEPT

but the packets aren't showing up at 10.10.10.180.

I put in a bunch of log statements:

$IPT -t raw -A PREROUTING -i $EXTIF -p udp --dport 4569 -j LOG 
--log-prefix "iax packet RAW:   "
$IPT -t nat -A PREROUTING -i $EXTIF -p udp --dport 4569 -j DNAT --to 
10.10.10.180:4569
$IPT -t nat -A PREROUTING -i $EXTIF -p udp --dport 4569 -j LOG 
--log-prefix "iax packet PRE NAT:   "
$IPT -A FORWARD -p udp -m state --state NEW -d 10.10.10.180 --dport 4569 
-j ACCEPT
$IPT -A FORWARD -p udp  --dport 4569 -d 10.10.10.180    -j LOG 
--log-prefix "iax packet FORWARD:  "
$IPT -t nat -A POSTROUTING  -p udp --dport 4569         -j LOG 
--log-prefix "iax packet POST:   "

So, I would expect each iax packet to show up sequentially as:
iax packet RAW:
iax packet PRE NAT:
iax packet FORWARD:
iax packet POST:

But no:

I get lots of "iax packet RAW:   " , and an "iax packet FORWARD:  " 
every 2 -  10 "iax packet RAW:  " messages. That's it. no postrouting, 
no prerouting nat.

And the voip server sees no iax packets.

Where are they going?

sean



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-11-17 16:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-15 21:04 where are my udp packets going? sean darcy
2008-11-15 23:54 ` sean darcy
2008-11-16 16:01   ` Pascal Hambourg
2008-11-16 21:31     ` sean darcy
2008-11-17 10:28       ` Pascal Hambourg
2008-11-17 16:49         ` sean darcy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox