![]() This is because by default every destination is resolved in "main" routing table. Now when we try to send packets from the client for example to address 10.10.10.4, mangle rule will not match anything. Gateway-status=10.1.101.1 reachable ether1 distance=20 scope=255īgp-as-path="3001,3001,3010,3002,3000" bgp-origin=incompleteĢ ADb dst-address=10.10.10.4/32 gateway=10.1.101.1īgp-communities=3000:120,3000:200 received-from=ISPįollowing mangle rule will match all packets that destination is resolved in "local" routing table.Īdd action=log chain=forward routing-table=local #at first we have to specify input filter chainĪdd action=passthrough chain=bbgp set-routing-mark=localĪs you can see now routes are added to "local" routing /ip route> print detail where routing-mark="local"ġ ADb dst-address=10.10.1.0/24 gateway=10.1.101.1 Next step is to add all received BGP rotues to another routing table, to do that we set up routing filters R2 is client's main gateway and clients local network is 192.168.1.0/24Īfter setting up bgp peering (which is not covered in this article) we get following BGP /ip route> print where bgpįlags: X - disabled, A - active, D - dynamic,Ĭ - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,ī - blackhole, U - unreachable, P - prohibit ![]() Note: It is not possible to match source address against routing table. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |