Displaying 6 results from an estimated 6 matches for "ssh_tun_linux".
2006 Aug 25
2
RFC: non-root ssh tun access
...fix it.
thx,
Jason.
-------------- next part --------------
diff -Nurd openssh-4.3p2.orig/misc.c openssh-4.3p2/misc.c
--- openssh-4.3p2.orig/misc.c 2006-01-31 05:49:28.000000000 -0500
+++ openssh-4.3p2/misc.c 2006-08-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];
i...
2006 Sep 30
1
<net/if_tap.h> on FreeBSD
FreeBSD's <net/if_tap.h> requires u_char to be defined:
checking net/if_tap.h usability... no
checking net/if_tap.h presence... yes
configure: WARNING: net/if_tap.h: present but cannot be compiled
configure: WARNING: net/if_tap.h: check for missing prerequisite headers?
configure: WARNING: net/if_tap.h: see the Autoconf documentation
configure: WARNING: net/if_tap.h: section
2006 Mar 10
0
tun with darwin/macos x
...address family to IP tunnel traffic])
;;
*-*-hpux*)
# first we define all of the options common to all HP-UX releases
--- openbsd-compat/port-tun.c.orig 2006-02-13 19:16:25.000000000 -0800
+++ openbsd-compat/port-tun.c 2006-02-13 18:28:46.000000000 -0800
@@ -26,6 +26,7 @@
* settings.
*
* SSH_TUN_LINUX Use the (newer) Linux tun/tap device
+ * SSH_TUN_FREEBSD Use the FreeBSD tun/tap device
* SSH_TUN_COMPAT_AF Translate the OpenBSD address family
* SSH_TUN_PREPEND_AF Prepend/remove the address family
*/
@@ -93,7 +94,10 @@ sys_tun_open(int tun, int mode)
#ifdef SSH_TUN_FREEBSD
#include <s...
2012 May 09
1
warning from configuring openssh-6.0p1
...HAVE_SYS_MOUNT_H 1
| #define PAM_TTY_KLUDGE 1
| #define LOCKED_PASSWD_PREFIX "!"
| #define SPT_TYPE SPT_REUSEARGV
| #define LINK_OPNOTSUPP_ERRNO EPERM
| #define _PATH_BTMP "/var/log/btmp"
| #define USE_BTMP 1
| #define LINUX_OOM_ADJUST 1
| #define HAVE_LINUX_IF_TUN_H 1
| #define SSH_TUN_LINUX 1
| #define SSH_TUN_COMPAT_AF 1
| #define SSH_TUN_PREPEND_AF 1
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
|...
2009 Apr 08
3
libedit not found on SUse 11.1
Included below is a diff between the output from configure on a 64 bit
SUse 11.1 (doesn't find libedit) and a 64 bit Suse 10.3 (does find
libedit) for otherwise identical setups.
1. How can I get the output set up to look at conftest.c?
2. I added a set -x to configure above LIBEDIT_MSG=no
3. ./configure --with-ldflags="-L/usr/lib64" --with-cflags="-ggdb3
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