Date: 14 Oct 1999 13:47:20 -0000 From: Sergey <serge69@nym.alias.net> To: "Antuan Avdioukhine" <antuan@eltex.ru>, <freebsd-hackers@FreeBSD.ORG> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: policy routing and freebsd Message-ID: <19991014134720.2433.qmail@nym.alias.net> References: <XFMail.991014162429.antuan@eltex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991014134720.2433.qmail>