MarcC
Been racking my brains out trying to install and setup openVPN so I can use it between my home and my laptop as I travel about. Read lots of documentation but admit I am lost, though I feel like I am pretty close...
I have installed the openVPN server on an openSuSE12.3 Linux system/server at home, and openSuSE12.3 on my laptop.
Ifconfig and route for my server (bigbang) shows the following -
bigbang:/etc/sysconfig # ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:20:7A:8A:FB
inet addr:10.10.10.100 Bcast:10.10.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:664940 errors:0 dropped:1 overruns:0 frame:0
TX packets:659336 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:451401131 (430.4 Mb) TX bytes:232466647 (221.6 Mb)
Interrupt:17 Memory:93100000-93120000
eth1 Link encap:Ethernet HWaddr 00:E0:29:70:57:84
inet addr:192.168.10.100 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11379704 errors:0 dropped:0 overruns:0 frame:0
TX packets:22854391 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:891625160 (850.3 Mb) TX bytes:27868707527 (26577.6 Mb)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:543543 errors:0 dropped:0 overruns:0 frame:0
TX packets:543543 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3092103874 (2948.8 Mb) TX bytes:3092103874 (2948.8 Mb)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.10.1 P-t-P:10.8.10.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:131 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:10542 (10.2 Kb) TX bytes:0 (0.0 b)
bigbang:/etc/sysconfig # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.10.10.1 0.0.0.0 UG 0 0 0 eth0
10.8.10.0 192.168.10.100 255.255.255.0 UG 0 0 0 eth1
10.8.10.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.20.0 10.10.10.200 255.255.255.0 UG 0 0 0 eth0
On my laptop I am using the NetworkManager applet to load in my client.conf file and connect to the openVPN server. For the purpose of this test I have my laptop on a 192.168.20.0 subnet, but I am actually configuring the VPN connection to connect to 192.168.10.0 subnet. Here is what ifconfig and route show (with the actual internet IP address of my server xx'ed out) -
marcslaptop:/etc/sysconfig # ifconfig
eth0 Link encap:Ethernet HWaddr 10:BF:48:26:6A:51
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:65623 errors:0 dropped:0 overruns:0 frame:0
TX packets:65623 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:110078808 (104.9 Mb) TX bytes:110078808 (104.9 Mb)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.10.6 P-t-P:10.8.10.5 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:435 (435.0 b)
wlan0 Link encap:Ethernet HWaddr 00:08:CA:F7:89:5C
inet addr:192.168.20.104 Bcast:192.168.20.255 Mask:255.255.255.0
inet6 addr: fe80::208:caff:fef7:895c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11279 errors:0 dropped:0 overruns:0 frame:0
TX packets:7090 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3018653 (2.8 Mb) TX bytes:4504770 (4.2 Mb)
marcslaptop:/etc/sysconfig # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.8.10.5 0.0.0.0 UG 0 0 0 tun0
10.8.10.1 10.8.10.5 255.255.255.255 UGH 0 0 0 tun0
10.8.10.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
XX.XX.XX.XX 192.168.20.1 255.255.255.255 UGH 0 0 0 wlan0
192.168.10.0 10.8.10.5 255.255.255.0 UG 0 0 0 tun0
192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
As one can see, a connection is being made, and I can see that also by looking at the openvpn log file. But no actual communication will take place over the VPN link! What is really ODD to my eyes is the gateway address being assigned for my laptop to use - 10.8.10.5. I have no idea where this is coming from and there is nothing in any of my config files or network setup configurations that has such an IP address in it. Of course it is not pingable from either end of the connection either. I would have expected this to be 10.8.10.1 but I am no expert so that is just a guess on my part.
Also, isn't this going to force all communication from my laptop through the VPN link? I really only want to use the VPN connection to access computers on my home network, while I am away. I don't want all my internet/mail/etc connections to go through the VPN connections, but would rather have them go through whatever local gateway I am connecting through....
Anywise, I am baffled, sure hope some kind guru will lead me out of these woods... Thanks in advance... Marc...