🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Dzooo Fri, 11 Dec 2009 11:12
inn2 debian - domain configuration
#82345
Author: Dzooo
Date: Fri, 11 Dec 2009 11:12
22 lines
1759 bytes
Hi all,

     how to setup domain in inn2 configuration ?

In file /etc/news/inn.conf  I have found several places where can I put 
domain name:

pathhost:
domain:
server:

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 ?


cheers

Dlugasxx
Re: inn2 debian - domain configuration
#82352
Author: 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) 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads