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 > High-End Security > VPN-1 VSX
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2008-07-23
Junior Member
 
Join Date: 2008-02-14
Posts: 12
Rep Power: 0
gnujuba has an average reputation (10+)
Default fw1-tool.pl and vsx / connection/state table

hi cpusers,

anybody out there tried to use fw1-tool.pl* to show the connection/state table on VSX in different VSs?

fw tab needs a extra option "-vs X" and as I am not "perl" enough to mod the script I thought I ask here :-/

thanks and best regards

gnujuba

(*) http://www.fw-1.de/aerasec/download/...ol/fw1-tool.pl
Reply With Quote
  #2 (permalink)  
Old 2008-07-23
Senior Member
 
Join Date: 2006-01-25
Posts: 920
Rep Power: 3
melipla has an average reputation (10+)
Default Re: fw1-tool.pl and vsx / connection/state table

I believe you need to change this:

Quote:
# Add fw[6] command
$command .= " tab -u -t " . $table;
to this:

Quote:
# Add fw[6] command
$command .= " tab -u -t -vs X" . $table;
Its too bad this script isn't set up for R65 or I'd try it. However I can't say how the new option will change the parsing of the data...
__________________
Its all in the documentation.
Reply With Quote
  #3 (permalink)  
Old 2008-07-23
Junior Member
 
Join Date: 2008-02-14
Posts: 12
Rep Power: 0
gnujuba has an average reputation (10+)
Default Re: fw1-tool.pl and vsx / connection/state table

thats what I did i.e. for vs 5:

$command .= " -vs 5 tab -u";
and
$command .= " -vs 5 tab -u -t " . $table;

(I dont know which one is the right one)


to make it work with VSX on Crossbeam I used the local/fallback option and modified FWDIR and CPDIR:

my %FW1_setup = (
'fallback' => {
'FWDIR' => "/opt/CPfw1-V30",
'CPDIR' => "/opt/CPshrd-V30"
},

looks good:

fw1-tool.pl (P) & (C) 2003-2006 by Dr. Peter Bieringer <info@aerasec.de>
Version: 3.4

Connection table is taken from firewall version 5.x

---- FW-1 CONNECTION ENTRIES ---: 17:52:28
CON: Source SPort Dest DPort Proto Timeout
CON: 10.182.166.119 20226 172.21.120.150 snmptrap udp 4/40
CON: 10.182.174.122 53043 172.21.207.54 ldaps tcp 3119/3600
CON: 10.182.164.113 59014 172.21.207.54 ldaps tcp 3169/3600
CON: 10.182.175.96 33995 172.21.128.15 domain udp 2/40
CON: 10.182.174.107 62110 172.21.120.141 5156 tcp 3465/3600
CON: 172.21.84.21 3621 10.182.174.105 1535 tcp 3/20
CON: 10.183.164.114 42102 10.182.174.108 1523 tcp 3011/3600
CON: 172.21.120.148 42949 10.182.174.10 1560 tcp 3277/3600
CON: 172.21.84.21 2450 10.182.174.105 1535 tcp 11962/14400
....

so it works, but an additional switch like "-VS-NUMBER" would be very nice :-)

regards

gnujuba

Last edited by gnujuba; 2008-07-23 at 09:53.
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 23:54.


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