Skip to content

dagolub/mikrotik-routes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configuration

copy config.yml.example to config.yml and change router_* variables

comment_for_routing: "office-vpn"
network_hash_file: "/tmp/networks_hash"
router_ip: '192.168.88.1'
router_user: 'admin'
router_password: '****'
gateway: "office"
hosts:
  - google.com:
    - account #this will be subdomains account.google.com
  - habr.com:

gateway - this you vpn connection or you can use any ip that can route you to destination hosts

Install requirements

pip3 install -r requirements.txt

Needed PyYAML 5.1 and later.

Running

You can simply put this script to cron if yours ips dynamic

python3 mikrotik.py

About

Automatic adding routes for VPN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages