From owner-freebsd-questions@FreeBSD.ORG Sat Jul 23 13:24:06 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35FBD16A41F for ; Sat, 23 Jul 2005 13:24:06 +0000 (GMT) (envelope-from hornetmadness@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D76643D8C for ; Sat, 23 Jul 2005 13:23:49 +0000 (GMT) (envelope-from hornetmadness@gmail.com) Received: by rproxy.gmail.com with SMTP id 34so64044rns for ; Sat, 23 Jul 2005 06:23:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NE0shFVUxqtLE3upB2lwXuOio+d3sXi4civGIRDveLvUlesKcWMOqfndD6MlHBWbRMwPuDxLxrVyzT287Mtp9nSmud7SYu7DTONR7PPlM1NVmet0cu2XX6O3TN838EMRZx4ETxcSU252ZtSsYi+oHVDVeYwymEwv5ja0NJK7Fss= Received: by 10.38.103.16 with SMTP id a16mr67237rnc; Sat, 23 Jul 2005 06:23:48 -0700 (PDT) Received: by 10.38.8.44 with HTTP; Sat, 23 Jul 2005 06:23:48 -0700 (PDT) Message-ID: Date: Sat, 23 Jul 2005 09:23:48 -0400 From: Hornet To: Trevor Sullivan In-Reply-To: <42E15358.7010709@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42E04707.5050405@gmail.com> <42E15358.7010709@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Restrict Tunneling thru SSH X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hornet List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2005 13:24:06 -0000 On 7/22/05, Trevor Sullivan wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: RIPEMD160 >=20 > Hornet wrote: >=20 > > On 7/21/05, Trevor Sullivan wrote: > > > >> Hello list, I am curious as to whether or not it is possible to > >> restrict certain users from tunneling traffic through SSH. I > >> would like to be able to tunnel my own traffic, but provide user > >> logins that are restricted from accessing the rest of my inside > >> network. Is it possible to restrict this by user? Thanks > >> > >> Trevor > > > > I'm pretty sure it is an all or nothing config option in sshd.conf > > in the global sense. But you can make specific options for specific > > hosts. > > > So could I possibly restrict SSH tunneling by IP (host)? I guess my > concern is that if I create a user account, it will be able to tunnel > to other machines on my network w/o restriction. Is the way to do this > maybe a DMZ or separate VLAN? >=20 > Trevor Yes, should be able to do this via your sshd config. I would recommend using webmin for this. I have not done this before, but it looks do able. Are your user going to be using ssh, or is this just a SMB box? If it is just a SMB box, then I would just set the shell account to "nologin" since that is separate from the SMB account. Also I guess you could set a up firewall and restrict the ports that can talk on the LAN. -Erik-