Linked by Thom Holwerda on Tue 26th Jul 2005 17:40 UTC, submitted by Anonymous
Linux The first release of BSD divert sockets for Linux 2.6 kernels has been completed and may be downloaded here.
Order by: Score:
Intro please
by Anonymous on Tue 26th Jul 2005 18:11 UTC
Anonymous
Member since:
---

Please at least give once sentance description of what a BSD divert socket is.

Reply Score: 0

RE: Intro please
by Anonymous on Tue 26th Jul 2005 18:50 UTC in reply to "Intro please"
Anonymous Member since:
---

They let you enter a firewall rule that pushes packets into a program. The main use for this in Freebsd (that I've used) is natd, which provides NAT for private networks.

http://www.freebsd.org/cgi/man.cgi
divert(4) and natd(8)

Reply Score: 2

spckets? ;)
by Anonymous on Tue 26th Jul 2005 18:26 UTC
Anonymous
Member since:
---

need to fix that typo.

Reply Score: 0

Like linux's iptables
by IceCubed on Tue 26th Jul 2005 19:42 UTC
IceCubed
Member since:
2005-07-01

Is it like linux's iptables? what are the diferencies?

Reply Score: 1

RE: Like linux's iptables
by Anonymous on Tue 26th Jul 2005 20:20 UTC in reply to "Like linux's iptables"
Anonymous Member since:
---

It's like the Linux divert sockets, only they are adding the BSD ones so that things written for BSD kernels can be used on the Linux kernel.

Reply Score: 0

PF
by Anonymous on Tue 26th Jul 2005 20:20 UTC
Anonymous
Member since:
---

Can we now run PF as a firewall ?

Reply Score: 0

re: Intro please
by Anonymous on Wed 27th Jul 2005 01:28 UTC
Anonymous
Member since:
---

This has been modified from their documentation section off of SF.Net to one very broken sentence. I broke the sentence; however, you should get the idea of the bsd sockets under linux.

"you could intercept packets traveling up or down the IP stack of your host; literally stopping the packet from further propagating through the IP stack and then (possibly after some changes), reinjecting it back"

-------------------------------------------------------
The orginal paragraph is listed below:

"Ever wish you could intercept packets traveling up or down the IP stack of your host? And I'm not talking about listening in, like raw sockets or libpcap (tcpdump). I mean literally stop the packet from further propagating through the IP stack and then (possibly after some changes), reinjecting it back? Well, the time to dream is over, because divert sockets for Linux are here!"

Reply Score: 0

It works with Snort
by Anonymous on Wed 27th Jul 2005 02:01 UTC
Anonymous
Member since:
---

The sentence "possibly after some changes" is no longer applicable - it works great with Snort 2.3.3 and includes documentation on how to build it. No code changes, just need to make sure your include files are all set up. The only limitation with Snort at this point is you cannot yet block. It will in fact block the offending packet, but Snort segfaults on the command line. It will work properly soon though!

Reply Score: 0

BSD and Linux Divert sockets?
by Anonymous on Wed 27th Jul 2005 07:23 UTC
Anonymous
Member since:
---

As one of the authors of the BSD divert sockets some 10 years ago, (ok, 8 or 9 I think) this is quite a nice surprise. I'm a little surprised by one of the comments above however.. "It's like the Linux divert sockets, only they are adding the BSD ones..."

I haven't been following.. does linux have divert sockets? and how are they different?

Julian at Freebsd dot org

Reply Score: 1

RE: BSD and Linux Divert sockets?
by Anonymous on Wed 27th Jul 2005 07:41 UTC
Anonymous
Member since:
---

Linux doesn't have divert sockets, or didn't before this. Keep in mind this was implemented for 2.4 and has now been ported to 2.6. The source code is quite different but the functional API is similar enough that applications that will work with normal BSD divert sockets will work with the Linux implementation without any source code modifications.

There is a net divert, but honestly I am not sure what that does or what it is for. Definitely not compatible at all with the *bsd divert sockets. This implementation is similar to the *bsd in that it works off of a FW statement, iptables in this case, and is functionaly equivalent to the *bsd implementation as to be compatible with *bsd applications compiled on linux. For example:

-A FORWARD -p tcp -j DIVERT --div-port 1

Reply Score: 0

TUN/TAP?
by Anonymous on Wed 27th Jul 2005 23:48 UTC
Anonymous
Member since:
---

I'm probably not 'getting it', but isn't this what TUN/TAP does?

Reply Score: 0