add example crontab

This commit is contained in:
Emilien Devos 2023-10-15 11:16:15 +02:00
parent 9f61e215a7
commit c9fd40ded3

View File

@ -16,6 +16,12 @@ Full detailed documentation: https://docs.invidious.io/ipv6-rotator/
3. Run once the script using `sudo python smart-ipv6-rotator.py run --ipv6range=YOURIPV6SUBNET/64`
4. If everything went well then configure a cron to periodically rotate your IPv6 range.
Twice a day (noon and midnight) is enough for YouTube servers. Also at the reboot of the server!
Example crontab (`crontab -e -u root`):
```
@reboot sleep 30s && python smart-ipv6-rotator.py run --ipv6range=YOURIPV6SUBNET/64
0 */12 * * * python smart-ipv6-rotator.py run --ipv6range=YOURIPV6SUBNET/64
```
The `sleep` command is used in case your network takes too much time time to be ready.
# How to clean the configuration done by the script
```