🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82352

Re: inn2 debian - domain configuration

#82352
From: Julien ÉLIE
Date: Sat, 12 Dec 2009 17:00
31 lines
2451 bytes
> To my server I have connected 9 domains (root domains   domain.com etc.etc.). I would like to create restriction to 1 domain. I 
> mean server news should be reachable only by one domain.
>
> Right now I can connect to server using each domain. Is it possible to create something like virtual hosts for inn2 ?

Virtual hosts are used by HTTP.
A request by an HTTP client is for instance:

GET /page.html HTTP/1.1
Host: example.com
User-Agent: My Client

It is then easy for an HTTP server to know the virtual host.


That notion does not exist in NNTP.  The protocol does not specify
any host name when requesting an article, or connecting to a server.
It is done only with the IP of the server.

I do not see how you could achieve what you want to do.  The client will
connect to an IP address (returned by a DNS reverse of your domain).
Even iptables, before the request is received by INN, will not know the
domain name...
The IP header contains an IP address, not a host name.

-- 
Julien ÉLIE

« Je viens de rencontrer Isocèle : il a une idée pour un nouveau triangle. »
  (Woody Allen) 
Technical Details
Message-ID: <hg0i6h$44d$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <hft9ed$qru$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Message-ID: <hg0i6h$44d$1@news.trigofacile.com>
Subject: Re: inn2 debian - domain configuration
Date: Sat, 12 Dec 2009 18:00:01 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <hft9ed$qru$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 31
NNTP-Posting-Host: aaubervilliers-151-1-64-144.w83-112.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="ISO-8859-15";
 reply-type=response
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1260637202 4237 83.112.159.144 (12 Dec 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sat, 12 Dec 2009 17:00:02 +0000 (UTC)
Injection-Date: Sat, 12 Dec 2009 17:00:02 +0000 (UTC)
In-Reply-To: <hft9ed$qru$1@inews.gazeta.pl>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18005
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005