At 21:37 02.11.99 +0100, you wrote:
sometimes my computer dial again after hanging up if I use netstat -p -N I see that some sockets are not closed (even if the program has exited) they are in FIN_WAIT1 state
Do somebody know why ?
This has been a subject in this and other mailing lists before. The reason of unclosed connections causing this unwanted spontaneuos dialing seems to be that some processes (Netscape and FTP were often mentioned) keep their connections open while isdn4linux hangs up after some period of no traffic. When the process tries to shut down it´s still open connection it sends a packet to the partner process somewhere in the internet. This packet causes a new ISDN connection to your ISP (->dialing). Unfortunately your ISP assigns a new dynamic ip number so the partner process is unable to identify the packet as a shutdown packet of the open connection. Since there is no answer the process keeps on sending shutdown packets causing more unwanted ISDN connection (-> more dialing). And since it is unlikely that your ISP assigns you the same dynamic ip number that you had when the process opened the connection this games will only end when the process gives up (ca. 30 min.).
Can I force the socket to close ? (I use a fritz card A1 with suse 6.2) Or at least to do not dial again ?
There are some solutions to this problem. Consult the SuSE support db at http://www.suse.de/. Since all solutions I found dealt with ip masquerading (which I don´t use) I wrote a perl script which does the following: 1. after hangup (in /etc/ppp/ip-down) all ip connections with the recently used dynamic ip number are identified in the output of "netstat -n --ip" 2. for each of these connections a firewall DENY rule is inserted with ipchains and as well stored in a file "X". 3. everytime the perl script is executed (in ip-down) it checks whether the connections listed in this file "X" are still listed by netstat. If not then the respected DENY rule is deleted in ipchains and in file "X". The perl script is quite big so I don´t post it with this article. I will mail it on request. ----------------- Klaus Moysich Wilhelm-Dresing-Str. 10 D 44229 Dortmund Fon: +49 231 731053