[Kea-users] dynamic router options in reply

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] dynamic router options in reply

Anatoliy Kushner
Hi , if we have network with multiply gw(relay) is it possible for kea return router (option 3) field based on giaddr ? 

should be something like this
"option-data":[
        {
          "name": "routers",
          "data": relay.ip-address
        },
]

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] dynamic router options in reply

Tomek Mrugalski-2
You can use flex-option for that. See
https://kea.readthedocs.io/en/kea-1.7.9/arm/hooks.html#flex-option-flexible-option-for-option-value-settings

The expression you are looking for should be very simple: "pkt4.giaddr"
if you want to use the giaddr field or "pkt.src" if you want to use
source IP address of the packet.

Tomek

On 17/07/2020 08:08, Anatoliy Kushner wrote:

> Hi , if we have network with multiply gw(relay) is it possible for kea
> return router (option 3) field based on giaddr ? 
>
> should be something like this
>
> "option-data":[
>         {
>           "name": "routers",
>           "data": relay.ip-address
>         },
> ]
_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] dynamic router options in reply

Anatoliy Kushner
Hi Tomek, thank you



\ AK

> On 17 Jul 2020, at 15:46, Tomek Mrugalski <[hidden email]> wrote:
>
> You can use flex-option for that. See
> https://kea.readthedocs.io/en/kea-1.7.9/arm/hooks.html#flex-option-flexible-option-for-option-value-settings
>
> The expression you are looking for should be very simple: "pkt4.giaddr"
> if you want to use the giaddr field or "pkt.src" if you want to use
> source IP address of the packet.
>
> Tomek
>
>> On 17/07/2020 08:08, Anatoliy Kushner wrote:
>> Hi , if we have network with multiply gw(relay) is it possible for kea
>> return router (option 3) field based on giaddr ?
>>
>> should be something like this
>>
>> "option-data":[
>>         {
>>           "name": "routers",
>>           "data": relay.ip-address
>>         },
>> ]
> _______________________________________________
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> [hidden email]
> https://lists.isc.org/mailman/listinfo/kea-users
_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users