diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-06-23 21:05:12 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-06-23 21:05:12 +1000 |
commit | 3eb4834489426bd796da90299b2f8174b744dddd (patch) | |
tree | 1ba7e8ba150f78bca0d02c3a780a01acfcd3ccba | |
parent | 643460803f5c8c5a9bec9455a62d8a5217699f43 (diff) |
- (dtucker) [README.platform configure.ac openbsd-compat/port-tun.c] Add
tunnel support for Mac OS X/Darwin via a third-party tun driver. Patch
from reyk@, tested by anil@
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | INSTALL | 12 | ||||
-rw-r--r-- | README.platform | 14 | ||||
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | openbsd-compat/port-tun.c | 4 |
5 files changed, 38 insertions, 9 deletions
@@ -1,3 +1,8 @@ | |||
1 | 20060623 | ||
2 | - (dtucker) [README.platform configure.ac openbsd-compat/port-tun.c] Add | ||
3 | tunnel support for Mac OS X/Darwin via a third-party tun driver. Patch | ||
4 | from reyk@, tested by anil@ | ||
5 | |||
1 | 20060613 | 6 | 20060613 |
2 | - (djm) [getput.h] This file has been replaced by functions in misc.c | 7 | - (djm) [getput.h] This file has been replaced by functions in misc.c |
3 | - OpenBSD CVS Sync | 8 | - OpenBSD CVS Sync |
@@ -4685,4 +4690,4 @@ | |||
4685 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 4690 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
4686 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 4691 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
4687 | 4692 | ||
4688 | $Id: ChangeLog,v 1.4344 2006/06/13 03:15:54 djm Exp $ | 4693 | $Id: ChangeLog,v 1.4345 2006/06/23 11:05:12 dtucker Exp $ |
@@ -57,9 +57,10 @@ installed. No other S/Key library is currently known to be supported. | |||
57 | http://www.sparc.spb.su/solaris/skey/ | 57 | http://www.sparc.spb.su/solaris/skey/ |
58 | 58 | ||
59 | LibEdit: | 59 | LibEdit: |
60 | sftp now supports command-line editing via NetBSD's libedit. If your | 60 | |
61 | platform has it available natively you can use that, alternatively | 61 | sftp supports command-line editing via NetBSD's libedit. If your platform |
62 | you might try these multi-platform ports: | 62 | has it available natively you can use that, alternatively you might try |
63 | these multi-platform ports: | ||
63 | 64 | ||
64 | http://www.thrysoee.dk/editline/ | 65 | http://www.thrysoee.dk/editline/ |
65 | http://sourceforge.net/projects/libedit/ | 66 | http://sourceforge.net/projects/libedit/ |
@@ -210,7 +211,8 @@ for sshd, ssh and ssh-agent. | |||
210 | ------------------------- | 211 | ------------------------- |
211 | 212 | ||
212 | $ make survey | 213 | $ make survey |
213 | [check the contents and make sure there's no sensitive information] | 214 | [check the contents of the file "survey" to ensure there's no information |
215 | that you consider sensitive] | ||
214 | $ make send-survey | 216 | $ make send-survey |
215 | 217 | ||
216 | This will send configuration information for the currently configured | 218 | This will send configuration information for the currently configured |
@@ -227,4 +229,4 @@ Please refer to the "reporting bugs" section of the webpage at | |||
227 | http://www.openssh.com/ | 229 | http://www.openssh.com/ |
228 | 230 | ||
229 | 231 | ||
230 | $Id: INSTALL,v 1.71 2006/02/20 09:17:36 dtucker Exp $ | 232 | $Id: INSTALL,v 1.72 2006/06/23 11:05:13 dtucker Exp $ |
diff --git a/README.platform b/README.platform index 4c18a3278..b7dc3f91c 100644 --- a/README.platform +++ b/README.platform | |||
@@ -30,6 +30,18 @@ gcc, gcc-mingw-core, mingw-runtime, binutils, make, openssl, | |||
30 | openssl-devel, zlib, minres, minires-devel. | 30 | openssl-devel, zlib, minres, minires-devel. |
31 | 31 | ||
32 | 32 | ||
33 | Darwin and MacOS X | ||
34 | ------------------ | ||
35 | Darwin does not provide a tun(4) driver required for OpenSSH-based | ||
36 | virtual private networks. The BSD manpage still exists, but the driver | ||
37 | has been removed in recent releases of Darwin and MacOS X. | ||
38 | |||
39 | Nevertheless, tunnel support is known to work with Darwin 8 and | ||
40 | MacOS X 10.4 in Point-to-Point (Layer 3) and Ethernet (Layer 2) mode | ||
41 | using a third party driver. More information is available at: | ||
42 | http://www-user.rhrk.uni-kl.de/~nissler/tuntap/ | ||
43 | |||
44 | |||
33 | Solaris | 45 | Solaris |
34 | ------- | 46 | ------- |
35 | If you enable BSM auditing on Solaris, you need to update audit_event(4) | 47 | If you enable BSM auditing on Solaris, you need to update audit_event(4) |
@@ -55,4 +67,4 @@ account stacks which will prevent authentication entirely, but will still | |||
55 | return the output from pam_nologin to the client. | 67 | return the output from pam_nologin to the client. |
56 | 68 | ||
57 | 69 | ||
58 | $Id: README.platform,v 1.6 2005/11/05 05:28:35 dtucker Exp $ | 70 | $Id: README.platform,v 1.7 2006/06/23 11:05:13 dtucker Exp $ |
diff --git a/configure.ac b/configure.ac index 093c17643..c3cb68f28 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.339 2006/04/22 11:26:08 djm Exp $ | 1 | # $Id: configure.ac,v 1.340 2006/06/23 11:05:13 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18 | AC_REVISION($Revision: 1.339 $) | 18 | AC_REVISION($Revision: 1.340 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | 20 | ||
21 | AC_CONFIG_HEADER(config.h) | 21 | AC_CONFIG_HEADER(config.h) |
@@ -231,6 +231,11 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | |||
231 | AC_DEFINE(BROKEN_SETREGID) | 231 | AC_DEFINE(BROKEN_SETREGID) |
232 | AC_DEFINE_UNQUOTED(BIND_8_COMPAT, 1, | 232 | AC_DEFINE_UNQUOTED(BIND_8_COMPAT, 1, |
233 | [Define if your resolver libs need this for getrrsetbyname]) | 233 | [Define if your resolver libs need this for getrrsetbyname]) |
234 | AC_DEFINE(SSH_TUN_FREEBSD, 1, [Open tunnel devices the FreeBSD way]) | ||
235 | AC_DEFINE(SSH_TUN_COMPAT_AF, 1, | ||
236 | [Use tunnel device compatibility to OpenBSD]) | ||
237 | AC_DEFINE(SSH_TUN_PREPEND_AF, 1, | ||
238 | [Prepend the address family to IP tunnel traffic]) | ||
234 | ;; | 239 | ;; |
235 | *-*-hpux*) | 240 | *-*-hpux*) |
236 | # first we define all of the options common to all HP-UX releases | 241 | # first we define all of the options common to all HP-UX releases |
@@ -682,6 +687,7 @@ AC_CHECK_HEADERS( \ | |||
682 | login.h \ | 687 | login.h \ |
683 | maillock.h \ | 688 | maillock.h \ |
684 | ndir.h \ | 689 | ndir.h \ |
690 | net/if_tun.h \ | ||
685 | netdb.h \ | 691 | netdb.h \ |
686 | netgroup.h \ | 692 | netgroup.h \ |
687 | pam/pam_appl.h \ | 693 | pam/pam_appl.h \ |
diff --git a/openbsd-compat/port-tun.c b/openbsd-compat/port-tun.c index d09fe3d06..6e1fed969 100644 --- a/openbsd-compat/port-tun.c +++ b/openbsd-compat/port-tun.c | |||
@@ -29,6 +29,7 @@ | |||
29 | * settings. | 29 | * settings. |
30 | * | 30 | * |
31 | * SSH_TUN_LINUX Use the (newer) Linux tun/tap device | 31 | * SSH_TUN_LINUX Use the (newer) Linux tun/tap device |
32 | * SSH_TUN_FREEBSD Use the FreeBSD tun/tap device | ||
32 | * SSH_TUN_COMPAT_AF Translate the OpenBSD address family | 33 | * SSH_TUN_COMPAT_AF Translate the OpenBSD address family |
33 | * SSH_TUN_PREPEND_AF Prepend/remove the address family | 34 | * SSH_TUN_PREPEND_AF Prepend/remove the address family |
34 | */ | 35 | */ |
@@ -96,7 +97,10 @@ sys_tun_open(int tun, int mode) | |||
96 | #ifdef SSH_TUN_FREEBSD | 97 | #ifdef SSH_TUN_FREEBSD |
97 | #include <sys/socket.h> | 98 | #include <sys/socket.h> |
98 | #include <net/if.h> | 99 | #include <net/if.h> |
100 | |||
101 | #ifdef HAVE_NET_IF_TUN_H | ||
99 | #include <net/if_tun.h> | 102 | #include <net/if_tun.h> |
103 | #endif | ||
100 | 104 | ||
101 | int | 105 | int |
102 | sys_tun_open(int tun, int mode) | 106 | sys_tun_open(int tun, int mode) |