I have configured an openVPN instances both on a server and a client.
The server config is
Code: Select all
root@Linux:/etc/openvpn# cat /etc/openvpn/server.conf
port 1194
proto udp
dev tun
;dev-node tap0
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key # This file should be kept secret
dh /etc/openvpn/dh1024.pem
server 10.10.10.0 255.255.255.0 # vpn subnet
ifconfig-pool-persist ipp.txt
push "route 192.168.7.0 255.255.255.0" # home subnet
;duplicate-cn
keepalive 10 120
;cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
;status openvpn-status.log
;log-append openvpn.log
verb 4
mute 20
client-to-client
client-config-dir /etc/openvpn/ccd
root@Linux:/etc/openvpn#
The client gets connected. BUT, there is a thing a don't get.
For some reason the client receive a wrong p2p network, that is to be exact 10.10.10.4/30, while it's 10.10.10.0/30 on the server site. Of course all networks that the client gets seemed through 10.10.10.5 which does not exist as a server interface or its p2p peer. Maybe it's a bug?
The most interesting is the server "knows" it gave a wrong p2p subnet.
Code: Select all
root@Linux:/etc/openvpn# cat /etc/openvpn/ipp.txt
-VirtualBox,10.10.10.4
root@Linux:/etc/openvpn#
The ifconfig issue on the server is next.
Code: Select all
root@Linux:/etc/openvpn# ifconfig
eth0 Link encap:Ethernet HWaddr 00:24:1d:df:bf:5e
inet addr:192.168.1.24 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::224:1dff:fedf:bf5e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21388 errors:0 dropped:0 overruns:0 frame:0
TX packets:22073 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18281661 (18.2 MB) TX bytes:2736217 (2.7 MB)
Interrupt:44 Base address:0x6000
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:16436 Metric:1
RX packets:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1776 (1.7 KB) TX bytes:1776 (1.7 KB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.10.10.1 P-t-P:10.10.10.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:48 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:2880 (2.8 KB) TX bytes:0 (0.0 B)
root@Linux:/etc/openvpn#