Problems with DNAT UDP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello List.

I have some strange problems. (i tested it with Centos 2.4 kernel and
Debian 2.6 kernel) with UDP traffic.

One of my rules :

0     0 DNAT       udp  --  eth3   *       0.0.0.0/0
0.0.0.0/0           udp dpt:6977 to:192.168.3.4:6977

port UDP 6977 on public interface DNATS to 192.168.3.4

(i must say that i have six openvpn-tunnels through this firewall with
no problems)

The udp packet never match the iptable rule, and with tcpdump running
on the firewall i see this :

fir1:~# tcpdump -i any -qn host 189.XX.XX.XX
tcpdump: WARNING: Promiscuous mode not supported on the "any" device
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
15:21:18.356144 IP 189.XX.XX.XX.6977 > 213.XX.XX.XX.6977: UDP, length 60
15:21:18.356206 IP 213.XX.XX.XX > 189.XX.XX.XX: ICMP 213.XX.XX.XX udp
port 6977 unreachable, length 96
15:21:22.114444 IP 189.XX.XX.XX.6977 > 213.XX.XX.XX.6977: UDP, length 108
15:21:22.114453 IP 213.XX.XX.XX > 189.XX.XX.XX: ICMP 213.XX.XX.XX udp
port 6977 unreachable, length 144
15:21:28.314972 IP 189.XX.XX.XX.6977 > 213.XX.XX.XX.6977: UDP, length 60
15:21:28.314982 IP 213.XX.XX.XX > 189.XX.XX.XX: ICMP 213.XX.XX.XX udp
port 6977 unreachable, length 96
15:21:32.117147 IP 189.XX.XX.XX.6977 > 213.XX.XX.XX.6977: UDP, length 108
15:21:32.117157 IP 213.XX.XX.XX > 189.XX.XX.XX: ICMP 213.XX.XX.XX udp
port 6977 unreachable, length 144


Well, if i switch openvpn conf to TCP-tunnel, i works great, but with
UPD the traffic never goes inside the Kernel, never match iptables
rules.

With tcpdump i see that our firewall sends back "icmp udp port 6977 unreachable"

But with netcat i can reach this udp port from the firewall to
192.168.3.4 and other six udp tunnels work great.

Anyone knows what is happening ?

Regards
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux