Koozali.org: home of the SME Server
		Legacy Forums => General Discussion (Legacy) => Topic started by: Stephen Kearon 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.
- 
				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
- 
				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
- 
				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
- 
				Hi all,
 
 Let us know how this works for you. We'll evaluate this solution as time permits.
 
 Thanks, Arthur!
 
 Kim
- 
				I just switched off the Modem ;-)
			
- 
				LOL!!