资 源 简 介
- Intro
These are two simple scripts... The first is used to start/stop/toggle a specific tunnel as a service (init script). The second one is a script called when the tunnel is established or disconnected (up/down script). The up/down script assumes that the TAP interface will get IP using DHCP and it can handle various network configuration issues.
- Up/Down script
This script is meaningful only if on your setup you have to do DHCP request for the TAP interface... DHCP by default may mess up your /etc/resolv.conf file and/or the routing table by installing a default route through the VPN. Thus the script gives you the following options:
Do nothing (default behaviour) This is going to take no action witch means that the result depends on your DHCP setup. If the DHCP server assigns default gateway you will end up with 2 default routes. Also in the case that it assigns DNS servers, you /etc/resolv.conf is going to be