Discussion:
Neews to accomodate multiple news servers from uu.net
(too old to reply)
The Doctor
2007-11-09 15:57:59 UTC
Permalink
Question:

From uu.net, I need to permit

newsXXXX.news.uu.net

with 198.6.0.o/24 .

What do I need to do to get this correct for incoming.comf?
--
Member - Liberal International
This is ***@nl2k.ab.ca Ici ***@nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Voting Canadians vote anyone but Harper Cronies!!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Alexander Bartolich
2007-11-10 16:55:17 UTC
Permalink
Post by The Doctor
[...]
Post by The Doctor
From uu.net, I need to permit
newsXXXX.news.uu.net
with 198.6.0.o/24 .
What do I need to do to get this correct for incoming.comf?
I seriously doubt that any peer has more than 200 NNTP outlets.

news0000.news.uu.net A 198.6.0.101
news0001.news.uu.net A 198.6.0.102
news0002.news.uu.net A 198.6.0.103
news0003.news.uu.net A 198.6.0.104
news0004.news.uu.net A 198.6.0.105
news0005.news.uu.net A 198.6.0.106
news0006.news.uu.net does not exist (Authoritative answer)

So actuall we are speaking of 6 hosts, not 256.
If your peer insists on changing IP adresses than take the host name.

--
The Doctor
2007-11-10 20:07:47 UTC
Permalink
Post by Alexander Bartolich
Post by The Doctor
[...]
Post by The Doctor
From uu.net, I need to permit
newsXXXX.news.uu.net
with 198.6.0.o/24 .
What do I need to do to get this correct for incoming.comf?
I seriously doubt that any peer has more than 200 NNTP outlets.
news0000.news.uu.net A 198.6.0.101
news0001.news.uu.net A 198.6.0.102
news0002.news.uu.net A 198.6.0.103
news0003.news.uu.net A 198.6.0.104
news0004.news.uu.net A 198.6.0.105
news0005.news.uu.net A 198.6.0.106
news0006.news.uu.net does not exist (Authoritative answer)
So actuall we are speaking of 6 hosts, not 256.
If your peer insists on changing IP adresses than take the host name.
Well news.uu.net in the USA has moved to distriuted NNTP distribution
and what their customers to move to 198.6.0.0/24 .

I got a news0905.news.uu.net and news0906.news.uu.net .

This fix is needed right away as some ofthe big distributors
can move in that direction.

IF we can only get incoming.conf to adjust accordingly.
Post by Alexander Bartolich
--
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
Member - Liberal International
This is ***@nl2k.ab.ca Ici ***@nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Voting Canadians vote anyone but Harper Cronies!!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Alexander Bartolich
2007-11-10 21:01:56 UTC
Permalink
Post by The Doctor
[...]
Well news.uu.net in the USA has moved to distriuted NNTP distribution
and what their customers to move to 198.6.0.0/24 .
Well, it's simple to create a list of all 256 addresses:

seq 0 1 255 | xargs printf "198.6.0.%d, "
Post by The Doctor
I got a news0905.news.uu.net and news0906.news.uu.net .
That's exactly two host names making two entries in incoming.conf
If these names are rotated then you need to let innd resolve the
new value.

ctlinnd -t 300 -s reload incoming.conf "flush cache"
Post by The Doctor
This fix is needed right away as some ofthe big distributors
can move in that direction.
IF we can only get incoming.conf to adjust accordingly.
I still don't understand the problem.

--
The Doctor
2007-11-10 22:46:31 UTC
Permalink
Post by Alexander Bartolich
Post by The Doctor
[...]
Well news.uu.net in the USA has moved to distriuted NNTP distribution
and what their customers to move to 198.6.0.0/24 .
seq 0 1 255 | xargs printf "198.6.0.%d, "
Post by The Doctor
I got a news0905.news.uu.net and news0906.news.uu.net .
That's exactly two host names making two entries in incoming.conf
If these names are rotated then you need to let innd resolve the
new value.
ctlinnd -t 300 -s reload incoming.conf "flush cache"
Post by The Doctor
This fix is needed right away as some ofthe big distributors
can move in that direction.
IF we can only get incoming.conf to adjust accordingly.
I still don't understand the problem.
What if they change the class C for news servers?
Post by Alexander Bartolich
--
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
Member - Liberal International
This is ***@nl2k.ab.ca Ici ***@nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Voting Canadians vote anyone but Harper Cronies!!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Julien ÉLIE
2007-11-10 20:45:27 UTC
Permalink
Hi,
Post by The Doctor
Well news.uu.net in the USA has moved to distriuted NNTP distribution
and what their customers to move to 198.6.0.0/24 .
This fix is needed right away as some of the big distributors
can move in that direction.
IF we can only get incoming.conf to adjust accordingly.
Perhaps incoming.conf should then use
MatchHost(char *hostlist, char *host, char *ip)
from lib/network.c instead of
RCaddressmatch(const struct sockaddr_storage *cp,
const struct sockaddr_storage *rp)

MatchHost("198.6.0.0", "198.6.0.101", "24") should indeed return true.

Regards,
--
Julien ÉLIE

« Ma parole... Vous êtes soûls ! Heu ! Sourds... » (Astérix)
The Doctor
2007-11-10 21:45:43 UTC
Permalink
Post by Julien ÉLIE
Perhaps incoming.conf should then use
MatchHost(char *hostlist, char *host, char *ip)
from lib/network.c instead of
RCaddressmatch(const struct sockaddr_storage *cp,
const struct sockaddr_storage *rp)
MatchHost("198.6.0.0", "198.6.0.101", "24") should indeed return true.
In CURRENT, you can use network_addr_match, which should do the right
thing.
Can this be added to STABLE?
--
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
Member - Liberal International
This is ***@nl2k.ab.ca Ici ***@nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Voting Canadians vote anyone but Harper Cronies!!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Russ Allbery
2007-11-10 20:44:20 UTC
Permalink
Post by The Doctor
From uu.net, I need to permit
newsXXXX.news.uu.net
with 198.6.0.o/24 .
What do I need to do to get this correct for incoming.comf?
List all 255 IP addresses in incoming.conf. It doesn't currently support
range matching. (readers.conf does, but that doesn't help.)
--
Russ Allbery (***@stanford.edu) <http://www.eyrie.org/~eagle/>

Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
The Doctor
2007-11-10 21:44:41 UTC
Permalink
Post by Russ Allbery
Post by The Doctor
From uu.net, I need to permit
newsXXXX.news.uu.net
with 198.6.0.o/24 .
What do I need to do to get this correct for incoming.comf?
List all 255 IP addresses in incoming.conf. It doesn't currently support
range matching. (readers.conf does, but that doesn't help.)
That is a bit much and I have to say I am disappointed that news.uu.net
has chosen the path of distributed servers which makes it a bit complicated
for devleopped ( I am certain other news manufactureres are not going to
laugh.)

IS there any way to adjust incoming.conf so that
we can use

peer *.distributed.incoming {
hostname: *.distributed.incoming
max-connections: >0
}


IT was bad enough MCI Canada forgot to mention about the DNS server
changes which caused the initial failures in innfeed
and I thank Mr. Vinocur for that.
Post by Russ Allbery
--
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
Member - Liberal International
This is ***@nl2k.ab.ca Ici ***@nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Voting Canadians vote anyone but Harper Cronies!!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
The Doctor
2007-11-10 22:50:53 UTC
Permalink
Post by The Doctor
Post by The Doctor
From uu.net, I need to permit
newsXXXX.news.uu.net
with 198.6.0.o/24 .
What do I need to do to get this correct for incoming.comf?
You need 254(6?) entries in your incoming.conf file.
Or do some magic in your firewall or nameserver setup.
You can configure iptables/SNAT, ipfilter/map, pf/nat etc to map
all of 198.6.0.0/24 source addresses to 1 address that your news server
will accept. It needs a firewall / NAT box *before* your server.
I am not into this method.
You can also use some BIND's features. See BIND's `view' statement.
peer uunet {
hostname: newsXXXX.news.uu.net.FAKE
}
view uunet_for_doctor_inn {
match-clients { IP-address_doctor_newsserver; };
zone "newsXXXX.news.uu.net.FAKE" {
type master;
file "zone-file";
...
};
};
[... SOA and NS records ...]
And so on.
I never tested such config but I think it could be working:)
Or what about picking the record up from uu.net?
-Mirek
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
Member - Liberal International
This is ***@nl2k.ab.ca Ici ***@nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Voting Canadians vote anyone but Harper Cronies!!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
The Doctor
2007-11-11 05:03:59 UTC
Permalink
Post by The Doctor
Post by The Doctor
Post by The Doctor
From uu.net, I need to permit
newsXXXX.news.uu.net
with 198.6.0.o/24 .
What do I need to do to get this correct for incoming.comf?
You need 254(6?) entries in your incoming.conf file.
Or do some magic in your firewall or nameserver setup.
You can configure iptables/SNAT, ipfilter/map, pf/nat etc to map
all of 198.6.0.0/24 source addresses to 1 address that your news server
will accept. It needs a firewall / NAT box *before* your server.
I am not into this method.
You can also use some BIND's features. See BIND's `view' statement.
peer uunet {
hostname: newsXXXX.news.uu.net.FAKE
}
view uunet_for_doctor_inn {
match-clients { IP-address_doctor_newsserver; };
zone "newsXXXX.news.uu.net.FAKE" {
type master;
file "zone-file";
...
};
};
[... SOA and NS records ...]
And so on.
I never tested such config but I think it could be working:)
Or what about picking the record up from uu.net?
-Mirek
Right let me put some perspective on this.

I am a MCI Canada customer and the only customer using their NNTP server
for push/push services.


I also use their DNS servers upstream.

The big problem was that MCI Cnada did forget to tell me
about changing my nameservers according and I still
like to thank Jeff Vinocur for pointing out the DNS issue.

Add one more issue:

MCI Canada is phasing out the NNTP Server as its use has dwindled
so more me onto the USA server(S).

SO from the USA I get:

1)

At Verizon, news is received via NNTP on the host <custID>.inbound.news.uu.net.
This is the only system that will accept incoming NNTP traffic. Only Verizon
customers with active newsfeeds may feed to this host. In order to send a
feed to <custID>.inbound.news.uu.net, Verizon must have the fully qualified
domain name of the host that will be feeding us. You may specify up to six (6)
hosts. All servers feeding to <custID>.inbound.news.uu.net must be directly
administered by the customer.

When sending news to <custID>.inbound.news.uu.net, please send only articles
with less than 3 hops in the path, i.e. articles which have passed through a
maximum of three news servers (excluding your own). This option should be
configurable for the news software you are using. Please refer to your
software documentation. For those using INN, specifying H3 in field 3 of
the newsfeed entry in the newsfeeds file will do this. This is what it
would look like:

If your newsfeeds entry for your feed to Verizon was:

uunet:*:Tf,Wmn:innfeed
To hop-limit the feed to a maximum of 3 hops, change the entry to:

uunet:*:Tf,Wmn,H3:innfeed

We have a number of systems providing NNTP feeds to customers. Your
server(s)/firewall(s) must be configured to allow ICMP and NNTP access to
port 119 on your server from all of our servers including: nntp-out1.uu.net
thru nntp-out15.uu.net, each of which expands to approximately 17 servers.

Your server(s)/firewall(s) must also allow (and expect) periodic ICMP ping
and traceroutes from Verizon on port 119. We actively monitor our connections
to customers and, if we are unable to contact your server(s) by these
means, your newsfeed may be discontinued. We also monitor connectivity to
customer servers by opening an NNTP connection; your servers must expect
this activity periodically.

Our news servers are known as "uunet" in path entries.

Verizon always feeds each customer with at least two separate newsfeeds, and
on occasion, we may triple feed. This is done to improve the service
quality. In this context, a 'newsfeed' is a single flow of news articles
which may consist of one, two, or more separate TCP connections per
newsfeed (typically a minimum of one and a maximum of five). Your
server(s)/firewall(s) must allow for this. If you choose not to accept
multiple newsfeeds, the quality of your service is likely to be degraded.

end of 1)

Is INN STABLE capable of this?

2)

What we are seeing is that your servers (and/or Foirewall) are denying
+connections on Port 119.

newsping 204.209.81.3 news0804
Running nntpping on news0804.news.uu.net for 204.209.81.3 (204.209.81.3)

kshd: Permission denied.


newsping 204.209.81.3 news0805
Running nntpping on news0805.news.uu.net for 204.209.81.3 (204.209.81.3)

kshd: Permission denied.
Post by The Doctor
From the news server logs .....
Nov 5 14:30:21 sosrv10.sac1.maint.ops.us.uu.net newslink[28774]: [ID 702911
+news.notice] ns2.nk.ca:/prod/news/dqueue/Huca516916!.S00539 connect: 502 You
+have no permission to talk. Goodbye.
Nov 5 14:30:21 sosrv10.sac1.maint.ops.us.uu.net newslink[28775]: [ID 702911
+news.notice] ns2.nk.ca:/prod/news/dqueue/uca516916!.S01391 connect: 502 You
+have no permission to talk. Goodbye.
Nov 5 14:35:22 sosrv10.sac1.maint.ops.us.uu.net newslink[28841]: [ID 702911
+news.notice] ns2.nk.ca:/prod/news/dqueue/uca516916!.S01392 connect: 502 You
+have no permission to talk. Goodbye.
Nov 5 14:35:22 sosrv10.sac1.maint.ops.us.uu.net newslink[28840]: [ID 702911
+news.notice] ns2.nk.ca:/prod/news/dqueue/Huca516916!.S00540 connect: 502 You
+have no permission to talk. Goodbye.


Nov 5 14:35:22 sosrv11.sac1.maint.ops.us.uu.net newslink[14969]: [ID 702911
+news.notice] ns2.nk.ca:/prod/news/dqueue/Huca516916!.S00166 connect: 502 You
+have no permission to talk. Goodbye.
Nov 5 14:35:22 sosrv11.sac1.maint.ops.us.uu.net newslink[14970]: [ID 702911
+news.notice] ns2.nk.ca:/prod/news/dqueue/uca516916!.S01366 connect: 502 You
+have no permission to talk. Goodbye.
Nov 5 14:40:21 sosrv11.sac1.maint.ops.us.uu.net newslink[15011]: [ID 702911
+news.notice] ns2.nk.ca:/prod/news/dqueue/Huca516916!.S00166 connect: 502 You
+have no permission to talk. Goodbye.
Nov 5 14:40:22 sosrv11.sac1.maint.ops.us.uu.net newslink[15012]: [ID 702911
+news.notice] ns2.nk.ca:/prod/news/dqueue/uca516916!.S01367 connect: 502 You
+have no permission to talk. Goodbye.

End of 2)

Supposed this is fixed.

3)

You should be using "news.uu.net".

Name: news.uu.net
Addresses: 198.6.0.5, 198.6.0.6, 198.6.0.12, 198.6.0.13


end of 3)

Now you know why I say supposedly.

4)


For outbound (posting) you should use <customerID>.inbound.news.uu.net as in
"!@#$%^&*(.inbound.news.uu.net". Thjis is better than using thje generic term
+"news.uu.net".

For receiving feeds please allow Port 119 connections from any server in the IP
+Netblock
198.6.0.0/24. All Verizon Business news servers are in this IP netlbock.


end of 4)

I must be really be giving news.uu.net a bit of a time.

Point: This is the first time I have seen this model.
Has anyone else had to deal with this?

Can INN be up to the job to do this??
--
Member - Liberal International
This is ***@nl2k.ab.ca Ici ***@nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Voting Canadians vote anyone but Harper Cronies!!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Jeffrey M. Vinocur
2007-11-11 14:06:21 UTC
Permalink
Post by The Doctor
1)
At Verizon, news is received via NNTP on the host <custID>.inbound.news.uu.net.
Is INN STABLE capable of this?
Yes. Configure your innfeed.conf to feed news to that host.

And configure your newsfeeds with the H3 flag as they describe.
Post by The Doctor
We have a number of systems providing NNTP feeds to customers. Your
server(s)/firewall(s) must be configured to allow ICMP and NNTP access to
port 119 on your server from all of our servers including: nntp-out1.uu.net
thru nntp-out15.uu.net, each of which expands to approximately 17 servers.
You should be listing those 15 hostnames in incoming.conf, which will take
care of your issue regarding 256 IP addresses -- INN will resolve each of
the 15 hostnames to 17 IP addresses and keep track of them all for you.
Post by The Doctor
2)
Nov 5 14:30:21 sosrv10.sac1.maint.ops.us.uu.net newslink[28774]: [ID 702911
+news.notice] ns2.nk.ca:/prod/news/dqueue/Huca516916!.S00539 connect: 502 You
+have no permission to talk. Goodbye.
Supposed this is fixed.
This means you don't have their hosts listed in incoming.conf as above.
Post by The Doctor
3)
You should be using "news.uu.net".
Name: news.uu.net
Addresses: 198.6.0.5, 198.6.0.6, 198.6.0.12, 198.6.0.13
end of 3)
Now you know why I say supposedly.
I don't know what part of the config you're talking about here.
Post by The Doctor
4)
For outbound (posting) you should use <customerID>.inbound.news.uu.net as in
+"news.uu.net".
For receiving feeds please allow Port 119 connections from any server in the IP
+Netblock
198.6.0.0/24. All Verizon Business news servers are in this IP netlbock.
As I mentioned above, if you include the hostnames they mention, you will
get those IP addresses without needing to list them all manually.
Post by The Doctor
Point: This is the first time I have seen this model.
Has anyone else had to deal with this?
Can INN be up to the job to do this??
This is a pretty common model (although usually on a slightly smaller
scale) and INN can deal with it easily. I'm not sure why you're having so
much confusion -- can you point out exactly what parts you're having
trouble with?
--
Jeffrey M. Vinocur
***@litech.org
The Doctor
2007-11-11 15:50:30 UTC
Permalink
Post by Jeffrey M. Vinocur
Post by The Doctor
1)
At Verizon, news is received via NNTP on the host <custID>.inbound.news.uu.net.
Is INN STABLE capable of this?
Yes. Configure your innfeed.conf to feed news to that host.
And configure your newsfeeds with the H3 flag as they describe.
Post by The Doctor
We have a number of systems providing NNTP feeds to customers. Your
server(s)/firewall(s) must be configured to allow ICMP and NNTP access to
port 119 on your server from all of our servers including: nntp-out1.uu.net
thru nntp-out15.uu.net, each of which expands to approximately 17 servers.
You should be listing those 15 hostnames in incoming.conf, which will take
care of your issue regarding 256 IP addresses -- INN will resolve each of
the 15 hostnames to 17 IP addresses and keep track of them all for you.
Post by The Doctor
2)
Nov 5 14:30:21 sosrv10.sac1.maint.ops.us.uu.net newslink[28774]: [ID 702911
+news.notice] ns2.nk.ca:/prod/news/dqueue/Huca516916!.S00539 connect: 502 You
+have no permission to talk. Goodbye.
Supposed this is fixed.
This means you don't have their hosts listed in incoming.conf as above.
Post by The Doctor
3)
You should be using "news.uu.net".
Name: news.uu.net
Addresses: 198.6.0.5, 198.6.0.6, 198.6.0.12, 198.6.0.13
end of 3)
Now you know why I say supposedly.
I don't know what part of the config you're talking about here.
Post by The Doctor
4)
For outbound (posting) you should use <customerID>.inbound.news.uu.net as in
+"news.uu.net".
For receiving feeds please allow Port 119 connections from any server in the IP
+Netblock
198.6.0.0/24. All Verizon Business news servers are in this IP netlbock.
As I mentioned above, if you include the hostnames they mention, you will
get those IP addresses without needing to list them all manually.
Post by The Doctor
Point: This is the first time I have seen this model.
Has anyone else had to deal with this?
Can INN be up to the job to do this??
This is a pretty common model (although usually on a slightly smaller
scale) and INN can deal with it easily. I'm not sure why you're having so
much confusion -- can you point out exactly what parts you're having
trouble with?
Easy the news.uu.net servers that are sending to me
are news*.news.uu.net .

The outbound is no issue, that is solved.

The inbound is the only issue outstanding.

Let me see if I can implement the above mentioned.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
The Doctor
2007-11-11 16:07:55 UTC
Permalink
Post by Jeffrey M. Vinocur
Post by The Doctor
1)
At Verizon, news is received via NNTP on the host <custID>.inbound.news.uu.net.
Is INN STABLE capable of this?
Yes. Configure your innfeed.conf to feed news to that host.
And configure your newsfeeds with the H3 flag as they describe.
Post by The Doctor
We have a number of systems providing NNTP feeds to customers. Your
server(s)/firewall(s) must be configured to allow ICMP and NNTP access to
port 119 on your server from all of our servers including: nntp-out1.uu.net
thru nntp-out15.uu.net, each of which expands to approximately 17 servers.
You should be listing those 15 hostnames in incoming.conf, which will take
care of your issue regarding 256 IP addresses -- INN will resolve each of
the 15 hostnames to 17 IP addresses and keep track of them all for you.
Post by The Doctor
2)
Nov 5 14:30:21 sosrv10.sac1.maint.ops.us.uu.net newslink[28774]: [ID 702911
+news.notice] ns2.nk.ca:/prod/news/dqueue/Huca516916!.S00539 connect: 502 You
+have no permission to talk. Goodbye.
Supposed this is fixed.
This means you don't have their hosts listed in incoming.conf as above.
Post by The Doctor
3)
You should be using "news.uu.net".
Name: news.uu.net
Addresses: 198.6.0.5, 198.6.0.6, 198.6.0.12, 198.6.0.13
end of 3)
Now you know why I say supposedly.
I don't know what part of the config you're talking about here.
Post by The Doctor
4)
For outbound (posting) you should use <customerID>.inbound.news.uu.net as in
+"news.uu.net".
For receiving feeds please allow Port 119 connections from any server in the IP
+Netblock
198.6.0.0/24. All Verizon Business news servers are in this IP netlbock.
As I mentioned above, if you include the hostnames they mention, you will
get those IP addresses without needing to list them all manually.
Post by The Doctor
Point: This is the first time I have seen this model.
Has anyone else had to deal with this?
Can INN be up to the job to do this??
This is a pretty common model (although usually on a slightly smaller
scale) and INN can deal with it easily. I'm not sure why you're having so
much confusion -- can you point out exactly what parts you're having
trouble with?
Here is the part I am having a problem with:

Why can incoming.conf not acces

peer news*.news.uu.net{
hostname: news*.news.uu.net
max-connections: 5
}

or

peer *.uu.net{
hostname: *.uu.net
max-connections: 5
}

?

That would make everything easier.
--
Member - Liberal International
This is ***@nl2k.ab.ca Ici ***@nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Voting Canadians vote anyone but Harper Cronies!!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Felix Kronlage
2007-11-11 16:21:12 UTC
Permalink
Post by The Doctor
Why can incoming.conf not acces
peer news*.news.uu.net{
hostname: news*.news.uu.net
max-connections: 5
}
not that it works, but the wild-card does not
need to be in the peer name (peer ...), but only in
the hostname. but thats not at all helping right now,
so I crawl back under my rock.

felix
--
GPG/PGP: D9AC74D0 / 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0
http://hazardous.org/~fkr - ***@hazardous.org - ***@silc|irc - FKR-RIPE
https://www.bytemine.net/ - bytemine - BSD based Hosting/Solutions/Ideas
Miroslaw Luc
2007-11-10 22:40:29 UTC
Permalink
Post by The Doctor
Post by The Doctor
From uu.net, I need to permit
newsXXXX.news.uu.net
with 198.6.0.o/24 .
What do I need to do to get this correct for incoming.comf?
You need 254(6?) entries in your incoming.conf file.
Or do some magic in your firewall or nameserver setup.

You can configure iptables/SNAT, ipfilter/map, pf/nat etc to map
all of 198.6.0.0/24 source addresses to 1 address that your news server
will accept. It needs a firewall / NAT box *before* your server.

You can also use some BIND's features. See BIND's `view' statement.
In incoming.conf:
peer uunet {
hostname: newsXXXX.news.uu.net.FAKE
}
In named.conf:
view uunet_for_doctor_inn {
match-clients { IP-address_doctor_newsserver; };
zone "newsXXXX.news.uu.net.FAKE" {
type master;
file "zone-file";
...
};
};
In zone-file:
[... SOA and NS records ...]
$GENERATE 1-254 @ A 198.6.0.$

And so on.
I never tested such config but I think it could be working:)

-Mirek
Bill Davidsen
2007-11-11 02:16:16 UTC
Permalink
Post by The Doctor
Post by The Doctor
From uu.net, I need to permit
newsXXXX.news.uu.net
with 198.6.0.o/24 .
What do I need to do to get this correct for incoming.comf?
You need 254(6?) entries in your incoming.conf file.
STOP. You have given the best answer already. ;-)
Or do some magic in your firewall or nameserver setup.
Whenever you get tricky you risk making something which is unreliable,
or doesn't do quite what you think it does, or at minimum means having
someone else take over the work of administration is difficult at best.
See my comment on how it should work below.
You can configure iptables/SNAT, ipfilter/map, pf/nat etc to map
all of 198.6.0.0/24 source addresses to 1 address that your news server
will accept. It needs a firewall / NAT box *before* your server.
You can also use some BIND's features. See BIND's `view' statement.
peer uunet {
hostname: newsXXXX.news.uu.net.FAKE
}
view uunet_for_doctor_inn {
match-clients { IP-address_doctor_newsserver; };
zone "newsXXXX.news.uu.net.FAKE" {
type master;
file "zone-file";
...
};
};
[... SOA and NS records ...]
And so on.
I never tested such config but I think it could be working:)
I believe that what you want is to be able to do an expression match and
just say "news*.news.uu.net" and be done with it. The logic to support
that is (a) match the explicit IP if given by number, (b) match the IP
from a lookup of a name, and finally (c) do reverse DNS, match the name
to a pattern, and on match do a forward DNS lookup to verify that the
name and IP match, then put the IP in cache for future connections.

This adds a little overhead to the first lookup, but unless you reload
cache often (reread incoming.conf) this really is down in the noise. It
also avoids problems when a machine is suddenly moved to another CIDR block.
--
bill davidsen <***@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
The Doctor
2007-11-11 04:50:24 UTC
Permalink
Post by Bill Davidsen
Post by The Doctor
Post by The Doctor
From uu.net, I need to permit
newsXXXX.news.uu.net
with 198.6.0.o/24 .
What do I need to do to get this correct for incoming.comf?
You need 254(6?) entries in your incoming.conf file.
STOP. You have given the best answer already. ;-)
Or do some magic in your firewall or nameserver setup.
Whenever you get tricky you risk making something which is unreliable,
or doesn't do quite what you think it does, or at minimum means having
someone else take over the work of administration is difficult at best.
See my comment on how it should work below.
You can configure iptables/SNAT, ipfilter/map, pf/nat etc to map
all of 198.6.0.0/24 source addresses to 1 address that your news server
will accept. It needs a firewall / NAT box *before* your server.
You can also use some BIND's features. See BIND's `view' statement.
peer uunet {
hostname: newsXXXX.news.uu.net.FAKE
}
view uunet_for_doctor_inn {
match-clients { IP-address_doctor_newsserver; };
zone "newsXXXX.news.uu.net.FAKE" {
type master;
file "zone-file";
...
};
};
[... SOA and NS records ...]
And so on.
I never tested such config but I think it could be working:)
I believe that what you want is to be able to do an expression match and
just say "news*.news.uu.net" and be done with it. The logic to support
that is (a) match the explicit IP if given by number, (b) match the IP
from a lookup of a name, and finally (c) do reverse DNS, match the name
to a pattern, and on match do a forward DNS lookup to verify that the
name and IP match, then put the IP in cache for future connections.
This adds a little overhead to the first lookup, but unless you reload
cache often (reread incoming.conf) this really is down in the noise. It
also avoids problems when a machine is suddenly moved to another CIDR block.
Sounds simply enough but I think news.uu.net has moved to
a dynamic model like DHCP which
really tosses this model around.
--
Member - Liberal International
This is ***@nl2k.ab.ca Ici ***@nl2k.ab.ca
God, Queen and country! Beware Anti-Christ rising!
Voting Canadians vote anyone but Harper Cronies!!
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Loading...