Here are the relevant lines from openvpn.conf:
# Configure server mode and supply VPN subnet for client addresses
server 4.44.4.0 255.255.255.0
# Allow VPN subnet to see the home gateway subnet
push "route 192.168.44.0 255.255.255.0"
I confirmed the IP for the tun interface:
eth0 Link encap:Ethernet HWaddr blahblahblahblah
inet addr:192.168.44.2 Bcast:192.168.44.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:648066 errors:0 dropped:10732 overruns:0 frame:0
TX packets:103803 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:61082819 (58.2 MiB) TX bytes:21754951 (20.7 MiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:4.44.4.1 P-t-P:4.44.4.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:646 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:480 (480.0 B) TX bytes:54072 (52.8 KiB)
After negotiating the VPN connection from a windows client, I checked the adapter's IP:
Ethernet adapter Local Area Connection 4:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : blahblahblahblah
IPv4 Address. . . . . . . . . . . : 4.44.4.6
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Default Gateway . . . . . . . . . :
I'm not sure why the subnet mask is like that. Could that be the problem? Also there's no default gateway?
Anyway, I can ping the vpn server's IP on the vpn subset...
Pinging 4.44.4.1 with 32 bytes of data:
Reply from 4.44.4.1: bytes=32 time=18ms TTL=64
Reply from 4.44.4.1: bytes=32 time=33ms TTL=64
Reply from 4.44.4.1: bytes=32 time=18ms TTL=64
Reply from 4.44.4.1: bytes=32 time=38ms TTL=64
Ping statistics for 4.44.4.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 18ms, Maximum = 38ms, Average = 26ms
Thanks