Checkpoint provided this script to take the old format static-routes
file and
add it to cpnetstart. Works very well
#!/bin/bash
egrep '(^eth*)|(^any)' /etc/sysconfig/static-routes| while read ignore
args ; do
/sbin/route add -$args
done
/bin/cpnetconf store
exit 0
Richard H. Miller, MCSE, CCSE+
Information Security Manager
Information Technology Security & Compliance
Information Technology - Baylor College of Medicine
> ------------------------------
>
> Date: Fri, 2 Apr 2004 10:01:32 +0200
> From: Markus Hofbauer <[EMAIL PROTECTED]>
> Subject: Re: Adding multiple routes R55 SecurePlatform
>
> you can also edit the following file:
>
> /etc/sysconfig/cpnetstart
>
> this file contains the interface (except mac's) and routing
> definitions for SPLAT.
> much easier to edit; especially for a large number of routes.
>
> /markus
>
> At 01:37 02.04.2004, Shoval Tomer wrote:
> >Do it once using sysconfig, and you'll notice that you have
> to go over
> >the same steps all the time.
> >
> >Now write it down in notepad (yeah, using windows) and make
> sure you hit
> >the <ENTER> key between each line.
> >
> >Like so:
> >1 (to add a new route)
> >1.1.1.0 (to add the network ip address)
> >255.255.255.0 (to add the subnet mask)
> >2.2.2.254 (to add the gw ip address)
> >1 (to add the metric)
> >
> >So copy this:
> >
> >1
> >1.1.1.0
> >255.255.255.0
> >2.2.2.254
> >1
> >
> >Now, open your telnet application (that has a Paste option)
> >Ssh into your firewall.
> >Fire up sysconfig
> >Hit 6 for routing
> >And paste.
> >Viole - you're route was added.
> >
> >I used it to add 35 routes in one "paste" when moving from
> my old fw to
> >checkpoint.
> >You can even do a "route print" on the old fw, and edit the
> file using
> >vi, or awk, or some other text editor that suites you to convert the
> >output to a one conforming to what I've written above.
> >
> >And that's it.
> >
> >One note, though.
> >Make sure that your telnet client is able to receive the entire text
> >file size into it's paste buffer, or you'll get short changed.
> >
> >
> >> -----Original Message-----
> >> From: Phi Truong, Monitored Security
> >> [mailto:[EMAIL PROTECTED]
> >> Sent: Friday, April 02, 2004 12:52 AM
> >> To: [EMAIL PROTECTED]
> >> Subject: [FW-1] Adding multiple routes R55 SecurePlatform
> >>
> >> Anyone know how to add multiple static routes (~200) at
> one time to a
> >R55
> >> SecurePlatform box?
> >>
> >> Thanks in advance.
> >>
> >> Phi
> >>
> >> =================================================
> >> To set vacation, Out-Of-Office, or away messages,
> >> send an email to [EMAIL PROTECTED]
> >> in the BODY of the email add:
> >> set fw-1-mailinglist nomail
> >> =================================================
> >> To unsubscribe from this mailing list,
> >> please see the instructions at
> >> http://www.checkpoint.com/services/mailing.html
> >> =================================================
> >> If you have any questions on how to change your
> >> subscription options, email
> >> [EMAIL PROTECTED]
> >> =================================================
> >>
> >> --
> >> This message has been scanned for viruses and
> >> dangerous content by [EMAIL PROTECTED], and is
> >> believed to be clean.
> >> MailScanner thanks transtec Computers for their support.
> >
> >=================================================
> >To set vacation, Out-Of-Office, or away messages,
> >send an email to [EMAIL PROTECTED]
> >in the BODY of the email add:
> >set fw-1-mailinglist nomail
> >=================================================
> >To unsubscribe from this mailing list,
> >please see the instructions at
> >http://www.checkpoint.com/services/mailing.html
> >=================================================
> >If you have any questions on how to change your
> >subscription options, email
> >[EMAIL PROTECTED]
> >=================================================
>
> --
> Markus Hofbauer, Technical Services / IT-Sicherheit
> Bacher Systems EDV GmbH, Wienerbergstr. 11B, A-1101 Wien, Austria
> phone: +43 (1) 60 126-34 | fax: +43 (1) 60 126-4
> e-mail: [EMAIL PROTECTED] | web: www.bacher.at
=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to [EMAIL PROTECTED]
in the BODY of the email add:
set fw-1-mailinglist nomail
=================================================
To unsubscribe from this mailing list,
please see the instructions at
http://www.checkpoint.com/services/mailing.html
=================================================
If you have any questions on how to change your
subscription options, email
[EMAIL PROTECTED]
=================================================