* Re: Problem Matching Packets
2005-04-05 22:11 Problem Matching Packets Sebastian Docktor
@ 2005-04-05 21:10 ` Jason Opperisano
[not found] ` <20050405223129.GC31371@gw.home.tux-labor.de>
0 siblings, 1 reply; 3+ messages in thread
From: Jason Opperisano @ 2005-04-05 21:10 UTC (permalink / raw)
To: netfilter
On Wed, Apr 06, 2005 at 12:11:46AM +0200, Sebastian Docktor wrote:
> I've Problems to match a 255.255.255.255 Packet on the nat Chain.
> If i use the mangle Chain I see the Packet but on the nat Chain
> it look like the nat Chain does not receive the Packet.
you're trying to DNAT an all-ones broadcast packet--good luck.
-j
--
"Guy in chicken costume: The world is gonna end at midnight tonight. Y2K.
Peter: Y2K? What are you selling, chicken or sex jelly?"
--Family Guy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem Matching Packets
[not found] ` <20050405223129.GC31371@gw.home.tux-labor.de>
@ 2005-04-05 21:33 ` Jason Opperisano
0 siblings, 0 replies; 3+ messages in thread
From: Jason Opperisano @ 2005-04-05 21:33 UTC (permalink / raw)
To: Sebastian Docktor; +Cc: netfilter
On Wed, Apr 06, 2005 at 12:31:29AM +0200, Sebastian Docktor wrote:
> Yes I am doing this, is this a Problem, i want to redirect all these
> Packet to a speciall Machine.
yeah--it's a problem. the "correct" way to do this (if there even is
one) is to write some sort of proxy to catch the broadcasts and resend
the data to the "special machine." much of this depends on what the
application in question is actually doing.
another possible option would be to setup a GRE tunnel to get the native
broadcasts to reach the "special machine" without proxying.
-j
--
"Meg: Brian, you look like you lost weight! What is your secret?
Brian: Here's my secret. PUT DOWN THE FORK!"
--Family Guy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Problem Matching Packets
@ 2005-04-05 22:11 Sebastian Docktor
2005-04-05 21:10 ` Jason Opperisano
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Docktor @ 2005-04-05 22:11 UTC (permalink / raw)
To: netfilter
Hi,
I've Problems to match a 255.255.255.255 Packet on the nat Chain.
If i use the mangle Chain I see the Packet but on the nat Chain
it look like the nat Chain does not receive the Packet.
gotia:~# tcpdump -i eth0 udp and dst 255.255.255.255 and port 6111
tcpdump: verbose output suppressed, use -v or -vv for full protocol
decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
22:47:52.797757 IP 192.168.0.26.6111 > 255.255.255.255.6111: UDP,
length: 20
22:47:53.799741 IP 192.168.0.26.6111 > 255.255.255.255.6111: UDP,
length: 20
22:47:54.800352 IP 192.168.0.26.6111 > 255.255.255.255.6111: UDP,
length: 20
3 packets captured
3 packets received by filter
0 packets dropped by kernel
gotia:~# iptables -t nat -L -n -v
Chain PREROUTING (policy ACCEPT 281 packets, 13556 bytes)
pkts bytes target prot opt in out source
destination
0 0 DNAT udp -- eth0 * 0.0.0.0/0
255.255.255.255 udp spt:6111 dpt:6111 to:192.168.0.25:6111
Chain POSTROUTING (policy ACCEPT 1 packets, 90 bytes)
pkts bytes target prot opt in out source
destination
284 13816 MASQUERADE all -- * eth1 0.0.0.0/0
0.0.0.0/0
Chain OUTPUT (policy ACCEPT 8 packets, 616 bytes)
pkts bytes target prot opt in out source
destination
gotia:~#
I'm using iptables 1.2.11-10
and Kernel 2.6.10-1-k7
Is this a Bug or am I simply to stupid to create a Rule?
with regards
--
Sebastian Docktor <sebi@tux-labor.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-05 22:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-05 22:11 Problem Matching Packets Sebastian Docktor
2005-04-05 21:10 ` Jason Opperisano
[not found] ` <20050405223129.GC31371@gw.home.tux-labor.de>
2005-04-05 21:33 ` Jason Opperisano
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.