Subject: Re: Question about source routing
To: =?ISO-8859-1?Q?=3F=3F=3F?= <>
From: Steven M. Bellovin <>
List: tech-net
Date: 10/24/2007 18:31:29
On Wed, 24 Oct 2007 22:12:18 +0900
"???" <> wrote:

> Hello
> 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
> option?
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,