My server version of OpenVPN is : OpenVPN 2.1_rc19 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Oct 13 2009, on ubuntu 9.10
the ifconfig command is:
##############################
tap0 Link encap:Ethernet HWaddr 7a:ff:86:1d:ce:cb
inet6 addr: fe80::78ff:86ff:fe1d:cecb/64 Scope:Link
inet6 addr: 2001:5c0:1400
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:676 (676.0 B)
tun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: 2001:5c0:1400
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 Metric:1
RX packets:98 errors:0 dropped:0 overruns:0 frame:0
TX packets:88 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:6997 (6.9 KB) TX bytes:6538 (6.5 KB)
##############################
where tun is the IPV6 interface lent by freenet6
the openvpn configuration is:
##############################
dev tap
secret myhost.key
up /etc/openvpn/myhost.up
log /var/log/openvpn/myserver.log
##############################
and the myhost.up script is:
##############################
#!/bin/sh
ifconfig $dev up
ifconfig $dev add 2001:5c0:1400
##############################
on the client side is the same.
My client version of openvpn is: OpenVPN 2.1_rc11 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Mar 9 2009, on ubuntu 9.04
the ifconfig command is:
##############################
tun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: 2001:5c0:1400
##############################
where tun is the IPV6 interface lent by freenet6
the openvpn configuration is:
##############################
remote homeboxpv01.broker.freenet6.net
float
dev tap
secret myhost.key
up /etc/openvpn/myhost.up
log /var/log/openvpn/myclient.log
##############################
and the myhost.up script is:
##############################
#!/bin/sh
ifconfig $dev up
ifconfig $dev add 2001:5c0:1400
##############################
When I start openvpn on the server side I get this:
##############################
tail -f /var/log/openvpn/myserver.log
Wed Mar 2 09:38:50 2011 OpenVPN 2.1_rc19 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Oct 13 2009
Wed Mar 2 09:38:50 2011 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Wed Mar 2 09:38:50 2011 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Wed Mar 2 09:38:50 2011 /usr/sbin/openvpn-vulnkey -q myhost.key
Wed Mar 2 09:38:50 2011 TUN/TAP device tap0 opened
Wed Mar 2 09:38:50 2011 /etc/openvpn/myhost.up tap0 1500 1576 init
Wed Mar 2 09:38:50 2011 UDPv4 link local (bound): [undef]:1194
Wed Mar 2 09:38:50 2011 UDPv4 link remote: [undef]
##############################
When I start openvpn on the client side I get this:
##############################
tail -f /var/log/openvpn/myclient.log
Thu Feb 17 04:47:26 2000 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Feb 17 04:47:26 2000 /usr/sbin/openvpn-vulnkey -q myhost.key
/usr/sbin/openvpn-vulnkey:22: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Thu Feb 17 04:47:27 2000 TUN/TAP device tap0 opened
Thu Feb 17 04:47:27 2000 /etc/openvpn/myhost.up tap0 1500 1576 init
Thu Feb 17 04:47:27 2000 UDPv4 link local (bound): [undef]:1194
Thu Feb 17 04:47:27 2000 UDPv4 link remote: 81.171.72.11:1194
Thu Feb 17 04:47:27 2000 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
##############################
The ip address 81.171.72.11 is not the right one (it is the ipv4 of my machine, but it is a freenet server, not my machine), it should connect to the ipv6 of the server.
How can I force it?
Thank you all guys!!!