From owner-freebsd-questions@freebsd.org Fri Jan 13 10:46:50 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DA4FCAC5E4 for ; Fri, 13 Jan 2017 10:46:50 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-vk0-x234.google.com (mail-vk0-x234.google.com [IPv6:2607:f8b0:400c:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C32613B6 for ; Fri, 13 Jan 2017 10:46:50 +0000 (UTC) (envelope-from ml@my.gd) Received: by mail-vk0-x234.google.com with SMTP id x75so30834703vke.2 for ; Fri, 13 Jan 2017 02:46:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=my-gd.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qqHm7miuSJ+GTajNw+tJ4KlEaIxVQf6LJ4hQsBkogvY=; b=gs43G9v5jtNrETg02PGG5sTb8eku/1i0/nLbsARlBe+q49LdeWndU6FbeaSx1kjnj8 CbIBIDJFksZ9ZM7xez7tTSBJzj28xRaAjj9qiZTK0L9Gig6YCmmX02a8M0vc2qWIUDBe q+cSY0BYJvyPP01TuJE5fIvp5woitFiQCPTt6m0RdDZLcUcikS+LTjmx7hzFvm+zRrJl CuceYdAUv6tLF6kIqrqko+PJgr4iRPD5mMAFO2F3juXx8vKjs7OWI2ZLePqwDbcIzR1q u1/Ig+IsCpWlygDCgwIpNrB42ONvl2sgeuTHseKwS3ua3MQsEH+BwpWikjCsZlCZrqhO mZ7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qqHm7miuSJ+GTajNw+tJ4KlEaIxVQf6LJ4hQsBkogvY=; b=pELpouynQKpRzQfoN9ZjI0CJf/8+6eMtGR46eQHqYH5oAM/MkmEZtxtG4PMGSASd3f 37LTMaNiZ0XIeAM64lyl1OK+AVsW6HBNnUsaba6FHGQIwJOPwPt7lAKtpKzPNaMvWYbI TMfQA21PLL/e/pk87jaR5BcxaeouCB2ARtYUok9rbGEa/1YghbnxKCxXB21Hhhr30jF8 zYsMeV5DT9n6RzOoNjqEybSBzpuIZW089xixAwQx57Sqot7KH49r2G6yltLSg7c2i0pc +aRStrAserO8SoY3P7iw0F77yLA9BY8kI1GZGAcgWAbtlz6I2He487ctf0gvQdKgCcH3 cHRg== X-Gm-Message-State: AIkVDXKFSL+BJIGVlYpf1Bv+78Gsy26RiJjkBcoaCIU21JwP6iddlnTjYn31utjSg3p5o/ywodRxQO+dZYd+NQ== X-Received: by 10.31.140.87 with SMTP id o84mr9107111vkd.133.1484304409231; Fri, 13 Jan 2017 02:46:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.48.213 with HTTP; Fri, 13 Jan 2017 02:46:48 -0800 (PST) In-Reply-To: References: From: Damien Fleuriot Date: Fri, 13 Jan 2017 11:46:48 +0100 Message-ID: Subject: Re: tunneling ports To: Christoph Kukulies Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2017 10:46:50 -0000 On 13 January 2017 at 11:13, Christoph Kukulies wrote: > I don't know if this could be easily achieved, but imagine the situation that you are in a network and the only ports being allowed for outgoing traffic into the Internet are ports 80 and 443. > > Now you would like to access mailservers in the Internet to read your Email. Ports 993, 587, 465,25. 22 wiuld be desirable,too. > > What I have is an outside server into which I could tunnel. > > Is there any piece of software allowing me to divert ports into the outside server through some kind of server? > Well well... somebody's trying to circumvent their netadmin's firewalls are they not ? It is not my place to question your motives, all I can offer is technical advice along with a warning. Warning first, these restrictions are in place for a reason, circumventing them puts both your employer's infrastructure and your work contract at risk. Technical advice now, get an OpenSSH server listening on port 443, and tunnel your ports over SSH. >From that point, you can do whatever you like. A quick google search yields the following examples : http://blog.trackets.com/2014/05/17/ssh-tunnel-local-and-remote-port-forwarding-explained-with-examples.html If your netadmin has somewhat advanced measures in place such as a transparent SSL proxy, you will get caught. And if I caught you doing that, I'd nuke your account on the spot. Just FYI ;)