netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* netfilter: xt_socket: add XT_SOCKET_NOWILDCARD flag causes behavioural change in userspace?
@ 2013-10-22 13:33 Pekka Pietikäinen
  2013-10-24  8:28 ` Jari Turkia
  2013-10-24  9:52 ` Pablo Neira Ayuso
  0 siblings, 2 replies; 9+ messages in thread
From: Pekka Pietikäinen @ 2013-10-22 13:33 UTC (permalink / raw)
  To: edumazet, netfilter-devel

After a kernel update to 3.11 (feat. commit 
681f130f39e10087475383e6771b9366e26bab0c) my "generate fake tcp 
connections from random ip addresses" app broke, test case as simple as 
running (on default gw of victim):

s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.setsockopt(socket.SOL_IP, socket.IP_TRANSPARENT, 1)

s.bind(("5.5.5.5",6666))
s.connect(("192.168.122.46",22))

---

ip route flush table 100
ip rule add fwmark 1 lookup 100
ip route add local 0.0.0.0/0 dev lo table 100

---

*mangle
-N DIVERT
-A DIVERT -j MARK --set-mark 1
-A DIVERT -j ACCEPT
-A PREROUTING -p tcp -m socket -j DIVERT

and the 3-way handshake never finishes. Without -m socket (or with the 
new --nowildcard) it does.

Bug, feature or end-user cluelessness? (no problem fixing my ruleset, 
but it's still a behaviourial change :P )


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

end of thread, other threads:[~2013-10-24 19:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-22 13:33 netfilter: xt_socket: add XT_SOCKET_NOWILDCARD flag causes behavioural change in userspace? Pekka Pietikäinen
2013-10-24  8:28 ` Jari Turkia
2013-10-24  9:52 ` Pablo Neira Ayuso
2013-10-24 10:15   ` Eric Dumazet
2013-10-24 11:21     ` Pekka Pietikäinen
2013-10-24 12:05       ` Eric Dumazet
2013-10-24 12:27         ` Pekka Pietikäinen
2013-10-24 12:51           ` Florian Westphal
     [not found]             ` <52691D4F.4080903@ee.oulu.fi>
     [not found]               ` <20131024132936.GC993@breakpoint.cc>
     [not found]                 ` <52695011.2060902@ee.oulu.fi>
2013-10-24 19:14                   ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).