Page MenuHomeVyOS Platform

RIP outgoing update filter list no longer operational
Closed, ResolvedPublicBUG

Description

vyos 1.3-rolling-202008200357 RIP outgoing update filter list no longer operational

RIP outgoing update filter list worked perfectly using prior vyos version 1.2.0-rolling+201904260337

here is the configuration
policy {

prefix-list fromECVs {
    rule 10 {
        action permit
        prefix 192.168.0.0/24
    }
    rule 20 {
        action permit
        prefix 192.168.2.0/24
    }
    rule 30 {
        action permit
        prefix 192.168.3.0/24
    }
    rule 40 {
        action permit
        prefix 192.168.4.0/24
    }
    rule 50 {
        action permit
        prefix 192.168.5.0/24
    }
    rule 60 {
        action permit
        prefix 192.168.6.0/24
    }
    rule 70 {
        action permit
        prefix 192.168.7.0/24
    }
    rule 80 {
        action permit
        prefix 192.168.255.0/30
    }
    rule 90 {
        action permit
        prefix 192.168.255.4/30
    }
    rule 100 {
        action permit
        prefix 192.168.255.8/30
    }
    rule 110 {
        action permit
        prefix 192.168.255.12/30
    }
    rule 120 {
        action permit
        prefix 192.168.255.16/30
    }
    rule 130 {
        action permit
        prefix 192.168.255.20/30
    }
    rule 140 {
        action permit
        prefix 192.168.255.24/30
    }
    rule 150 {
        action permit
        prefix 192.168.255.28/30
    }
}

protocols {

rip {
    distribute-list {
        prefix-list {
            out fromECVs
        }
    }
    interface eth0
    redistribute {
        bgp {
        }
        connected {
        }
    }

here's the cli debug from vyos 1.3, note 'Outgoing update filter list for all interface is not set'

vyos@VYOS-01:~$ show ip rip status
Routing Protocol is "rip"

Sending updates every 30 seconds with +/-50%, next due in 11 seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interface is not set
Incoming update filter list for all interface is not set
Default redistribution metric is 1
Redistributing: connected bgp
Default version control: send version 2, receive any version
  Interface        Send  Recv   Key-chain
  eth0             2     1 2
Routing for Networks:
  eth0
Routing Information Sources:
  Gateway          BadPackets BadRoutes  Distance Last Update
  10.0.0.138               0         0       120   00:00:03
Distance: (default is 120)

vyos@VYOS-01:~$

i've also confirmed vyos is erroneously leaking out all bgp and connected routes via RIPv2 running on eth0 interface, messing up my network L3 topology.

I upgraded to vyos 1.3 for multicast support, which works great, but RIP prefix filtering broke in vyos 1.3...

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling-202008200357
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change
Issue type
Bug (incorrect behavior)

Event Timeline

PR https://github.com/vyos/vyos-1x/pull/534

config

set policy prefix-list fromECVs rule 10 action 'permit'
set policy prefix-list fromECVs rule 10 prefix '100.64.0.0/24'

set protocols rip distribute-list prefix-list out 'fromECVs'
set protocols rip interface 'eth0'
set protocols rip redistribute connected
commit

Show status

vyos@r1-roll# run show ip rip status 
Routing Protocol is "rip"
  Sending updates every 30 seconds with +/-50%, next due in 26 seconds
  Timeout after 180 seconds, garbage collect after 120 seconds
  Outgoing update filter list for all interface is (prefix-list) fromECVs
  Incoming update filter list for all interface is not set
  Default redistribution metric is 1
Viacheslav changed the task status from Open to Needs testing.Sep 1 2020, 3:37 PM

@Hazza06 Can you check the latest rolling release?

@Viacheslav @Hazza06

If you guys want, I can also try to test it out too...

@Viacheslav yes latest rolling release is working with your patch, thank you so much Sir.

vyos@VYOS-01:~$ show ip rip status
Routing Protocol is "rip"

Sending updates every 30 seconds with +/-50%, next due in 4 seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interface is (prefix-list) fromECVs
Incoming update filter list for all interface is not set
Default redistribution metric is 1
Redistributing: connected bgp
Default version control: send version 2, receive any version
  Interface        Send  Recv   Key-chain
  eth0             2     1 2
Routing for Networks:
  eth0
Routing Information Sources:
  Gateway          BadPackets BadRoutes  Distance Last Update
  10.0.0.138               0         0       120   00:00:03
Distance: (default is 120)

vyos@VYOS-01:~$

erkin renamed this task from vyos 1.3-rolling-202008200357 RIP outgoing update filter list no longer operational to RIP outgoing update filter list no longer operational.Aug 29 2021, 1:17 PM
erkin set Issue type to Bug (incorrect behavior).
erkin removed a subscriber: Active contributors.