Re: question about on-demand connection to network with modem

From: Clifford Kite (kite_at_see.signature.id)
Date: 06/24/05


Date: Fri, 24 Jun 2005 15:01:27 -0500

insomniux <mike.bosschaert@hccnet.nl> wrote:

> The only problem I have is that there seem to be other processes
> which are trying to connect to the network, resulting in telephone
> connections every couple of minutes. So far I have not been able
> to identify the process which activates the modem connection.

Sounds like garbage sent by Microsoft hosts on a LAN.

tcpdump -i ppp0
(May not work for PPP interfaces when compiled using a broken libpcap
version, e.g., libpcap-0.8.3)

netstat -tenup

> My question is: can I use iptables to block all requests to ppp0,
> except if the request comes from my lan (ip 192.168.0.3). Or is it
> possible to tell iptables to start a shellscript to start the
> connection when a request is made from the internal ip to ppp0?

How can Internet bound requests not come from a LAN host?

-- 
Clifford Kite                Email: "echo xvgr_yvahk-ccc@ri1.arg|rot13"