Re: Set SRC PREF for routes when injecting routes to kernel

2018-01-15 Thread Ondrej Zajicek
On Mon, Jan 15, 2018 at 03:00:52PM +0100, Olda Plchot wrote: > Hi everybody, > I am wondering what is the state of krt_prefsrc or something similar that > would work in FreeBSD? I was experimenting with this some time ago and I > ended up having to do NAT on the inner address for the router to re

Re: Set SRC PREF for routes when injecting routes to kernel

2018-01-15 Thread Olda Plchot
Hi everybody, I am wondering what is the state of krt_prefsrc or something similar that would work in FreeBSD? I was experimenting with this some time ago and I ended up having to do NAT on the inner address for the router to reach internet through specific address as the prefix that is set on ou

Re: Set SRC PREF for routes when injecting routes to kernel

2018-01-15 Thread Michael Rack
Uppps, okay sorry, that is a attribute on a per route / prefix basis as i want to. protocol bgp ibgp4_bgp02 { > description "Internal BGP to BGP02"; > local 10.0.0.1 as 65501; > neighbor 10.0.0.2 as 65502; > ipv4 { > export all; > imp

Re: Set SRC PREF for routes when injecting routes to kernel

2018-01-15 Thread Michael Rack
Perfect, that will do what i want. Thank you. But will it not be better to have that setting on an in-filter per route basis? On MIKROTIK BGP / OSPF you do that on a per route basis, so you can do some fancy things like "if routes learned from peer 1 set src to x.x.x.x, if learned from peer 2 set

Re: Set SRC PREF for routes when injecting routes to kernel

2018-01-15 Thread Alexander Zubkov
Hi, You can set krt_prefsrc when exporting to kernel in Linux. On Mon, Jan 15, 2018 at 8:49 AM, Michael Rack wrote: > Hi all! > > Is it possible to set the SRC-Attribute on routes that will be inserted to > kernel? > > I have private /31 networks to connect to other routers in my network and >

Re: Set SRC PREF for routes when injecting routes to kernel

2018-01-15 Thread Tim Weippert
Hi Michael, On Mon, Jan 15, 2018 at 08:49:24AM +0100, Michael Rack wrote: > Hi all! > > Is it possible to set the SRC-Attribute on routes that will be inserted to > kernel? Yes, you can set krt_prefsrc = 78.22.46.2 for the prefixes you want. [ ... ] HTH, tim -- Tim Weippert http://weiti.o

Set SRC PREF for routes when injecting routes to kernel

2018-01-14 Thread Michael Rack
Hi all! Is it possible to set the SRC-Attribute on routes that will be inserted to kernel? I have private /31 networks to connect to other routers in my network and i don't want to see these private ip-addesses on a traceroute from a network with public ips. Every Router have a public IP-Address