Thread View: news.software.nntp
8 messages
8 total messages
Started by Dan Jacobson
Mon, 24 Jun 2002 23:45
iptables: my ISP's NNTP server doesn't talk back now
Author: Dan Jacobson
Date: Mon, 24 Jun 2002 23:45
Date: Mon, 24 Jun 2002 23:45
16 lines
1508 bytes
1508 bytes
Fellas, I used "Rusty's Really Quick Guide To Packet Filtering" i.e. /usr/share/doc/iptables/html/packet-filtering-HOWTO.html#toc5 on a system near you, and I ended up locking myself out of my ISP's news server. Not other news servers, not ftp, just my ISP's private server: $ telnet news.hinet.net 119 Trying 168.95.195.16... Connected to netnews.hinet.net. Escape character is '^]'. help -------- and then it just hangs. When I remove all the rules there is no problem. Help. -- http://jidanni.org/ Taiwan(04)25854780
Re: iptables: my ISP's NNTP server doesn't talk back now
Author: Tony Curtis
Date: Tue, 25 Jun 2002 00:04
Date: Tue, 25 Jun 2002 00:04
20 lines
1847 bytes
1847 bytes
>> On 25 Jun 2002 07:45:32 +0800, >> Dan Jacobson <jidanni@dman.ddts.net> said: > Fellas, I used "Rusty's Really Quick Guide To Packet > Filtering" > i.e. /usr/share/doc/iptables/html/packet-filtering-HOWTO.html#toc5 > on a system near you, and I ended up locking myself out > of my ISP's news server. Not other news servers, not > ftp, just my ISP's private server: $ telnet > news.hinet.net 119 Trying 168.95.195.16... Connected to > netnews.hinet.net. Escape character is '^]'. help > -------- and then it just hangs. When I remove all the > rules there is no problem. It's probably trying to do an identd lookup on you (see "auth" entry in /etc/services). hth t
Re: iptables: my ISP's NNTP server doesn't talk back now
Author: Kasper Dupont
Date: Tue, 25 Jun 2002 01:24
Date: Tue, 25 Jun 2002 01:24
17 lines
1616 bytes
1616 bytes
Dan Jacobson wrote: > > $ telnet news.hinet.net 119 > Trying 168.95.195.16... > Connected to netnews.hinet.net. > Escape character is '^]'. > help There is already a problem here, you should have recieved a 200 or 201 message at once. (Though I have seen servers accepting the TCP connection quickly and then hanging a long time before you get the 200 message.) -- Kasper Dupont -- der bruger for meget tid p� usenet. For sending spam use mailto:razor-report@daimi.au.dk
Re: iptables: my ISP's NNTP server doesn't talk back now
Author: BOUWSMA Beery
Date: Tue, 25 Jun 2002 07:44
Date: Tue, 25 Jun 2002 07:44
54 lines
3252 bytes
3252 bytes
Mojn %s wrote on %.3s, %lld Sep 1993 > Dan Jacobson wrote: > > > > $ telnet news.hinet.net 119 > > Trying 168.95.195.16... > > Connected to netnews.hinet.net. > > Escape character is '^]'. > > help > There is already a problem here, you should have recieved a > 200 or 201 message at once. (Though I have seen servers > accepting the TCP connection quickly and then hanging a long > time before you get the 200 message.) Well, not at once, but quickly. First the swerver needs to do a PTR lookup to decide if it wants to talk to you or not. It took only a couple seconds for me to get the response | Trying 168.95.195.16... | Connected to netnews.hinet.net. | Escape character is '^]'. | 502 You have no permission to talk. Goodbye. (Well, actually it was more than a couple seconds this time, after I would have hoped that their local DNS swerver would have cached my IP's PTR record for quick lookups...) If for some reason, the swerver you talk to isn't able to look up your PTR quickly, then in many cases you'll see a delay, assuming of course that your swerver needs or wants to do a lookup of your IP. This may happen if DNS is hosed somewhere. But in this case, what I saw soon after my attempt at connection showed that an ident query was attempted at me (I don't run an identd swerver myself)... | Jun 25 09:34:22 dastardly /kernel: Connection attempt to TCP 80.218.19.27:113 from 168.95.195.16:54431 flags:0x2 If you're behind a firewall or otherwise ignoring these requests, instead of refusing the connection attempt, then the sending end is going to wait a while until it decides it can't identify you, which is why our victim seemed to see nothing (probably after waiting a few minutes, the greeting would appear, but...) > Kasper Dupont -- der bruger for meget tid p� usenet. Such a thing is simply not possible... barry bouwsma, netscum
Re: iptables: my ISP's NNTP server doesn't talk back now
Author: Dan Jacobson
Date: Tue, 25 Jun 2002 14:16
Date: Tue, 25 Jun 2002 14:16
20 lines
1800 bytes
1800 bytes
OK, then can somebody tell me what parts of the iptables i can use until i figure out the "identd lookup" answer. Since i don't know what i'm doing all i could do is turn it all off. Dan> Fellas, I used "Rusty's Really Quick Guide To Packet Filtering" Dan> i.e. /usr/share/doc/iptables/html/packet-filtering-HOWTO.html#toc5 on Dan> a system near you, and I ended up locking myself out of my ISP's news Dan> server. Not other news servers, not ftp, just my ISP's private Dan> server: Dan> $ telnet news.hinet.net 119 Dan> Trying 168.95.195.16... Dan> Connected to netnews.hinet.net. Dan> Escape character is '^]'. Dan> help Dan> -------- Dan> and then it just hangs. When I remove all the rules there is no Dan> problem. Help. -- http://jidanni.org/ Taiwan(04)25854780
Re: iptables: my ISP's NNTP server doesn't talk back now
Author: Dan Jacobson
Date: Tue, 25 Jun 2002 14:46
Date: Tue, 25 Jun 2002 14:46
12 lines
1666 bytes
1666 bytes
B> | Jun 25 09:34:22 dastardly /kernel: Connection attempt to TCP 80.218.19.27:113 from 168.95.195.16:54431 flags:0x2 B> If you're behind a firewall or otherwise ignoring these requests, B> instead of refusing the connection attempt, then the sending end B> is going to wait a while until it decides it can't identify you, Odd, with my firewall down I can still use their netnews server, though I didn't have identd running. OK, I will run identd and see if it can get to it back thru the firewall (Rusty's ipchains rules). -- http://jidanni.org/ Taiwan(04)25854780
Re: iptables: my ISP's NNTP server doesn't talk back now
Author: Jeffrey M. Vinocur
Date: Tue, 25 Jun 2002 16:14
Date: Tue, 25 Jun 2002 16:14
18 lines
1683 bytes
1683 bytes
In article <87ptyfmokf.fsf@jidanni.org>, Dan Jacobson <jidanni@dman.ddts.net> wrote: >OK, then can somebody tell me what parts of the iptables i can use >until i figure out the "identd lookup" answer. Right now it's ignoring incoming connection attempts. You need for attempts on the identd port (113) to be refused instead. (The idea behind ident is that the server opens a connection to your machine and asks it which username is responsible for the incoming connection, that is, your NNTP. It can then log that username or otherwise use it in authentication.) -- Jeffrey M. Vinocur jeff@litech.org
Re: iptables: my ISP's NNTP server doesn't talk back now
Author: Jeffrey M. Vinocur
Date: Wed, 26 Jun 2002 04:13
Date: Wed, 26 Jun 2002 04:13
31 lines
2474 bytes
2474 bytes
In article <87n0tj8lh8.fsf@jidanni.org>, Dan Jacobson <jidanni@dman.ddts.net> wrote: >B> | Jun 25 09:34:22 dastardly /kernel: Connection attempt to TCP >80.218.19.27:113 from 168.95.195.16:54431 flags:0x2 > >B> If you're behind a firewall or otherwise ignoring these requests, >B> instead of refusing the connection attempt, then the sending end >B> is going to wait a while until it decides it can't identify you, > >Odd, with my firewall down I can still use their netnews server, >though I didn't have identd running. OK, I will run identd and see if >it can get to it back thru the firewall (Rusty's ipchains rules). No no, you don't need identd running (and it's probably not something you want listening to the world anyway). Your problems are that the news server attempts to contact your machine port 113, and gets no response...which in the TCP world means that you keep trying for a good while before giving up (if you wait a bit, say ten or fifteen minutes, you'll probably get a connection). The solution is to have your machine respond to the incoming connection (with a reset packet); you can either configure your firewall to do this, or allow connections on 113 (without running identd) so that the regular "connection refused" stuff happens normally. -- Jeffrey M. Vinocur jeff@litech.org
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