filter networks that originated in AS 300
ip as-path access-list 1 deny _300$
ip as-path access-list 1 permit .*
!
router bgp 100
neighbor 10.1.12.2 filter-list 1 in
filter networks that traveresed through AS 300
ip as-path access-list 1 deny _300_
ip as-path access-list 1 permit .*
!
router bgp 100
neighbor 10.1.12.2 filter-list 1 in
filter networks that originated in AS 300
ip as-path access-list 1 deny ^$
ip as-path access-list 1 permit .*
neighbor 10.1.23.2 filter-list 1 out
filter networks from neigboring AS 200
ip as-path access-list 1 deny _200_300$
ip as-path access-list 1 permit .*
!
ip as-path access-list 1 deny ^200$
ip as-path access-list 1 per .*
filter all prefixes from my directly connected neighbors
ip as-path acc 1 deny ^[0-9]+$
ip as-path acc 1 per .*
filter all prefixes that originated in AS 300 and traversed through AS 200
ip as-path access-list 1 deny _200_300$
ip as-path access-list 1 permit .*