What we have: A virtual machine with Quagga, which is also a tor gateway with IP 192.168.1.253 , Mikrotik R951G-2HnD with IP 192.168.1.1 .
The VM is configured so that all TCP traffic (except ports 22 and 179 ) is redirected to port 9040 , to the TOR, which operates in the Transparent Proxy mode.
Thus, on Mikrotik, you can manually create a route for any IP address, and traffic will go to TOR. (here's an example for rutracker.org with an IP address of 195.82.146.214 .
There is also a great API, at the output of which we have a huge sheet of IP addresses, the list is updated every day: https://api.antizapret.info/group.php
Attention, question (more precisely, two):
1) how to set up Quagga to parse the list once a day (probably by Python script or something else) and announce all IP addresses from the list to 192.168.1.253 via BGP in order to transfer these routes to Mikrotik ?
2) If it is impossible to answer question # 1, how can you transfer Quagga routes from Python so that it announces them to Mikrotik?
