Networking Forums

Networking Forums > Computer Networking > Linux Networking > PPPD and idle counter!

Reply
Thread Tools Display Modes

PPPD and idle counter!

 
 
Theophanis Kontogiannis
Guest
Posts: n/a

 
      01-01-2004, 10:47 PM
Dear all,

I have set up a RH9 linux box as my home gw to the internet (it is also
print server, ntp server, etc...)

I can not figure out one thing. The man pages for pppd 2.4.1 say that the
<active-filter> "This option is currently only available under NetBSD,
and then only if both the kernel and pppd were compiled with PPP_FILTER
defined."

OK then. How do I make ppp drop the connection if all my PCs in the internal
network are shut? tcpdump reports any kind of broadcast traffic on the ppp0
interface coming from the ISP (including OSPF multicasts)

I could add a rule with iptables but that did not work. Would not the pppd
be the first to peek up the incoming broadcast as traffic (thus reseting the
idle counter) before the packets are filtered by any netfilter/iptables
rule?

How can I do that?

Sincerely
Theophanis

HAPPY NEW YEAR...........


 
Reply With Quote
 
 
 
 
Dragan Colak
Guest
Posts: n/a

 
      01-01-2004, 11:57 PM
On Fri, 02 Jan 2004 01:47:56 +0200, Theophanis Kontogiannis wrote:

> [...]
> OK then. How do I make ppp drop the connection if all my PCs in the
> internal network are shut? tcpdump reports any kind of broadcast traffic
> on the ppp0 interface coming from the ISP (including OSPF multicasts)
> [...]


There is a dial-on-demand option. Combined with the idle-timeout the
Internet connection should be up only if one of the computers needs it.

Dragan

 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      01-02-2004, 02:18 AM
Theophanis Kontogiannis <(E-Mail Removed)> wrote:

> I have set up a RH9 linux box as my home gw to the internet (it is also
> print server, ntp server, etc...)


> I can not figure out one thing. The man pages for pppd 2.4.1 say that the
> <active-filter> "This option is currently only available under NetBSD,
> and then only if both the kernel and pppd were compiled with PPP_FILTER
> defined."


The man pages are behind the code curve; the active-filter option works
for pppd 2.4.1 under Linux when compiled with PPP_FILTER defined.

> OK then. How do I make ppp drop the connection if all my PCs in the
> internal network are shut? tcpdump reports any kind of broadcast
> traffic on the ppp0 interface coming from the ISP (including OSPF
> multicasts)


Use the pppd idle option with the active-filter set to prevent inbound
traffic from resetting the idle timer (so that only outbound traffic
resets the timer).

> I could add a rule with iptables but that did not work. Would not
> the pppd be the first to peek up the incoming broadcast as traffic
> (thus reseting the idle counter) before the packets are filtered
> by any netfilter/iptables rule?


Correct.

> How can I do that?


See above. For active-filter examples see the web site in my signature.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSuse 11.1 Kinternet error: "pppd[0] died: pppd options error (exit code 2) Trevor Linux Networking 4 04-22-2009 06:31 PM
Traffic counter Trevor Broadband 3 11-14-2006 08:07 PM
Buying CAT 5 cable over the counter Steve Broadband 19 04-19-2006 08:33 PM
pppd doesn't reset idle-counter when there's traffic tobias@itservices.co.mz Linux Networking 3 09-08-2005 10:53 PM
PPPD server routing problem? Mandrake/mgetty/pppd/D-link router martin02 Linux Networking 17 10-06-2003 03:06 PM



1 2 3 4 5 6 7 8 9 10 11