On Wed, Aug 21, 2013 at 4:10 AM, YT9TP Pedja yt9tp@uzice.net wrote:
One correction. You are not using just Mikrotik, but Mikrotik + Linux machine that fills it in with settings.
Appropriate solution I was talking about is using Mikrotik alone. If I have to set up Linux machine just to fill in Mikrotik settings that is something basically wrong with that requirement from my point of view.
That is why I suggested that, as that Python script runs fine and produces fine results, it could be good idea to run it on ampr.org site to create script file that sets up IPIP interfaces and routing, so we can download that script using Mikrotik device and run it within Mikrotik device to set up all things properly without need to set up external Linux machine to do the job.
I asked few times if anyone is using Mikrotik and is willing to export IPIP interface and routing settings to sent it to me to examine and see how this can be used in general. Noone responded.
The script relies on reading your router's configuration to determine what needs to be updated. If someone provided a static script, every time you ran the script it would create 300+ IPIP interfaces, and there would be no mechanism for deleting orphaned interfaces and routes. One of the parameters to create the IPIP interface is your local IP, so simply exporting someone else's configuration isn't going to work either. It is critical that the script interacts with your router.
You could implement this in something other than Python if you want, like Mikrotik's native scripting language. I'm not very familiar with Mikrotik's scripting language so I was not able to implement this myself. I chose Python because I knew I could get it working quickly and move on to something else.
I don't see occasional reliance on an external Linux server to be a problem. AMPR routes do not change very often. If the Linux server goes down for a few days the worst that is going to happen is you might have a few routes go stale. To improve reliability, you could run the Linux server on the same network as the Mikrotik router. You could even run the Python script from Openwrt in a MetaROUTER running on your primary Mikrotik router.
There are so many options here that simply asking someone else to do it for you is not appropriate. Go forth and experiment!
Tom KD7LXL