search for: ssh_tun_openbsd

Displaying 4 results from an estimated 4 matches for "ssh_tun_openbsd".

2006 Feb 10
0
OpenSSH VPN between Mac OS X and OpenBSD
...y not the best person to ask this. I really just deal with network performance issues. You should try the OpenSSH development group. I've cc:'d that group on this message. However, a quick look at the code shows that you'd only be getting that warning if both CUSTOM_SYS_TUN_OPEN and SSH_TUN_OPENBSD are not defined. Grep on the first define we find the following in the change log (djm) [misc.c] Disable tunnel code for non-OpenBSD (for now), enable again by providing a sys_tun_open() function for your platform and setting the CUSTOM_SYS_TUN_OPEN define. More work is required to match OpenB...
2017 Oct 10
3
tunnel device name acquisition?
Numerous how-tos all over the Internet show how one would set up a tunnel using ssh, e.g.: ssh -f -o Tunnel=ethernet <server_ip> true I was wondering if there's a way to subsequently acquire the names of the local and remote tun/tap interfaces (e.g., using the default "-w any:any") for subsequent automatic tunnel configuration, e.g.: ip link set $TapDev up ip link set
2006 Aug 25
2
RFC: non-root ssh tun access
...-25 09:01:31.000000000 -0400 @@ -579,12 +579,15 @@ return -1; } +#if defined(SSH_TUN_LINUX) int -tun_open(int tun, int mode) +tun_open(int tun, int mode, uid_t uid) { -#if defined(CUSTOM_SYS_TUN_OPEN) - return (sys_tun_open(tun, mode)); + return (sys_tun_open(tun, mode, uid)); #elif defined(SSH_TUN_OPENBSD) +int +tun_open(int tun, int mode) +{ struct ifreq ifr; char name[100]; int fd = -1, sock; diff -Nurd openssh-4.3p2.orig/misc.h openssh-4.3p2/misc.h --- openssh-4.3p2.orig/misc.h 2006-01-31 05:49:28.000000000 -0500 +++ openssh-4.3p2/misc.h 2006-08-25 09:01:57.000000000 -0400 @@ -55,7 +55,11 @...
2007 Sep 07
0
Public key reading abstraction (to allow future work)
...re_uid(); + return (0); } found_key = 0; === modified file 'misc.c' --- misc.c 2007-07-30 09:54:36 +0000 +++ misc.c 2007-08-02 12:47:54 +0000 @@ -46,6 +46,9 @@ # include <paths.h> #include <pwd.h> #endif +#ifdef HAVE_LIBGEN_H +#include <libgen.h> +#endif #ifdef SSH_TUN_OPENBSD #include <net/if.h> #endif @@ -608,6 +611,102 @@ } /* + * Check a given file for security. This is defined as all components + * of the path to the file must be owned by either the owner of + * of the file or root and no directories must be group or world writable. + * + * XXX Should an...