Subject: Re: Question about source routing
To: =?ISO-8859-1?Q?=3F=3F=3F?= <firstname.lastname@example.org>
From: Steven M. Bellovin <email@example.com>
Date: 10/24/2007 18:31:29
On Wed, 24 Oct 2007 22:12:18 +0900
"???" <firstname.lastname@example.org> wrote:
> Is there any possible way to do source routing(policy routing) in
> netBSD? As I know, there's no internal command in netBSD which one
> can set a path for a specific destination.
> Or can I do that by using routing protocol commands such as Zebra, or
> using netfilter-like programs which can set TCP option?
> Please, let me know any method related with source routing in netBSD.
> And one more question, if policy routing is not implemented in netBSD,
> then how does the netBSD process a packet which has a source routing
Source routing can, I believe, be set on a per-socket basis with
setsockopt. On received source-routed packets, the reply is (I'm
fairly certain) sent back along the same path, per the RFC.
--Steve Bellovin, http://www.cs.columbia.edu/~smb