LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2009, 12:02 PM   #1
nerdnero
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Rep: Reputation: 0
Post writing auto start script for static routes in suse linux10.3 with shorewall 3.0


i have a linux box running suse 10.3, i have installed shoreline firewall on it and its running. however i have to always re-enter my static routes anytime the box re-boots. can someone help me out? i need to create an aouto start script for the routes
 
Old 10-01-2009, 03:28 PM   #2
shahkent
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Rep: Reputation: 1
Re: writing auto start script for static routes in suse linux10.3 with shorewall 3.0

Hi there.

There should be a file under the /etc/rc.d/ directory called rc.local. Add your static routes to the bottom of this file, reboot your machine and check and see if your your static routes have been added.

Hope this helps.

Shahriar.
 
Old 10-12-2009, 11:22 AM   #3
nerdnero
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by shahkent View Post
Hi there.

There should be a file under the /etc/rc.d/ directory called rc.local. Add your static routes to the bottom of this file, reboot your machine and check and see if your your static routes have been added.

Hope this helps.

Shahriar.
Thanks Shahriar,

I check through my directory, i didnt see the file that you mentioned. kindly find below the list of files and folder in my rc.d directory

.depend.boot autofs boot.d boot.md consolekit halt microcode.ctl powersaved rc6.d skeleton.compat ypbind
.depend.start autoyast boot.device-mapper boot.proc create_xconf halt.local network racoon rcS.d smpppd
.depend.stop avahi-daemon boot.dmraid boot.rootfsck cron hotkey-setup nfs random reboot splash
README avahi-dnsconfd boot.ipconfig boot.sched cups irda nscd raw resmgr splash_early
StaticRouteAdd.sh bluetooth boot.klog boot.scpm dbus irq_balancer ntp rc rpasswdd sshd
SuSEfirewall2_init boot boot.ldconfig boot.scsidev dvb java.binfmt_misc openct rc0.d rpmconfigcheck stopblktrace
SuSEfirewall2_setup boot.apparmor boot.loadmodules boot.swap earlysyslog joystick pcscd rc1.d saslauthd syslog
aaeventd boot.blktrace boot.local boot.sysctl earlyxdm kbd portmap rc2.d setserial waitfornm
acpid boot.cleanup boot.localfs boot.udev esound ksysguardd postfix rc3.d shorewall xdm
alsasound boot.clock boot.localnet boot.udev_retry gpm lm_sensors powerd rc4.d single xfs
auditd boot.crypto boot.lvm boot.videobios haldaemon mdadmd powerfail rc5.d
 
Old 10-15-2009, 12:23 AM   #4
shahkent
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Rep: Reputation: 1
Quote:
Originally Posted by nerdnero View Post
Thanks Shahriar,

I check through my directory, i didnt see the file that you mentioned. kindly find below the list of files and folder in my rc.d directory

StaticRouteAdd.sh
This one looks promising. :-D

Could you attach this file to your post or copy and paste its contents? I might be able to tell you what you need to modify in this script to set your Static Routes at boot time.

Cheers!

Shahriar
 
Old 03-24-2010, 12:25 PM   #5
nerdnero
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Original Poster
Rep: Reputation: 0
re: auto start script for static route in suse10.3 with shorewall 3.0

Hi Shahriar,

sorry for my late response to your quote to my questions, i stopped the project at a time but i am back at it, i have the cotent of the rc.d directory attached herewith

linux:/etc/rc.d # ls
.depend.boot boot.loadmodules halt.local rc2.d
.depend.start boot.local hotkey-setup rc3.d
.depend.stop boot.localfs irda rc4.d
README boot.localnet irq_balancer rc5.d
StaticRouteAdd.sh boot.lvm java.binfmt_misc rc6.d
SuSEfirewall2_init boot.md joystick rcS.d
SuSEfirewall2_setup boot.proc kbd reboot
aaeventd boot.rootfsck ksysguardd resmgr
acpid boot.sched lm_sensors rpasswdd
alsasound boot.scpm mdadmd rpmconfigcheck
auditd boot.scsidev microcode.ctl saslauthd
autofs boot.swap network setserial
autoyast boot.sysctl nfs shorewall
avahi-daemon boot.udev nscd single
avahi-dnsconfd boot.udev_retry ntp skeleton
bluetooth boot.videobios openct skeleton.compat
boot consolekit pcscd smpppd
boot.apparmor create_xconf portmap splash
boot.blktrace cron postfix splash_early
boot.cleanup cups powerd sshd
boot.clock dbus powerfail stopblktrace
boot.crypto dvb powersaved syslog
boot.d earlysyslog racoon waitfornm
boot.device-mapper earlyxdm random xdm
boot.dmraid esound raw xfs
boot.ipconfig gpm rc xinetd
boot.klog haldaemon rc0.d ypbind
boot.ldconfig halt rc1.d
 
Old 06-18-2010, 06:25 PM   #6
shahkent
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Rep: Reputation: 1
Hi there!

I was actually interested in seeing the contents of the StaticRouteAdd.sh file itself, not the contents for the rc.d directory. :-)

Would you please print the contents of the file (using a command like 'cat StaticRouteAdd.sh') and attach it to this post?

Thanks!

Regards,

Shahriar.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Static routes using routes/ifroutes-eth-id.. files and default gateway disabled TimtheEagle Linux - Networking 0 05-31-2008 08:08 PM
mp3 support for amorak in suse linux10.2 rameshselvam Linux - Newbie 2 01-09-2007 10:01 PM
SUSE-Linux10.0-RC1-Extra For What Purposes? TigerLinux SUSE / openSUSE 2 10-11-2005 08:55 AM
Writing a simple auto-reconect script for KInternet in SUSE 9.3 tomazN Linux - Networking 0 07-11-2005 11:21 AM
Writing a start up script psychoholic Linux - Newbie 1 12-19-2002 12:47 PM


All times are GMT -5. The time now is 04:14 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration