diald, pppd, dial on demand and other stuffs

diald, pppd, dial on demand and other stuffs

Post by Paulo Garci » Fri, 09 Jul 1999 04:00:00



I still have problems about diald that dials every time.

With this forum help I reduced the situations that the diald dials, but
it stills happened.

I try to indentify tcpdump messages but I can't understand how to
"convert" the informations to standard.filter format.

I'm thinking about workarround solutions because I have only needs to
access http pages, send and receive emails, access newsserver and
transfer FTP files. Why "we" cannot configure the standard.filter to
accept only these net messages instead accept all and filter "almost"
all.

In my system I use samba (essential), sendmail. I already disabled
named.

I have some additional questions:

1> If I use pppd dial on demand feature (I need to recompile my kernel
to do that), can I solve my problems or I have the same filtering needs?

2> I already put a message asking about to create a script that dials
and activate pppd from my intranet. I can create a little program that
send to my server a message to activate a cgi-script and this script
connect to internet (simulating Windows local dialup connection). I
have only a problem: I'm very new with linux and I don't know how can I
start to do that. Any ideas?

3> Anybody has some additional ideas? :)

Thanks in advance!

--
===========================
[]'s
Paulo Garcia
Digivoice Eletronica

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

diald, pppd, dial on demand and other stuffs

Post by Mike Jagd » Fri, 09 Jul 1999 04:00:00



>I still have problems about diald that dials every time.
>[...]
>I try to indentify tcpdump messages but I can't understand how to
>"convert" the informations to standard.filter format.

>I'm thinking about workarround solutions because I have only needs to
>access http pages, send and receive emails, access newsserver and
>transfer FTP files. Why "we" cannot configure the standard.filter to
>accept only these net messages instead accept all and filter "almost"
>all.

Sounds easy doesn't it? But once you look in to the protocols
you realise that it is practically impossible to fix the problem
solely in diald's filters. The usual cause of unexpected dials
is unexpected DNS look ups which may actually be relayed WINS
look ups. You can't simply block DNS look ups because that
means all the other protocols can never figure out the address
for a given hostname and they don't work. You have to identify
the specific DNS queries causing the problem and either fix
the misconfiguration that is causing them, handle them sensibly
(i.e. have a local named return an answer), or block them.

  (While it is, theoretically, possible to have diald peak inside
packets and block specific DNS queries that way lies insanity - very
quickly!)

Quote:>In my system I use samba (essential),

Hmmm, if you have Windows machines out there you can expect
"interesting" queries to happen...

Quote:>sendmail. I already disabled named.

That was a mistake. Running a local named and making sure it
is being used for all DNS look ups means you can simply turn
query logging on and get chapter and verse about what is
happening. Then you can have set it up to dump the bogus queries.

Quote:>I have some additional questions:

>1> If I use pppd dial on demand feature (I need to recompile my kernel
>to do that), can I solve my problems or I have the same filtering needs?

If you don't address the problem you won't solve it :-). The demand
is there because packets exist.

Quote:>2> I already put a message asking about to create a script that dials
>and activate pppd from my intranet. I can create a little program that
>send to my server a message to activate a cgi-script and this script
>connect to internet (simulating Windows local dialup connection). I
>have only a problem: I'm very new with linux and I don't know how can I
>start to do that. Any ideas?

Use a recent (0.99.1) version of diald from http://diald.unix.ch, run
it with the -demand option and simply echo "up" to the control fifo
when you want the link. Or run dctrl using the Windows version
of tcl/tk from ftp.scriptics.com. Watch the connection queue,
have named log queries, when you have things under control just
turn demand dialling on.

                                Mike

--
    A train stops at a train station, a bus stops at a bus station.
    On my desk I have a work station...
.----------------------------------------------------------------------.

|  Roan Technology Ltd.         |                                      |
|  2 Markham Mews, Broad Street |  Telephone:  +44 118 989 0403        |
|  Wokingham ENGLAND            |  Fax:        +44 118 989 1195        |
`----------------------------------------------------------------------'

 
 
 

diald, pppd, dial on demand and other stuffs

Post by Paulo Garci » Wed, 14 Jul 1999 04:00:00





> >2> I already put a message asking about to create a script that dials
> >and activate pppd from my intranet. I can create a little program
that
> >send to my server a message to activate a cgi-script and this script
> >connect to internet (simulating Windows local dialup connection). I
> >have only a problem: I'm very new with linux and I don't know how
can I
> >start to do that. Any ideas?

> Use a recent (0.99.1) version of diald from http://diald.unix.ch, run
> it with the -demand option and simply echo "up" to the control fifo
> when you want the link. Or run dctrl using the Windows version
> of tcl/tk from ftp.scriptics.com. Watch the connection queue,
> have named log queries, when you have things under control just
> turn demand dialling on.

Mike,

thanks for answer.

I try to download de 0.99.1 version and I have some problems to compile
it.

I edit and comment the first to lines in Makefile file and then I run
"make"

I have some compiler errors, mainly about netlink.h location. I was fix
it.

After I have two erros that I can't fix:

tap.c - line 81 - NETLINK_TAPBASE undeclared
tap.c - line 83 - storage size of 'nl' isn't known.

Do you know what's the problem...

Thanks in advance!

--
===========================
[]'s
Paulo Garcia
Digivoice Eletronica

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

diald, pppd, dial on demand and other stuffs

Post by Mike Jagd » Fri, 16 Jul 1999 04:00:00



>I try to download de 0.99.1 version and I have some problems to compile
>it.

>I edit and comment the first to lines in Makefile file and then I run
>"make"

>I have some compiler errors, mainly about netlink.h location. I was fix
>it.

>After I have two erros that I can't fix:

>tap.c - line 81 - NETLINK_TAPBASE undeclared
>tap.c - line 83 - storage size of 'nl' isn't known.

>Do you know what's the problem...

No. There is no tap.c in 0.99.1.

                                Mike

--
    A train stops at a train station, a bus stops at a bus station.
    On my desk I have a work station...
.----------------------------------------------------------------------.

|  Roan Technology Ltd.         |                                      |
|  2 Markham Mews, Broad Street |  Telephone:  +44 118 989 0403        |
|  Wokingham ENGLAND            |  Fax:        +44 118 989 1195        |
`----------------------------------------------------------------------'

 
 
 

1. Is there a port for diald (or does OpenBSD's pppd support dial on demand)?

I'm going to set up a 486 box as a firewall so would like it to do
dialing on demand but a query on diald returns nothing:

# cd /usr/ports/                                                              
# make search key="diald"

is there a way to do it via pppd ? TIA.

--

<<      LINUX: the choice of a GNU generation     >>
<<   For my real address... ask the Balrog.       >>
* Sostenete la Lega per la Soppressione dei Troll *

2. Switching colour depth when using xdm

3. pppd demand; dialing and dialing

4. Problems when adding a second SCSI-disc (with net, with discs)

5. PPPD demand keeps dialing and dialing

6. 2.5.70-bk6 make xconfig fails

7. demand dialing PPPD always dials upon start

8. PRINTER QUESTION

9. demand dialing vs. the other demand dialing

10. ANNOUNCE: diald-config-1.2.1 -- demand dialing made easy

11. IS PPP 2.3.5 dial on demand better than diald?

12. pppd demand vs diald

13. pppd -demand. Is it better than running diald?