From owner-freebsd-hackers Thu Oct 14 6:47:28 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from anon.lcs.mit.edu (anon.lcs.mit.edu [18.26.0.254]) by hub.freebsd.org (Postfix) with SMTP id 188F914F07 for ; Thu, 14 Oct 1999 06:47:22 -0700 (PDT) (envelope-from serge69@nym.alias.net) Date: 14 Oct 1999 13:47:20 -0000 Message-ID: <19991014134720.2433.qmail@nym.alias.net> From: Sergey Subject: Re: policy routing and freebsd To: "Antuan Avdioukhine" , Cc: References: MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > People, does anybody made policy routing under freebsd? > I have to substitute different aliased IP's source address when packet departs > from the same interface but with another destinations rather then default. It's relative simple if your source addresses are on the different IP networks. But you should set aliased address on your router too. In other case, I guess that two natd daemons and firewall controled diverting would help you. > There is similar feature in linux (each alias address related with an kind of > "subinterface" which makes possible point to it in routing tables). > You can do similar thing here too. I presume that router has 2 IP: 192.168.1.1 and 172.17.1.1. # ifconfig ed0 inet 172.16.1.2 # ifconfig ed0 alias 192.168.1.2 # route add my.specific.destination 192.168.1.1 With best regards, Sergey. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message