By Stefan Brunner, Vik Davar, David Delcourt, Ken Draper, Joe Kelly, Sunil Wadhwa
Book Price: $54.99 USD
£34.50 GBP
PDF Price: $37.99
Cover | Table of Contents | Colophon
get
set/unset
save
clear
exec
delete
regex support
Login: netscreen Password: <netscreen> top-ssg140-> ? clear clear dynamic system info delete delete persistent info in flash exec exec system commands exit exit command console get get system information mtrace multicast traceroute from source to destination ping ping other host reset reset system save save command set configure system parameters trace-route trace route unset unconfigure system parameters top-ssg140->
get
set/unset
save
clear
exec
delete
regex support
Login: netscreen Password: <netscreen> top-ssg140-> ? clear clear dynamic system info delete delete persistent info in flash exec exec system commands exit exit command console get get system information mtrace multicast traceroute from source to destination ping ping other host reset reset system save save command set configure system parameters trace-route trace route unset unconfigure system parameters top-ssg140->
trust-vr, as the parent container and as the first architectural choice to be made when designing ScreenOS into an existing or new network (see ).
trust-vr and untrust-vr:bottom-ssg140-> get vrouter * indicates default vrouter A - AutoExport, R - RIP, N- NHRP, O - OSPF, B - BGP, P - PIM ID Name Vsys Owner Routes MRoutes Flags 1 untrust-vr Root shared 0/max 0/max * 2 trust-vr Root shared 5/max 0/max total 2 vrouters shown and 0 of them defined by user bottom-ssg140->
trust-vr is the default VR and, therefore, the default container for all the underlying associated zones and interfaces: bottom-ssg140-> get vrouter trust-vr
Routing Table
---------------------------------------------------------------------
H: Host C: Connected S: Static A: Auto-Exported
I: Imported R: RIP P: Permanent D: Auto-Discovered
N: NHRP
iB: IBGP eB: EBGP O: OSPF E1: OSPF external type 1
E2: OSPF external type 2 trailing B: backup route
Total 5/max entries
ID IP-Prefix Interface Gateway P Pref Mtr Vsys
---------------------------------------------------------------------
* 1 10.251.7.96/27 eth0/0 0.0.0.0 C 0 0 Root
* 6 10.100.1.0/24 eth0/2 10.10.10.1 S 20 1 Root
* 2 10.251.7.99/32 eth0/0 0.0.0.0 H 0 0 Root
* 4 10.10.10.254/32 eth0/2 0.0.0.0 H 0 0 Root
* 3 10.10.10.0/24 eth0/2 0.0.0.0 C 0 0 Root
Interfaces
---------------------------------------------------------------------
self, v1-trust, v1-untrust, v1-dmz, l2v, ethernet0/0
serial1/1, serial1/0, ethernet0/2, ethernet0/1, vlan1, hidden.1
tunnel
Auto-exporting: Disabled
Default-vrouter: Yes
Shared-vrouter: Yes
nsrp-config-sync: Yes
System-Default-route: Not present
Advertise-Inactive-Interface: Disabled
Source-Based-Routing: Disabled
SIBR-Routing: Disabled
SNMP Trap: Public
Ignore-Subnet-Conflict: Disabled
ECMP-Routing: Disabled
bottom-ssg140->debug and snoop functions will setely provide very detailed information that the administrator can use while troubleshooting issues. When used together, these functions can illustrate an entire data flow, starting with what the packet looks like entering the firewall, how ScreenOS processes the packet through the firewall, and finally, what the packet looks like when leaving the firewall. top-ssg140-> debug ?
admin debug admin
adsl adsl debugging
anti-spam anti-spam debugging
top-ssg140-> get log event > tftp 10.251.7.113 eventlog.txt
redirect to 10.251.7.113,eventlog.txt
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
tftp transferred records = 15
tftp success!
top-ssg140->
top-ssg140-> save config to tftp 10.251.7.113
borderfw1_config_021107_1215.txt
Read the current config.
Save configurations (3918 bytes) to borderfw1_config_021107_1215.txt
on TFTP server 10.251.7.113.
!!!!!!!!!!!!!!!!!!!
tftp transferred records = 8
tftp success!!
TFTP Succeeded
top-ssg140->
top-ssg140-> save software from tftp 10.251.7.113 ssg140.6.0.0r1.0
to flash
Load software from 10.251.7.113/ssg140.6.0.0r1.0 .
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
tftp received octets = 11141120
tftp success!
TFTP Succeeded
top-ssg140->
top-ssg140-> get log event > tftp 10.251.7.113 eventlog.txt
redirect to 10.251.7.113,eventlog.txt
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
tftp transferred records = 15
tftp success!
top-ssg140->
top-ssg140-> save config to tftp 10.251.7.113
borderfw1_config_021107_1215.txt
Read the current config.
Save configurations (3918 bytes) to borderfw1_config_021107_1215.txt
on TFTP server 10.251.7.113.
!!!!!!!!!!!!!!!!!!!
tftp transferred records = 8
tftp success!!
TFTP Succeeded
top-ssg140->
top-ssg140-> save software from tftp 10.251.7.113 ssg140.6.0.0r1.0
to flash
Load software from 10.251.7.113/ssg140.6.0.0r1.0 .
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
tftp received octets = 11141120
tftp success!
TFTP Succeeded
top-ssg140->
top-ssg140-> get sys-cfg | inc " log" dlog session log pool number: 512 event log entry number: 1024 packet log entry number: 512 traffic log entry number: 4096 top-ssg140-> get sys-cfg | inc dbuf dbuf number: 524288 top-ssg140->
top-ssg140-> set ssh enable
top-ssg140-> set scp enable
ddelcourt@ddelcourt-lt2 ~/borderfw1 $ scp netscreen@192.168.2.254:ns_sys_config ./borderfw1_config_021107_1230.txt netscreen@192.168.2.254's password: <password> ns_sys_config 100% 3835 3.8KB/s 00:00 ddelcourt@ddelcourt-lt2 ~/borderfw1 $ ls borderfw1_config_021107_1230.txt
$ scp /tftpboot/ssg140.6.0.0r1.0 netscreen@192.168.2.254:image netscreen@192.168.2.254's password: <password> ssg140.6.0.0r1.0 100% 10880KB 63.2KB/s 02:48
get file command, including the ScreenOS image that is hidden in this listing.set ssh enable command. Use the get ssh command to check that the expected version of SSH is running: top-ssg140-> get ssh
SSH V2 is active
SSH is enabled
SSH is ready for connections
Maximum sessions: 8
Active sessions: 0
Admin Ip Addr Vsys Auth Method Service
--------- --------------- -------- ----------- -------
top-ssg140->
get ssh and get scp will show you whether SSH is enabled: top-ssg140-> get ssh
SSH V2 is active
SSH is NOT enabled
SSH is NOT ready for connections
Maximum sessions: 8
Active sessions: 0
top-ssg140-> MGT port).untrust-vr:isg1000-> set zone trust vr untrust-vr isg1000-> set zone untrust vr untrust-vr
isg1000-> set interface e1/1 route isg1000-> set interface e1/1 zone trust isg1000-> set interface e1/1 ip 10.251.7.99/29 isg1000-> set interface e1/2 zone untrust isg1000-> set interface e1/2 ip 10.10.10.254/24 isg1000-> set interface mgt ip 10.20.20.1/28
trust-vr for the MGT interface: isg1000-> set vr trust route 0.0.0.0/0 interface mgt gateway
10.20.20.14
untrust-vr for user traffic:isg1000-> set vr untrust route 0.0.0.0/0 interface e1/2 gateway 64.2.31.249 isg1000-> set vr untrust route 10.100.0.0/16 interface e3 gateway 10.100.1.1
MGT interface connected to a dedicated sideband or out-of-band management network. Another way to solve this problem is to ensure that every management host that the firewall will ever need to communicate with is on the same local IP network subnet as the MGT interface IP. If this is the case, and no routes need to be added, specific or default, for the MGT interface to communicate with the systems required (such as syslog, NSM, the Network Time Protocol [NTP], etc.), nothing more needs to be done.MGT interface works and differs from other interfaces on the firewall. The dedicated MGT interface behaves like a "host" interface—in other words, traffic terminates on this interface, and cannot be routed through the firewall to any other interface and vice versa. The top-ssg140-> set interface e0/0 manage ping top-ssg140-> set interface e0/0 manage ssh top-ssg140-> set interface e0/2 manage ping top-ssg140-> set interface e0/0 manage-ip 10.251.7.100
top-ssg140-> set syslog src-interface e0/0 top-ssg140-> set ntp server src-interface e0/0 top-ssg140-> set snmp host public 10.251.7.113/32 src-interface e0/0 top-ssg140-> set tftp source-interface e0/0 top-ssg140-> set nsmgmt server primary 10.251.7.113 src-interface e0/0
top-ssg140-> set admin manager-ip 10.100.41.0/24 top-ssg140-> set admin manager-ip 10.100.100.200/32 top-ssg140-> set admin manager-ip 10.100.100.201/32 top-ssg140-> set admin manager-ip 10.100.29.3/32 top-ssg140-> set admin manager-ip 10.251.7.96/27 top-ssg140-> set admin manager-ip 192.168.30.0/24
top-ssg140-> set admin name <root_adminname> password <password> top-ssg140-> set admin user name <adminname> password <password> privilege all top-ssg140-> set admin user name <adminname> password <password> privilege read-only
top-ssg140-> set admin auth banner <string>
Hit any key to run loader Serial Number [0185122006000285]: READ ONLY HW Version Number [1010]: READ ONLY Self MAC Address [0017-cb47-9400]: READ ONLY Boot File Name [ssg140.6.0.0r1.0]: ssg140.5.4.0r4.0 Self IP Address [192.168.1.1]: 10.251.7.99 TFTP IP Address [192.168.1.1]: 10.251.7.113 Save loader config (56 bytes)... Done The configured TFTP server is connected to port 0 Loading file "ssg140.5.4.0r4.0"... r Receiving data block ... #20384 Loaded Successfully! (size = 10,441,842 bytes) Ignore image authentication!
m for multiple image support: Save to on-board flash disk? (y/[n]/m) m Yes!
Please input multiple system image file name [ssg14054.0]: 140540.r4
Saving system image to on-board flash disk...
Done! (size = 10,441,842 bytes)
Run downloaded system image? ([y]/n) n
bottom-ssg140-> set envar boot=flash:/140600.R1;140540.R4 bottom-ssg140-> save Save System Configuration ... Done
bottom-ssg140-> get file
flash:/$NSBOOT$.BIN 11141120
flash:/burnin_log1 40960
flash:/burnin_log0 40960
flash:/crash.dmp 131072
flash:/envar.rec 125
flash:/ns_sys_config 1433
flash:/prngseed.bin 32
flash:/images/
bottom-ssg140->ddelcourt@ddelcourt-lt /cygdrive/g $ ls Customer Recycled Dept Stuff Tools Misc md5sum.exe ssg140.5.4.0r4.0 ssg140.6.0.0r1.0 ddelcourt@ddelcourt-lt /cygdrive/g
bottom-ssg140-> LEXAR MEDIA JUMPDRIVE, rev 2.00/30.00, addr 2, SCSI over Bulk-Only Mount usb device. Please wait... usb device (usb) ready. bottom-ssg140-> get file flash:/$NSBOOT$.BIN 11141120 flash:/burnin_log1 40960 flash:/burnin_log0 40960 flash:/crash.dmp 131072 flash:/envar.rec 125 flash:/ns_sys_config 1433 flash:/prngseed.bin 32 flash:/images/ USB flash device : usb:/.Trashes/ usb:/ssg140.6.0.0r1.0 11141120 usb:/ssg140.5.4.0r4.0 10485760 usb:/Customer/ usb:/Misc/ usb:/Tools/ usb:/Dept Stuff/ usb:/md5sum.exe 34816 usb:/Recycled/ bottom-ssg140->
bottom-ssg140-> save software from usb ssg140.6.0.0r1.0 to flash It will replace current image file with usb image ssg140.6.0.0r1.0. Do you want to continue... y/[n] y Load image from usb to flash: ssg140.6.0.0r1.0. Read .................................. Save to flash. It may take a few minutes ... platform = 24, cpu = 12, version = 18 update new flash image (02555050,11141120) platform = 24, cpu = 12, version = 18 offset = 20, address = 5800000, size = 11032611 date = 1483, sw_version = 30008000, cksum = 55fe2c90 Program flash (11141120 bytes) ... ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++done bottom-ssg140->
exec wlan find-channel command to find the best channel, and you can either hard-set the channel or leave it at auto. To hard-set the channel, use the set wlan 0 channel command if you have a two-radio device such as the SSG5, or the set wlan channel command for single-radio devices such as the NS-5GT. Here is example output of the find-channel command:ssg5->
exec wlan find-channel command to find the best channel, and you can either hard-set the channel or leave it at auto. To hard-set the channel, use the set wlan 0 channel command if you have a two-radio device such as the SSG5, or the set wlan channel command for single-radio devices such as the NS-5GT. Here is example output of the find-channel command: ssg5-> exec wlan find-channelset wlan acl mode strict set wlan acl 000f02020202 allow set wlan acl 000c01010101 allow
get wlan acl command. The following example shows that the WLAN ACL mode is strict, and it has one Deny MAC address, and two Allow MAC addresses: ssg5-> get wlan acl
wlan acl mode strict
denied mac address
1. 000000000001
allow mac address
1. 000f00000000
2. 000c01010101
get log event command to verify the MAC filtering. Here, a user with MAC address 00:0f:b5:22:bf:a2 was attempting to associate to the corp SSID and was denied by the ACL:2001-10-06 10:20:06 system notif 00564 Wireless station event: Station 000fb522bfa2 is denied by ACL, SSID: corp.
shared-key, define the WEP key, and bind the SSID to the wireless interface:set ssid name pizza set ssid pizza key-id 1 length 40 method asciitext a1b2c default set ssid pizza authentication shared-key set ssid pizza interface wireless0/0 exec wlan reactivate
set zone name "wzone1" set interface "wireless0/0" zone "wzone1" set interface wireless0/0 ip 172.16.254.1/24 set interface wireless0/0 dhcp server service set interface wireless0/0 dhcp server auto set interface wireless0/0 dhcp server option gateway 172.16.254.1 set interface wireless0/0 dhcp server option netmask 255.255.255.0 set interface wireless0/0 dhcp server ip 172.16.254.10 to 172.16.254.15 set policy from "wzone1" to "Untrust" "Any" "Any" "ANY" nat src permit exec wlan reactivate
WPA-Auto-PSK, and the encryption algorithm as auto, and then bind the SSID to the wireless interface:set ssid name Sunnyvale set ssid Sunnyvale client-isolation set ssid Sunnyvale authentication wpa-auto-psk passphrase JnPr!234 encryption auto set ssid Sunnyvale interface wireless1
set zone name "corp-wireless" set interface "wireless0/1" zone "corp-wireless" set interface wireless0/1 ip 172.17.200.1/24 set interface wireless0/1 dhcp server service set interface wireless0/1 dhcp server auto set interface wireless0/1 dhcp server option gateway 172.17.200.1 set interface wireless0/1 dhcp server option netmask 255.255.255.0 set interface wireless0/1 dhcp server ip 172.17.200.10 to 172.17.200.20 set policy from "corp-wireless" to "trust" "Any" "Any" "ANY" permit exec wlan reactivate
auth-server using an account-type of 802.1x, and select Radius as the auth-server type:set auth-server "MyServer" server-name "172.24.28.199" set auth-server "MyServer" account-type 802.1X set auth-server "MyServer" radius secret "RADIUS_SECRET"
wpa-auto and an encryption type of auto; associate the 802.1x auth-server, and then bind the SSID to the wireless interface:set ssid name Secured set ssid Secured client-isolation set ssid Secured authentication wpa-auto encryption auto auth-server MyServer set ssid Secured interface wireless0
set zone name "wzone1" set interface "wireless0/0" zone "wzone1" set interface wireless0/0 ip 172.16.254.1/24 set interface wireless0/0 dhcp server service set interface wireless0/0 dhcp server auto set interface wireless0/0 dhcp server option gateway 172.16.254.1 set interface wireless0/0 dhcp server option netmask 255.255.255.0 set interface wireless0/0 dhcp server ip 172.16.254.10 to 172.16.254.15 set policy from "wzone1" to "Untrust" "Any" "Any" "ANY" nat src permit exec wlan reactivate
802.1x and select RADIUS as the auth server type:set auth-server "MyServer" server-name "172.24.28.199" set auth-server "MyServer" account-type 802.1X set auth-server "MyServer" radius secret "RADIUS_SECRET"
wpa-auto and an encryption type of auto, associate the 802.1x auth server, and bind the SSID to the wireless interface:set ssid name Sunnyvale set ssid Sunnyvale client-isolation set ssid Sunnyvale authentication wpa-auto encryption auto auth-server MyServer set ssid Sunnyvale interface wireless0
set zone name "wzone1" set interface "wireless0/0" zone "wzone1" set interface wireless0/0 ip 10.1.1.1/24 set interface wireless0/0 dhcp server service set interface wireless0/0 dhcp server auto set interface wireless0/0 dhcp server option gateway 10.1.1.1 set interface wireless0/0 dhcp server option netmask 255.255.255.0 set interface wireless0/0 dhcp server ip 10.1.1.10 to 10.1.1.20 set policy from "wzone1" to "Untrust" "Any" "Any" "ANY" nat src permit exec wlan reactivate
corp zone for corporate users, and a guest zone for guest users:set zone name "corp" set zone name "guest"
wireless0/0 to corp and wireless0/1 to guest; also, configure the wired interfaces ethernet0/0 to the Untrust zone and ethernet0/2 to the Trust zone. Then, configure the IP addresses to each interface:set interface "ethernet0/0" zone "Untrust" set interface "ethernet0/2" zone "Trust" set interface "wireless0/0" zone "corp" set interface "wireless0/1" zone "guest" set interface ethernet0/0 ip 192.168.1.35/24 set interface ethernet0/2 ip 192.168.4.1/24 set interface wireless0/0 ip 192.168.2.1/24 set interface wireless0/1 ip 192.168.3.1/24
set interface wireless0/0 dhcp server service set interface wireless0/1 dhcp server service set interface wireless0/0 dhcp server option gateway 192.168.2.1 set interface wireless0/1 dhcp server option gateway 192.168.3.1 set interface wireless0/0 dhcp server ip 192.168.2.33 to 192.168.2.126 set interface wireless0/1 dhcp server ip 192.168.3.10 to 192.168.3.20
webauth to prevent unconstrained access, and then define the users on the device:set interface "wireless0/1" webauth ssl-only set interface "wireless0/1" webauth-ip 192.168.3.5 set user "guest1" uid 1 set user "guest1" type auth set user "guest1" hash-password "026Q18FGRiRbJOwq93hvV+Mz5Q3qiAguQ=" set user "guest1" "enable" set user "guest2" uid 2 set user "guest2" type auth set user "guest2" hash-password "026Q18FGRiRbJOwq93hvV+Mz5Q3qiAguQ=" set user "guest2" "enable
bgroup0 to the zone. Also, assign the wired interface and wireless interface to the bgroup0 interface:set zone name Corp set interface "bgroup0" zone "Corp" set interface bgroup0 port ethernet0/6 set interface bgroup0 port wireless0/0
bgroup0 interface and enable DHCP for automatic IP address allocations:set interface bgroup0 ip 10.10.10.1/24 set interface bgroup0 dhcp server service set interface bgroup0 dhcp server enable set interface bgroup0 dhcp server option gateway 10.10.10.1 set interface bgroup0 dhcp server option netmask 255.255.255.0 set interface bgroup0 dhcp server ip 10.10.10.100 to 10.10.10.130
set ssid name Secured set ssid Secured client-isolation set ssid Secured authentication wpa-auto-psk passphrase Secret encryption auto set ssid Secured interface wireless0 exec wlan reactivate
set policy from corp to untrust any any any nat src permit
ethernet0/6 and wireless0/0 interfaces, create a zone called Corp which will contain the bgroup0. Then, assign the ethernet0/6 and wireless0/0 interfaces to bgroup0. All the Layer 3 configurations will be done on the get system command. This example shows a system operating in NAT/route mode: