public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Olaf Niermann" <lists@cymeleons.de>
To: <gentoo-user@lists.gentoo.org>
Subject: RE: [gentoo-user] Shell through the web
Date: Wed, 12 Oct 2005 08:21:55 +0200	[thread overview]
Message-ID: <00df01c5cef5$3fbae710$2101a8c0@cymeleons.de> (raw)
In-Reply-To: <434BA40A.30808@shic.co.uk>

Hi Steve,

> A question that I've recently been mulling is how I can retain this 
> invaluable capability to accept remote SSH connections on 
> port 443 - but 
> also run a standard HTTPS website without needing another public IP 
> address.  I fiddled with netcat and discovered that the two protocols 
> (SSH and HTTPS) behave quite differently in spite of both being 
> 
>            +-------+         +-----+---443-->[apache]
>  O---443-->|NAT-BOX|--1443-->|  ?  |
>            +-------+         +-----+---22--->[sshd]
> 

Maybe the 'Layer-7 Filter' [1] extension for netfilter/iptables can do the
recognition of the service (ssh/https) for you. Only from theory then just
two destination NAT (DNAT) rules in the prerouting NAT chain from iptables
might do all the work for you.


[1] http://l7-filter.sourceforge.net

Also there are two examples of patterns that match against the ssh and ssl
service can be found here: http://l7-filter.sourceforge.net/protocols

Regards,
Olaf Niermann

-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2005-10-12  6:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-11  4:21 [gentoo-user] Shell through the web James Colby
2005-10-11  4:31 ` W.Kenworthy
2005-10-11 11:37   ` Steve [Gentoo]
2005-10-11 12:19     ` Dave Nebinger
2005-10-11 17:16       ` [gentoo-user] About a proxy-like idea... (was Shell through the web) Steve [Gentoo]
2005-10-12  6:21     ` Olaf Niermann [this message]
2005-10-11  6:19 ` [gentoo-user] Shell through the web Christoph Gysin
2005-10-11  7:56 ` Drew Tomlinson
2005-10-11 11:10 ` John Jolet
2005-10-12  7:11 ` Daevid Vincent
2005-10-12 14:37   ` Willie Wong
2005-10-12 11:22 ` Ralf Fischer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00df01c5cef5$3fbae710$2101a8c0@cymeleons.de' \
    --to=lists@cymeleons.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox