Hi all, need some help.
Scenario: I have Open VPN running on my LAN on server 192.168.1.10 (readynas box)
I use tunnel brick as clients on my mac machine to connect to my VPN network.
Goal: I'd like to connect to my home LAN from my mac book pro (MBP) when in office or on travel. I use tunnel brick on my MBP to connect to the OpenVPN server that runs at home.
What works: When connected via VPN, I can ping any LAN machine (not just the VPN gateway)
What does not work: For whatever reason, I can't ftp/telnet/http or access any IP level function on any of my LAN machines
If it helps, when I am at office, my local LAN IP for my MBP is 10.6.1.x. The VPN is configured at my home to give out 10.8.0.x addresses
I know for sure
there are no firewall issues on the LAN machines - all firewalls are disabled. I have the following 3 LAN machines I'd like to access from my client laptop (Mac, running Mavericks) while in office
192.168.1.10: The VPN server --> everything works - ping as well as ssh/telnet/http
192.168.1.4: An iMac at my home --> ping from office-mac to 192.168.1.4 works. Ping from 192.168.1.4 to my office-mac (using VPN assigned IP of 10.8.0.6) works. But I can't remotely access any thing on this mac except ping it
192.168.1.9: A Windows XP laptop at my home --> ping from office-mac to 192.168.1.9 works. Ping from 192.168.1.9 to my office-mac (using VPN assigned IP of 10.8.0.6) works. But I can't remotely access any thing on this mac except ping it
I'm going nuts. I searched around - many have posted that after OpenVPN is connected, they can't ping other LAN computers. Well I can, I just can't access any of them besides pinging!
This is my server.conf file in the VPN gateway (at 192.168.1.10)
local 192.168.1.10 # This is the IP address of the real network interface on the server connected to the router
port 9876 # This is the port OpenVPN is running on - make sure the router is port forwarding this port to the above IP
proto udp
push "dhcp-option DNS 8.8.8.8" # I like to use Google’s DNS
push "dhcp-option DNS 8.8.4.4" #
dev tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/MyVPNServer.crt
key /etc/openvpn/MyVPNServer.key
dh /etc/openvpn/dh1024.pem
server 10.8.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0"
keepalive 10 120
#reneg-sec 0
cipher BF-CBC # Blowfish (default) encryption
comp-lzo
max-clients 100 # Assign the maximum number of clients here
persist-key
persist-tun
#persist-tap
status openvpn-status.log
verb 3
duplicate-cn
IP forwarding has been set to 1 at 192.168.1.10
xxx-readyNAS:/etc/openvpn# cat /proc/sys/net/ipv4/ip_forward
1
xxx-readyNAS:/etc/openvpn#
My gateway router is at 192.168.1.1
Router configuration: (This is a NetGear WNDR3700)
a) I have a port-forward port 9876 TCP/UDP to 192.168.10
b) I have a static route on the router as follows:
Active=Yes, Destination=10.8.0.0, Gateway = 192.168.1.10
My Tunnelbrick client configuration which I use to connect:
client
proto udp
dev tun
remote <my dynamic dns hostname> 9876
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
cipher BF-CBC
verb 3
#dhcp-option DNS 8.8.8.8
#dhcp-option DNS 8.8.4.4
<ca>
[Security-related line(s) omitted]
</ca>
<cert>
[Security-related line(s) omitted]
</cert>
<key>
[Security-related line(s) omitted]
</key>
If it helps, here is the output of netstat -nr from my LAN XP PC (192.168.1.9) after my MBP connects via OpenVPN
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 21 70 6b 75 a0 ...... Broadcom 440x 10/100 Integrated Controller - Packet Scheduler Miniport
0x3 ...00 16 44 e3 85 bb ...... Dell Wireless 1395 WLAN Mini-Card - Packet Scheduler Miniport
0x4 ...00 ff d3 75 0c be ...... TAP-Win32 Adapter V8 - Packet Scheduler Miniport
0x5 ...00 ff cc 41 6e f5 ...... TAP-Win32 Adapter OAS - Packet Scheduler Miniport
0x6 ...00 ff 6b 39 68 bb ...... Leaf Networks Adapter - Packet Scheduler Miniport
0x7 ...08 00 27 00 50 29 ...... VirtualBox Host-Only Ethernet Adapter - Packet Scheduler Miniport
0x10009 ...00 ff 00 94 46 8a ...... Juniper Network Connect Virtual Adapter - Hotspot Shield Routing Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.9 25
5.0.0.0 255.0.0.0 5.170.110.83 5.170.110.83 9000
5.170.110.83 255.255.255.255 127.0.0.1 127.0.0.1 9000
5.255.255.255 255.255.255.255 5.170.110.83 5.170.110.83 9000
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
169.254.0.0 255.255.0.0 5.170.110.83 5.170.110.83 20
192.168.1.0 255.255.255.0 192.168.1.9 192.168.1.9 25
192.168.1.9 255.255.255.255 127.0.0.1 127.0.0.1 25
192.168.1.255 255.255.255.255 192.168.1.9 192.168.1.9 25
192.168.56.0 255.255.255.0 192.168.56.1 192.168.56.1 20
192.168.56.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.56.255 255.255.255.255 192.168.56.1 192.168.56.1 20
224.0.0.0 240.0.0.0 5.170.110.83 5.170.110.83 9000
224.0.0.0 240.0.0.0 192.168.1.9 192.168.1.9 25
224.0.0.0 240.0.0.0 192.168.56.1 192.168.56.1 20
255.255.255.255 255.255.255.255 5.170.110.83 10009 1
255.255.255.255 255.255.255.255 5.170.110.83 5 1
255.255.255.255 255.255.255.255 5.170.110.83 5.170.110.83 1
255.255.255.255 255.255.255.255 5.170.110.83 4 1
255.255.255.255 255.255.255.255 5.170.110.83 2 1
255.255.255.255 255.255.255.255 192.168.1.9 192.168.1.9 1
255.255.255.255 255.255.255.255 192.168.56.1 192.168.56.1 1
Default Gateway: 192.168.1.1
===========================================================================
Persistent Routes:
None
Route Table
And here is netstat -nr from my home iMac after I connect my MBP through OpenVPN
[xxx@~]$ netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1 UGSc 14 7 en0
127 127.0.0.1 UCS 3 54225 lo0
127.0.0.1 127.0.0.1 UH 8 129138 lo0
127.255.255.255 127.0.0.1 UHW3I 0 54217 lo0 25
169.254 link#4 UCS 1 0 en0
169.254.86.239 78:ca:39:b0:85:5 UHLSW 0 0 en0
192.168.1 link#4 UCS 12 0 en0
192.168.1.1 c0:3f:e:7d:c1:a3 UHLWIir 14 7932 en0 1191
192.168.1.2 0:8:89:f7:42:cf UHLWI 0 75 en0 1196
192.168.1.4 127.0.0.1 UHS 1 23051 lo0
192.168.1.6 90:b9:31:c7:89:30 UHLWI 0 1 en0 742
192.168.1.9 0:16:44:e3:85:bb UHLWI 0 1051 en0 665
192.168.1.10 a0:21:b7:5f:3b:1d UHLWIir 2 234478 en0 580
192.168.1.14 f0:bf:97:4d:7a:c8 UHLWI 0 4521 en0 886
192.168.1.16 dc:3a:5e:bd:57:ba UHLWI 0 0 en0 1144
192.168.1.25 0:e:58:e1:16:e2 UHLWI 0 50 en0 1163
192.168.1.26 0:e:58:5d:96:40 UHLWI 0 1162 en0 1144
192.168.1.31 link#4 UHLWIi 1 570 en0
192.168.1.94 0:d:4b:45:b6:4 UHLWI 0 614310 en0 1164
192.168.1.255 ff:ff:ff:ff:ff:ff UHLWbI 0 92 en0
Internet6:
Destination Gateway Flags Netif Expire
default fe80::c23f:eff:fe7d:c1a3%en0 UGc en0
::1 ::1 UHL lo0
2002:c0a8:640a:e472::/64 link#4 UC en0
2002:c0a8:640a:e472:6a5b:35ff:feba:3fad 68:5b:35:ba:3f:ad UHL lo0
2002:c0a8:640a:e472:705f:f1ed:b223:fe22 68:5b:35:ba:3f:ad UHL lo0
2002:c0a8:640a:e472:c23f:eff:fe7d:c1a3 c0:3f:e:7d:c1:a3 UHLWI en0
fe80::%lo0/64 fe80::1%lo0 UcI lo0
fe80::1%lo0 link#1 UHLI lo0
fe80::%en0/64 link#4 UCI en0
fe80::1%en0 link#4 UHLWI en0
fe80::6a5b:35ff:feba:3fad%en0 68:5b:35:ba:3f:ad UHLI lo0
fe80::c23f:eff:fe7d:c1a3%en0 c0:3f:e:7d:c1:a3 UHLWIir en0
fe80::%en1/64 link#5 UCI en1
ff01::%lo0/32 ::1 UmCI lo0
ff01::%en0/32 link#4 UmCI en0
ff01::%en1/32 link#5 UmCI en1
ff02::%lo0/32 ::1 UmCI lo0
ff02::%en0/32 link#4 UmCI en0
ff02::%en1/32 link#5 UmCI en1
[xxxx@~]$
SUMMARY: After OpenVPN is connected, everyone can ping everyone else, but I can't connect to any service at the IP level. :cry: