LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2003, 05:38 AM   #1
blish_blash
Member
 
Registered: Dec 2003
Posts: 68

Rep: Reputation: 15
Question configuring network on startup


Hi,
I would be glad for advice on configuring the following network "things" on startup (I am not sure if I am using grep or lilo, if it is important tell me how to tell the difference, and i will check...):

Routing : my eth1 startsup with a route I do not wish it to have. Where does it take it from? How can I change it

Ip_forward : I can change to 1 on /proc/sys/net/ipv4/ip_forward but wouldn't it be greate if linux could start with 1?

iptables : i did not get to this one yet, but when I will, I will also probably wonder how to set or change the tables on startup.

dhcpd : how to start on startup?

sshd : how to start on startup?

will be glad for help...
Thanx,
Ron
 
Old 12-10-2003, 07:37 AM   #2
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
I think you mean 'grub' and no it's nothing to do with startup scripts. grub and lilo boot linux (and other OS's) and that's about all they are good for

You need to take a look at your startup (rc) scripts... it depends a bit on what distro your using, but generally you will find them in /etc/init.d/ or /etc/rc.d.

I'm not going to explain everything here, but I'll do my best to give you a kick start

the system is starting these scipts by runlevel. runlevel 5 is (usually) start network and start X so your probably using that...

so the scripts in /etc/init.d/ are linked to /etc/init.d/rc5.d and then the system knows what scripts to run when you are in runlevel 5.

you control when they are started by assigning a number, so if you make your own rc script (just using any other as a template) you would put it in /etc/init.d then do 'ln -s /etc/init.d/myscript /etc/init.d/rc5.d/S99myscript' so it will definatly run last.

you might want to make a K link as well, so the "stop" part of the script runs on shutdown.



So....
Routing : my eth1 startsup with a route I do not wish it to have. Where does it take it from? How can I change it

It will be setup by one of your current rc scripts, but it might be quite complex... you can have a look at your current scripts or make your own entry to change it on startup until you can get it figured out...



Ip_forward : I can change to 1 on /proc/sys/net/ipv4/ip_forward but wouldn't it be greate if linux could start with 1?

put "echo 1 > /proc/sys/net/ipv4/ip_forward" into a script somewhere (your own?) I have it set in my firewall script.


iptables : i did not get to this one yet, but when I will, I will also probably wonder how to set or change the tables on startup.

Firewalls can be complex beasts to setup, fortunately there are tools to help you, or you can just use scripts maintained by others... I use firegate http://firegate.sourceforge.net/



dhcpd : how to start on startup?

startup scripts.

sshd : how to start on startup?

startup scripts.

You probably already have scripts for both these if you are using a "big" distro like suse or redhat, you should be able to just link them to rc5.d

Good luck
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
COnfiguring Startup jaslowe Linux - General 1 03-15-2005 05:56 PM
Configuring the startup process thephotoman Debian 5 10-01-2004 10:20 PM
configuring startup doclane Linux - Newbie 2 05-22-2004 06:42 PM
configuring the startup ksd Slackware 4 12-14-2003 11:53 PM
Configuring dhclient and ipmasq startup rickpd Debian 2 11-28-2003 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration