Total Pageviews

Thursday 26 July 2018

Anyconnect client作为虚拟路由器使用。


Features

  • Anyconnect client as a router.
  • Customize routing table the way you like(chnroutes applied by default)

Prerequisites

  • Vagrant
  • VirtualBox

Usage

  1. Check bridge in Vagrantfile, modify if necessary.
  2. Start the virtual router via vagrant up .
  3. vagrant ssh into the router.
  4. Connect: anyconnect connect your.anyconnect-server.com username password (Modify parameters accordingly).
  5. ifconfig eth1 Use the IP address of eth1 as your Gateway (you can also use the IP as your DNS server).
  6. Disconnect: anyconnect disconnect (Remember to run this even when the tunnel is broken by accident).

TODO

  • sync provisioning/etc/cn/apnic_cn_routes.tsv with chnroutes
  • sync provisioning/etc/dnsmasq.d/*.conf with dnsmasq-china-list
  • Web pages for admin
from  https://github.com/mckelvin/anyconnect-virtual-router

相关帖子:https://briteming.blogspot.com/2018/03/vrouter.html

No comments:

Post a Comment