Koozali.org: home of the SME Server

Disabling auto dial

Stephen Kearon

Disabling auto dial
« on: September 15, 1999, 05:27:53 AM »
How do I stop autodialling the internet?

If a school environment we want to be able to issue a command to connect the to net and another to disconnect

Either at the server or via Telnet from the teacher's workstation.

Kim Morrison

RE: Disabling auto dial
« Reply #1 on: September 15, 1999, 06:16:05 PM »
Dear Stephen,

Our networking relies on the fact that it can bring up the line whenever it needs to send a TCP packet.  So, switching to manual control would break other parts of our system.

We're exploring providing more user control over the connection in the next version of the system.  We haven't yet decided whether we'll ever have manual control over connect/disconnect.

Sorry about that...

Kim

Stephen Kearon

RE: Disabling auto dial
« Reply #2 on: September 16, 1999, 02:11:43 AM »
Thanks for the reply, from a school perspective having the ability to enable and disable internet access would be a major plus

Are they any quick 'hacks' that could be scripted ensure dialout would fail and then reset to normal as required?

Kim Morrison wrote:
-------------------------------
Dear Stephen,

Our networking relies on the fact that it can bring up the line whenever it needs to send a TCP packet.  So, switching to manual control would break other parts of our system.

We're exploring providing more user control over the connection in the next version of the system.  We haven't yet decided whether we'll ever have manual control over connect/disconnect.

Sorry about that...

Kim

arthur

RE: Disabling auto dial
« Reply #3 on: September 16, 1999, 08:45:34 PM »
Hi Stephen and all others,

Well you could try this as a quick 'n' dirty hack:

Log yourself in into the linux box with root rights. Change to /etc/rc.d/init.d and move diald to diald.old:

   mv diald diald.old

Now, start your favourite editor and create a file "diald" which looks like this:

#!/bin/bash

. /etc/rc.d/init.d/functions

case "$1" in

start)
        echo -n "Starting diald: "
        echo 7 > /proc/sys/net/ipv4/ip_dynaddr
        daemon /usr/sbin/diald
        echo "done"
        ;;

stop)
        echo -n "Stopping diald: "
        echo 0 > /proc/net/ipv4/ip_dynaddr
        killproc diald
        echo "done"
        ;;

*)
        echo "Usage: diald {start|stop}"
        exit 1
esac
exit 0

Save & quit.

Reboot your machine for best results :)

Now, whenever you want to stop the autodialing process, just log on to the box and execute:
   /etc/rc.d/init.d/diald stop
To start it again...
   /etc/rc.d/init.d/diald start

It works fine for me, hope it works for you as well.

bibi,
arthur

Kim Morrison

RE: Disabling auto dial
« Reply #4 on: September 16, 1999, 08:54:45 PM »
Hi all,

Let us know how this works for you. We'll evaluate this solution as time permits.

Thanks, Arthur!

Kim

Roger Wrethman

RE: Disabling auto dial
« Reply #5 on: September 19, 1999, 10:18:33 PM »
I just switched off the Modem ;-)

Kim Morrison

RE: Disabling auto dial
« Reply #6 on: September 19, 1999, 10:21:50 PM »
LOL!!