CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
2. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > Miscellaneous
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-08-13
Administrator
 
Join Date: 2005-08-11
Location: San Francisco, CA
Posts: 582
Rep Power: 10
BarryStiefel has disabled reputation
Default Merging objects.C files

Merging objects.C files



FireWall-1 4.1 and earlier supports a command called "fw confmerge" that will allow you to merge multiple objects.C files into one file (this is how the fwinstall script does an upgrade). These commands will not work on FireWall-1 NG. The syntax is:

fw confmerge obj1.C obj2.C > objects.C

Which merges obj1.C and obj2.C into the file objects.C. The proper procedure for performing this merge is as follows:
  1. Stop the firewall (fwstop).
  2. Make a backup of the $FWDIR/conf directory.
  3. Copy your objects.C files into a temp directory, giving them different names (e.g. obj1.C, obj2.C).
  4. Run the command 'fw confmerge obj1.C obj2.C > objects.C'
  5. Remove objects.C, objects.C.sav, objects.C.bak from $FWDIR/conf
  6. Copy the new objects.C file into $FWDIR/conf.
  7. Start the firewall (fwstart).

I have found this works best when one of the objects.C file is "clean," i.e. from a fresh install. This is what the FireWall-1 upgrade process does.

Make sure that if you're converting from Windows to Unix (or vice versa) that you change the line endings, otherwise you will get errors when executing this command.

When merging the objects from a 3.0b management console to a 4.1 management console using fw confmerge, the interfaces tab on the Firewall objects do not get populated and has to be entered manually, SNMP may or may not work. This is also true for any object that requires the interface tab to be populated. (i.e. routers and switches). Version information may not carry over. In this case, you will have to delete and recreate the objects so that they are created properly.

Warning: confmerge has been proven to put duplicate entries in the objects.C file. If two objects have the same name, but use different attributes, you will see duplicate entries.

-- PhoneBoy - 10 Jan 2004

FAQForm FAQs.Class: MiscellaneousFAQs FAQs.OS: FAQs.Version: 4.1
Reply With Quote
Reply

Thread Tools
Display Modes

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -7. The time now is 20:57.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0