checking for lzo1x.h… no LZO headers were not found LZO library available from http://www.oberhumer.com/opensource/lzo/ configure: error: Or try ./configure –disable-lzo
socket.c: In function ‘create_socket_udp’: socket.c:613: error: ‘SOL_IP’ undeclared (first use in this function) socket.c:613: error: (Each undeclared identifier is reported only once socket.c:613: error: for each function it appears in.) socket.c: In function ‘link_socket_read_udp_posix_recvmsg’: socket.c:2242: error: ‘SOL_IP’ undeclared (first use in this function) socket.c: In function ‘link_socket_write_udp_posix_sendmsg’: socket.c:2323: error: ‘SOL_IP’ undeclared (first use in this function) make[2]: *** [socket.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
dports/net/openvpn2/files/patch-syshead.h.diff =================================================================== --- dports/net/openvpn2/files/patch-syshead.h.diff (revision 0) +++ dports/net/openvpn2/files/patch-syshead.h.diff (revision 0) @@ -0,0 +1,18 @@ +diff -ur syshead.h syshead.h +--- syshead.h 2011-06-23 23:13:39.000000000 -0700 ++++ syshead.h 2011-07-26 14:49:07.000000000 -0700 +@@ -392,6 +392,13 @@ + #endif + + /* ++ * Define a proper IP socket level if not already done. ++ */ ++#ifndef SOL_IP ++#define SOL_IP IPPROTO_IP ++#endif ++ ++/* + * Disable ESEC + */ + #if 0 +
sudo sysctl -w net.inet.ip.forwarding=1
net.inet.ip.forwarding=1
mode p2p proto tcp-client dev tun #remote <my external IP> 1194 remote <my external IP> <changed to a randomly selected port number here, very high> ifconfig 10.8.0.2 10.8.0.1 verb 3 secret <path to my secret key file> comp-lzo # this route combined with a route for 10.8.0.0 to point to 192.168.3.109 on my # router allows the vpn client to access all lan resources of the server route 192.168.3.0 255.255.255.0 # these lines were supposed to make the connection more resistant to failures keepalive 10 60 ping-timer-rem persist-tun persist-key
mode p2p proto tcp-server dev tun #port 1194 port <changed to a randomly selected port number here, very high> ifconfig 10.8.0.1 10.8.0.2 verb 3 secret <path to my secret key file> comp-lzo # these lines were supposed to make the connection more resistant to failures keepalive 10 60 ping-timer-rem persist-tun persist-key # couldn't get this to push the new route to the client, so I am just adding # the route in the client config file #push "route 192.168.3.0 255.255.255.0"