netstat -r before VPN connect:
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 10.120.44.1 UGSc 39 0 en0
10.120.44/22 link#4 UCS 3 0 en0
10.120.44.1 0:25:b4:34:ca:58 UHLWIi 38 6 en0 1184
10.120.44.189 localhost UHS 1 0 lo0
10.120.47.255 ff:ff:ff:ff:ff:ff UHLWbI 0 5 en0
127 localhost UCS 0 0 lo0
localhost localhost UH 1 243 lo0
169.254 link#4 UCS 1 0 en0
169.254.255.255 0:25:b4:34:ca:58 UHLSWi 0 0 en0 1179
netstat -r after VPN connect:
Internet:
10.120.44/22 link#4 UCS 3 0 en0
10.120.44.189 localhost UHS 0 0 lo0
127 localhost UCS 0 0 lo0
localhost localhost UH 3 277 lo0
169.254 link#4 UCS 1 0 en0
169.254.255.255 0:25:b4:34:ca:58 UHLSWi 0 0 en0 1138
192.168.1 link#6 UC 0 0 tap0
192.168.1.14 localhost UHS 0 0 lo0
Ping to pc at local network:
PING 10.120.44.1 (10.120.44.1): 56 data bytes
64 bytes from 10.120.44.1: icmp_seq=0 ttl=255 time=6.690 ms
64 bytes from 10.120.44.1: icmp_seq=1 ttl=255 time=8.113 ms
64 bytes from 10.120.44.1: icmp_seq=2 ttl=255 time=8.170 ms
64 bytes from 10.120.44.1: icmp_seq=3 ttl=255 time=9.420 ms
Ping to pc at vpn network:
PING 192.168.1.2 (192.168.1.2): 56 data bytes
64 bytes from 192.168.1.2: icmp_seq=0 ttl=64 time=21.796 ms
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=26.953 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=32.289 ms
64 bytes from 192.168.1.2: icmp_seq=3 ttl=64 time=22.720 ms
(Others succeed too.)
/etc/resolv.conf before VPN connect:
domain xxxx-college.intern
nameserver 10.214.1.6
nameserver 10.214.1.7
nameserver 10.214.2.10
nameserver 10.214.2.11
/etc/resolv.conf after VPN connect:
search openvpn
nameserver 192.168.1.1
Server config:
up "/etc/openvpn/bridge-start.sh"
down "/etc/openvpn/bridge-stop.sh"
port 443
proto tcp
dev tap
ca ca.crt
cert lightning.crt
key lightning.key # This file should be kept secret
dh dh1024.pem
server-bridge
;push "redirect-gateway def1 bypass-dhcp"
;push "dhcp-option DNS 192.168.1.1"
keepalive 30 180
comp-lzo
max-clients 2
persist-key
persist-tun
status status.log
log log.log
verb 3
Client config:
client
dev tap
proto tcp
remote x.x.x.x 443
resolv-retry infinite
nobind
persist-key
persist-tun
http-proxy xxxx 8080
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
comp-lzo
verb 3
🙂
Mac OSX client by the way.