[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/init.d/network is too simple?

On Fri, Apr 16, 1999 at 11:18:42AM -0700, Darren O. Benham wrote:

> On Fri, Apr 16, 1999 at 12:45:09PM -0400, shaleh@clifford.livenet.net wrote:
> > However, I would like some explanation of why it is felt that change is needed.
> I don't know if this follows exactly along the same lines.. but there was a
> time recently that I wished I could do a "./network stop" or "./network
> restart" the way other init.d scripts can.   
> I was tweeking my network setup and everytime I made a change, I had to
> hand reverse settings or reboot to check the settings.

In my /etc/init.d/network, I use commands like this:

	ifconfig eth0 down
	ifconfig eth1 down
	# flush the firewall
	ipchains -F
	# set up the firewall
	# restart interfaces
	ifconfig ...
	route ...

This guarantees that running /etc/init.d/network flushes all my network
settings and restores them to defaults.  Since I do a lot of experimentation
(working on the Tunnel Vision VPN software, etc) this saves me a lot of

Have fun,


Reply to: