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

> Hello
>=20
> 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.
>=20
> 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?
>=20
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