a couple of easy ones? (log on scripts)
Hi All Hopefully a couple of easy ones.... 1. When I restart the server (not unless I have to) I have to manaully do two things: firstly do route add default gw etc to let the network find the router and I have to mount all the CD images I have. Where do I put this info to boot automatically? 2. The school office has a small windows file and print sharing network and use modems to dial out to the net. Is it possible/easy/advisable to give them access through my ISDN router seeing as this is a prepaid 24/7 line. thanks as always James Carter South Lee School
James & Cybèle wrote:
1. When I restart the server (not unless I have to) I have to manaully do two things: firstly do route add default gw etc to let the network find the router
Depends on distro. Somewhere in the bootup scripts.
and I have to mount all the CD images I have. Where do I put this info to boot automatically?
/etc/fstab, I believe. -- Chris Howells E-Mail: chris.h@gmx.co.uk ICQ: 93699029 Web: http://www.chowells.uklinux.net
On Wednesday 09 May 2001 9:12 pm, James & Cybèle wrote:
Hi All Hopefully a couple of easy ones....
1. When I restart the server (not unless I have to) I have to manaully do two things: firstly do route add default gw etc to let the network find the router and I have to mount all the CD images I have. Where do I put this info to boot automatically?
On almost all varients/distributions there is a file /erc/rc.local. This file is specifically for commands that need to be run every reload - after all the other rc files have run (i.e. network is up etc). The default route should however be already set if your network config is correct. You would be better off using the correct config tool to set this, e.g. yast, linuxconf etc., rather than setting it manually. Also, you should be able to get the CD images to mount automatically, just like the other mounts. Have a look at /etc/fstab.
2. The school office has a small windows file and print sharing network and use modems to dial out to the net. Is it possible/easy/advisable to give them access through my ISDN router seeing as this is a prepaid 24/7 line.
You are basically talking about using your Linux box as a firewall/router. This is what lots of people do. The only real down-side is that you will end up sharing your 64K/128K with everyone else. The plus points are:- Reduced charges - one phone bill Safer - Windows is not visible to the world Firewall rules - you have total control over what can and can't get in/out of your site. It's a while since I set this sort of thing up, but the things you need to look out for are 'IP Forwarding', IPChains, firewall and masquerading* in the config programs. * masquerading is merely a method of hiding private IP addresses by sharing on public IP address.
thanks as always
James Carter South Lee School
-- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
On Wed, 9 May 2001, [iso-8859-1] James & Cyb�le wrote:
Hi All Hopefully a couple of easy ones....
1. When I restart the server (not unless I have to) I have to manaully do two things: firstly do route add default gw etc to let the network find the router and I have to mount all the CD images I have. Where do I put this info to boot automatically?
If you are using SuSE then the config is in /etc/route.conf, but it is simpler to set it using yast.
2. The school office has a small windows file and print sharing network and use modems to dial out to the net. Is it possible/easy/advisable to give them access through my ISDN router seeing as this is a prepaid 24/7 line.
The short answer is yes, but how practical it is depends on your network configuration (IP ranges etc.) and whether you want to keep the two networks independent. As an example, most of our secondary schools use this idea with two network cards in a linux proxy and the ISDN router on the office side. Both networks use private IP ranges and the linux box does *not* route between them. The router is set to use NAT to translate between the internal private IP and the external net. All PC's on both networks are set to use the linux box as proxy. This configuration has the advantage that if pupils try to bypass the filtering and logging in the proxy, then they lose their access completely. The proxy is also the mail server for the school's own domain. I don't know if this is useful - if you give us a bit more detail about how your network is set up now it would be easier.
thanks as always
James Carter South Lee School
____________________________________ Giles Nunn - Network Manager Carms Schools ICT Development Centre Tel: +44 01239 710662 Fax: 710985 ____________________________________
participants (4)
-
Chris Howells
-
Gary Stainburn
-
Giles Nunn
-
James & Cybèle