chongyang90 / chnroutes

Automatically exported from code.google.com/p/chnroutes
0 stars 0 forks source link

手动添加的路由没被执行 #70

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
tunnelblick 在ovpn配置文件最后加入下面路由,根本 
不起作用,log里显示没被执行。

max-routes 1200

route 1.12.0.0 255.252.0.0 net_gateway 5
route 1.24.0.0 255.248.0.0 net_gateway 5
route 110.6.0.0 255.254.0.0 net_gateway 5
route 110.16.0.0 255.252.0.0 net_gateway 5

2012-11-29 15:57:31 *Tunnelblick: OS X 10.8.2; Tunnelblick 3.3beta21a (build 
3114.1)
2012-11-29 15:57:31 *Tunnelblick: Attempting connection with 
los-angeles_80_tcp_lily; Set nameserver = 1; monitoring connection
2012-11-29 15:57:31 *Tunnelblick: 
/Applications/Tunnelblick.app/Contents/Resources/openvpnstart start 
los-angeles_80_tcp_lily.ovpn 1337 1 0 0 0 49 -atADGNWradsgnw 
2012-11-29 15:57:31 *Tunnelblick: openvpnstart message: OpenVPN started 
successfully. Command used to start OpenVPN (one argument per displayed line):

     /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3-alpha1/openvpn
     --cd
     /Users/lorin/Library/Application Support/Tunnelblick/Configurations
     --daemon
     --management
     127.0.0.1
     1337
     --config
     /Users/lorin/Library/Application Support/Tunnelblick/Configurations/los-angeles_80_tcp_lily.ovpn
     --log
     /Library/Application Support/Tunnelblick/Logs/-SUsers-Slorin-SLibrary-SApplication Support-STunnelblick-SConfigurations-Slos--angeles_80_tcp_lily.ovpn.1_0_0_0_49.1337.openvpn.log
     --management-query-passwords
     --management-hold
     --script-security
     2
     --up
     /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -m -w -d -atADGNWradsgnw
     --down
     /Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m -w -d -atADGNWradsgnw
     --up-restart
     --route-pre-down
     /Applications/Tunnelblick.app/Contents/Resources/client.route-pre-down.tunnelblick.sh -m -w -d -atADGNWradsgnw
2012-11-29 15:57:31 *Tunnelblick: Established communication with OpenVPN
2012-11-29 15:57:31 *Tunnelblick: Obtained VPN username and password from the 
Keychain
2012-11-29 15:57:31 OpenVPN 2.3-alpha1 i386-apple-darwin10.8.0 [SSL (OpenSSL)] 
[LZO2] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110522-1 (2.2.0)] built on 
Sep 12 2012
2012-11-29 15:57:31 WARNING: No server certificate verification method has been 
enabled.  See http://openvpn.net/howto.html#mitm for more info.
2012-11-29 15:57:31 NOTE: the current --script-security setting may allow this 
configuration to call user-defined scripts
2012-11-29 15:57:31 Attempting to establish TCP connection with 
[AF_INET]198.148.116.100:80 [nonblock]
2012-11-29 15:57:31 *Tunnelblick: openvpnstart starting OpenVPN:
                    *                    /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3-alpha1/openvpn --cd /Users/lorin/Library/Application Support/Tunnelblick/Configurations --daemon --management 127.0.0.1 1337 --config /Users/lorin/Library/Application Support/Tunnelblick/Configurations/los-angeles_80_tcp_lily.ovpn --log /Library/Application Support/Tunnelblick/Logs/-SUsers-Slorin-SLibrary-SApplication Support-STunnelblick-SConfigurations-Slos--angeles_80_tcp_lily.ovpn.1_0_0_0_49.1337.openvpn.log --management-query-passwords --management-hold --script-security 2 --up /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -m -w -d -atADGNWradsgnw --down /Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m -w -d -atADGNWradsgnw --up-restart --route-pre-down /Applications/Tunnelblick.app/Contents/Resources/client.route-pre-down.tunnelblick.sh -m -w -d -atADGNWradsgnw
2012-11-29 15:57:32 TCP connection established with [AF_INET]198.148.116.100:80
2012-11-29 15:57:32 TCPv4_CLIENT link local: [undef]
2012-11-29 15:57:32 TCPv4_CLIENT link remote: [AF_INET]198.148.116.100:80
2012-11-29 15:57:33 WARNING: this configuration may cache passwords in memory 
-- use the auth-nocache option to prevent this
2012-11-29 15:57:40 VERIFY OK: depth=1, C=US, ST=CA, L=Los Angeles, O=test.net, 
CN=test.net CA, emailAddress=test@gmail.com
2012-11-29 15:57:40 VERIFY OK: depth=0, C=US, ST=CA, L=Los Angeles, O=test.net, 
CN=server, emailAddress=test@gmail.com
2012-11-29 15:57:43 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 
bit key
2012-11-29 15:57:43 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for 
HMAC authentication
2012-11-29 15:57:43 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 
bit key
2012-11-29 15:57:43 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for 
HMAC authentication
2012-11-29 15:57:43 Control Channel: TLSv1, cipher TLSv1/SSLv3 
DHE-RSA-AES256-SHA, 1024 bit RSA
2012-11-29 15:57:43 [server] Peer Connection Initiated with 
[AF_INET]198.148.116.100:80
2012-11-29 15:57:46 TUN/TAP device /dev/tun0 opened
2012-11-29 15:57:46 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
2012-11-29 15:57:46 /sbin/ifconfig tun0 delete
                                        ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
2012-11-29 15:57:46 NOTE: Tried to delete pre-existing tun/tap instance -- No 
Problem if failure
2012-11-29 15:57:46 /sbin/ifconfig tun0 10.110.8.6 10.110.8.5 mtu 1500 netmask 
255.255.255.255 up
2012-11-29 15:57:46 
/Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -m -w 
-d -atADGNWradsgnw tun0 1500 1544 10.110.8.6 10.110.8.5 init
                                        add net 198.148.116.100: gateway 10.226.0.2
                                        add net 0.0.0.0: gateway 10.110.8.5
                                        add net 128.0.0.0: gateway 10.110.8.5
                                        add net 10.110.8.1: gateway 10.110.8.5
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: Retrieved name 
server(s) [ 8.8.8.8 ] and SMB server(s) [ ] and using default domain name [ 
openvpn ]
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
MAN_DNS_CONFIG = <dictionary> { ServerAddresses : <array> { 10.226.54.201 
10.32.8.10 } }
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
MAN_SMB_CONFIG = No such key
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
CUR_DNS_CONFIG = <dictionary> { ServerAddresses : <array> { 10.226.54.201 
10.32.8.10 } }
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
CUR_SMB_CONFIG = No such key
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: DYN_DNS_DN = 
openvpn; DYN_DNS_SA = 8.8.8.8; DYN_DNS_SD =
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: DYN_SMB_NN = 
; DYN_SMB_WG = ; DYN_SMB_WA =
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: MAN_DNS_DN = 
; MAN_DNS_SA = 10.226.54.201 10.32.8.10; MAN_DNS_SD =
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: MAN_SMB_NN = 
; MAN_SMB_WG = ; MAN_SMB_WA =
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: CUR_DNS_DN = 
; CUR_DNS_SA = 10.226.54.201 10.32.8.10; CUR_DNS_SD =
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: CUR_SMB_NN = 
; CUR_SMB_WG = ; CUR_SMB_WA =
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: ServerAddresses 
'8.8.8.8' ignored because ServerAddresses was set manually
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: Setting search 
domains to 'openvpn' because running under OS X 10.6 or higher and the search 
domains were not set manually and 'Prepend domain name to search domains' was 
not selected
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: FIN_DNS_DN = 
openvpn; FIN_DNS_SA = 10.226.54.201 10.32.8.10; FIN_DNS_SD = openvpn
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: FIN_SMB_NN = 
; FIN_SMB_WG = ; FIN_SMB_WA =
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: OS X 10.8 or 
higher, so will modify DNS settings using Setup: in addition to State:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: SKP_DNS = ; 
SKP_DNS_SA = ; SKP_DNS_SD = ; SKP_DNS_DN =
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: SKP_SETUP_DNS 
=
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: SKP_SMB = #; 
SKP_SMB_NN = #; SKP_SMB_WG = #; SKP_SMB_WA = #
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: Configuration 
changes:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: ADD State: 
ServerAddresses 10.226.54.201 10.32.8.10
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: ADD State: 
SearchDomains openvpn
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: ADD State: 
DomainName openvpn
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: ADD Setup: 
ServerAddresses 10.226.54.201 10.32.8.10
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: ADD Setup: 
SearchDomains openvpn
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: ADD Setup: 
DomainName openvpn
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: ##ADD State: 
NetBIOSName
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: ##ADD State: 
Workgroup
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: ##ADD State: 
WINSAddresses
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:48 *Tunnelblick client.up.tunnelblick.sh: DEBUG: Pause for 
configuration changes to be propagated to State:/Network/Global/DNS and .../SMB
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
Configurations as read back after changes:
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
State:/.../DNS = <dictionary> { DomainName : openvpn SearchDomains : <array> { 
openvpn } ServerAddresses : <array> { 10.226.54.201 10.32.8.10 } }
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
State:/.../SMB = No such key
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
Setup:/.../DNS = <dictionary> { DomainName : openvpn SearchDomains : <array> { 
openvpn } ServerAddresses : <array> { 10.226.54.201 10.32.8.10 } }
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
Setup:/.../SMB = No such key
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
State:/Network/Global/DNS = <dictionary> { DomainName : openvpn SearchDomains : 
<array> { openvpn } ServerAddresses : <array> { 10.226.54.201 10.32.8.10 } }
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
State:/Network/Global/SMB = No such key
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG:
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG: Expected by 
process-network-changes:
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
State:/Network/OpenVPN/DNS = <dictionary> { DomainName : openvpn SearchDomains 
: <array> { openvpn } ServerAddresses : <array> { 10.226.54.201 10.32.8.10 } }
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: DEBUG: 
State:/Network/OpenVPN/SMB = <dictionary> { TunnelblickNoSuchKey : true }
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: Saved the DNS and 
SMB configurations for later use
2012-11-29 15:57:49 *Tunnelblick client.up.tunnelblick.sh: Set up to monitor 
system configuration with leasewatch
2012-11-29 15:57:50 Initialization Sequence Completed
2012-11-29 15:57:50 *Tunnelblick: Flushed the DNS cache
2012-11-29 15:57:56 *Tunnelblick leasewatch: A system configuration change was 
ignored because it was not relevant

Original issue reported on code.google.com by kyod...@gmail.com on 29 Nov 2012 at 8:07