<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic USB First Time Config using autoconf.clish files  - How it is written in Spark Firewall (SMB)</title>
    <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/USB-First-Time-Config-using-autoconf-clish-files-How-it-is/m-p/39450#M1602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Here i talk about writing &lt;EM&gt;autoconf.clish&lt;/EM&gt; files to configure SMB units; this articles first and second parts can be found here :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0cm 1.45pt 6.0pt 0cm; font-size: 14.0pt;"&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-2609"&gt;USB First Time Config using autoconf.clish files - How it works &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0cm 1.45pt 6.0pt 0cm; font-size: 14.0pt;"&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-2610"&gt;USB First Time Config using autoconf.clish files - How to use them&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0cm 1.45pt 6.0pt 0cm; font-size: 14.0pt;"&gt;---------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Now we will look at the details of the &lt;EM&gt;autoconfig.clish&lt;/EM&gt;, mixing the file with the corresponding log messages in italics. We can define the unit name first: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set hostname GW_620&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;EM&gt;Could not set hostname hostname: Device name can only contain [A-F], [0-9] and '-' characters&lt;/EM&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;The name is wrong, so we have to use a – instead to make it work: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set hostname GW-620&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;The &lt;EM&gt;First Time Wizard&lt;/EM&gt; at this point lets you set the country also, but that is possible in CLISH only using the wlan settings; if not using wlan we could issue: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set wlan radio country australia&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set wlan disable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;# set Time sever settings&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;The last line is a comment – use the # to structure, comment and explain the file ! &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set time-zone GMT+01:00(Amsterdam/Berlin/Bern/Rome/Stockholm/Vienna) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: black; font-size: 10.0pt;"&gt;&lt;EM&gt;Wed Oct 8 08:57:00 GMT+0100 2014&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set ntp server primary x.x.x.x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set ntp active on&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: black; font-size: 10.0pt;"&gt;&lt;EM&gt;Wed Oct 8 08:57:00 GMT+0100 2014&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set ntp interval 1&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;After setting the time zone, the estimated current date and time is displayed. The same is done after setting the NTP Server to on: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set admin access&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set user admin type admin password VeryGoodPassWord&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set admin-access web-access-port 4434 allowed-ipv4-addresses any&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: black; font-size: 10.0pt;"&gt;&lt;EM&gt;Changing the access policy - This might block your access to the appliance (although your current session will be retained)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set admin-access interfaces any access allow&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Here, admin password is set – better for security is to set the password-hash instead: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set user admin type admin password-hash $1$CTnQg69e$dwMJPcrB27XnAXUckPW7N0&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Now we set the ISP connection: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set WAN internet connection and GW&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;add internet-connection interface WAN type static ipv4-address x.x.x.x subnet-mask 255.255.255.0 default-gw y.y.y.y conn-test-timeout 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;EM&gt;Skipped connection test&lt;/EM&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;The connection test will try to reach the ISP, if using value zero, the connection test is skipped, otherwise, the value is the time limit in seconds. &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set DNS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dns primary ipv4-address x.x.x.x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dns secondary ipv4-address y.y.y.y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set dns tertiary ipv4-address 8.8.8.8&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;After setting the DNS servers, we define the internal networks:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set internal networks and dhcp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dhcp server interface LAN1_Switch disable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set interface LAN1_Switch ipv4-address 192.168.x.1 subnet-mask 255.255.255.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dhcp server interface LAN1_Switch include-ip-pool 192.168.x.1-192.168.x.254&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dhcp server interface LAN1_Switch enable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;#set DMZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dhcp server interface DMZ disable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set interface DMZ ipv4-address 192.168.y.1 subnet-mask 255.255.255.0&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Now we define the WLAN network:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set WLAN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan ssid MyWLAN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set interface MyWLAN ipv4-address 192.168.z.1 subnet-mask 255.255.255.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dhcp server interface MyWLAN include-ip-pool 192.168.z.1-192.168.z.254&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan radio country australia&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan radio operation-mode 11ng channel auto&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan security-type WPA2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan wpa-auth-type password VeryGoodPassWord&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan enable&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Finally, let us load the units license from UserCenter:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# get the license from UserCenter: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;fetch license usercenter&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Other configuration steps can be constructed from CLISH commands. As this procedure works for 1100 and 600 appliances, it also works for centrally managed 1100 units. Management server would be configured there as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set Management Server IP and SIC to fetch certificate and policy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set sic_init password VeryGoodPassWord&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;fetch certificate mgmt-ipv4-address x.x.x.x gateway-name &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;GW-1100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;fetch policy mgmt-ipv4-address x.x.x.x&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;With centrally managed 1100 units, the log server is defined in the policy. If a 600 device should log to a CP Log server, this can only be configured in WebGUI or bash, as there are no CLISH commands for log server configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;After the above autoclish has finished, FW Blade is on with “&lt;EM&gt;Hide internal networks behind the Gateway's external IP address&lt;/EM&gt;” enabled and User Awareness is on but not configured, but all other blades are set off. Other Blades, WebServer or Rules configuration is available in CLISH: &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# enable TP Blades:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set antispam mode on detection_method content-based log log spam_content_action block flag_subject_stamp spam&lt;BR /&gt;set threat-prevention ips policy mode "on"&lt;BR /&gt;set threat-prevention anti-virus policy mode "on"&lt;BR /&gt;set threat-prevention anti-bot policy mode "on"&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;But it is often necessary to configure locally managed &lt;SPAN style="font-size: 14.0pt;"&gt;1400/1100/1200R/700/600&lt;/SPAN&gt; appliances using the WebGUI. E.g. when configuring:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;set fw policy mode "strict&lt;/SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;this will add a rule for traffic between LAN networks&amp;nbsp;(in WebGUI standard mode: Allow traffic between internal networks). To remove it, you can only use the WebGUI: Set to standard mode, then to strict again and the rule has vanished...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 09:06:23 GMT</pubDate>
    <dc:creator>G_W_Albrecht</dc:creator>
    <dc:date>2018-02-12T09:06:23Z</dc:date>
    <item>
      <title>USB First Time Config using autoconf.clish files  - How it is written</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/USB-First-Time-Config-using-autoconf-clish-files-How-it-is/m-p/39450#M1602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Here i talk about writing &lt;EM&gt;autoconf.clish&lt;/EM&gt; files to configure SMB units; this articles first and second parts can be found here :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0cm 1.45pt 6.0pt 0cm; font-size: 14.0pt;"&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-2609"&gt;USB First Time Config using autoconf.clish files - How it works &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0cm 1.45pt 6.0pt 0cm; font-size: 14.0pt;"&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-2610"&gt;USB First Time Config using autoconf.clish files - How to use them&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0cm 1.45pt 6.0pt 0cm; font-size: 14.0pt;"&gt;---------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Now we will look at the details of the &lt;EM&gt;autoconfig.clish&lt;/EM&gt;, mixing the file with the corresponding log messages in italics. We can define the unit name first: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set hostname GW_620&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;EM&gt;Could not set hostname hostname: Device name can only contain [A-F], [0-9] and '-' characters&lt;/EM&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;The name is wrong, so we have to use a – instead to make it work: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set hostname GW-620&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;The &lt;EM&gt;First Time Wizard&lt;/EM&gt; at this point lets you set the country also, but that is possible in CLISH only using the wlan settings; if not using wlan we could issue: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set wlan radio country australia&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set wlan disable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;# set Time sever settings&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;The last line is a comment – use the # to structure, comment and explain the file ! &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set time-zone GMT+01:00(Amsterdam/Berlin/Bern/Rome/Stockholm/Vienna) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: black; font-size: 10.0pt;"&gt;&lt;EM&gt;Wed Oct 8 08:57:00 GMT+0100 2014&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set ntp server primary x.x.x.x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set ntp active on&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: black; font-size: 10.0pt;"&gt;&lt;EM&gt;Wed Oct 8 08:57:00 GMT+0100 2014&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set ntp interval 1&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;After setting the time zone, the estimated current date and time is displayed. The same is done after setting the NTP Server to on: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set admin access&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set user admin type admin password VeryGoodPassWord&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set admin-access web-access-port 4434 allowed-ipv4-addresses any&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: black; font-size: 10.0pt;"&gt;&lt;EM&gt;Changing the access policy - This might block your access to the appliance (although your current session will be retained)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set admin-access interfaces any access allow&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Here, admin password is set – better for security is to set the password-hash instead: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set user admin type admin password-hash $1$CTnQg69e$dwMJPcrB27XnAXUckPW7N0&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Now we set the ISP connection: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set WAN internet connection and GW&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;add internet-connection interface WAN type static ipv4-address x.x.x.x subnet-mask 255.255.255.0 default-gw y.y.y.y conn-test-timeout 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;EM&gt;Skipped connection test&lt;/EM&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;The connection test will try to reach the ISP, if using value zero, the connection test is skipped, otherwise, the value is the time limit in seconds. &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set DNS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dns primary ipv4-address x.x.x.x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dns secondary ipv4-address y.y.y.y&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;set dns tertiary ipv4-address 8.8.8.8&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;After setting the DNS servers, we define the internal networks:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set internal networks and dhcp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dhcp server interface LAN1_Switch disable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set interface LAN1_Switch ipv4-address 192.168.x.1 subnet-mask 255.255.255.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dhcp server interface LAN1_Switch include-ip-pool 192.168.x.1-192.168.x.254&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dhcp server interface LAN1_Switch enable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;#set DMZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dhcp server interface DMZ disable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set interface DMZ ipv4-address 192.168.y.1 subnet-mask 255.255.255.0&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Now we define the WLAN network:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set WLAN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan ssid MyWLAN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set interface MyWLAN ipv4-address 192.168.z.1 subnet-mask 255.255.255.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set dhcp server interface MyWLAN include-ip-pool 192.168.z.1-192.168.z.254&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan radio country australia&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan radio operation-mode 11ng channel auto&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan security-type WPA2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan wpa-auth-type password VeryGoodPassWord&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set wlan enable&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Finally, let us load the units license from UserCenter:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# get the license from UserCenter: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;fetch license usercenter&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Other configuration steps can be constructed from CLISH commands. As this procedure works for 1100 and 600 appliances, it also works for centrally managed 1100 units. Management server would be configured there as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# set Management Server IP and SIC to fetch certificate and policy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set sic_init password VeryGoodPassWord&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;fetch certificate mgmt-ipv4-address x.x.x.x gateway-name &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;GW-1100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;fetch policy mgmt-ipv4-address x.x.x.x&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;With centrally managed 1100 units, the log server is defined in the policy. If a 600 device should log to a CP Log server, this can only be configured in WebGUI or bash, as there are no CLISH commands for log server configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;After the above autoclish has finished, FW Blade is on with “&lt;EM&gt;Hide internal networks behind the Gateway's external IP address&lt;/EM&gt;” enabled and User Awareness is on but not configured, but all other blades are set off. Other Blades, WebServer or Rules configuration is available in CLISH: &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;# enable TP Blades:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;set antispam mode on detection_method content-based log log spam_content_action block flag_subject_stamp spam&lt;BR /&gt;set threat-prevention ips policy mode "on"&lt;BR /&gt;set threat-prevention anti-virus policy mode "on"&lt;BR /&gt;set threat-prevention anti-bot policy mode "on"&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;But it is often necessary to configure locally managed &lt;SPAN style="font-size: 14.0pt;"&gt;1400/1100/1200R/700/600&lt;/SPAN&gt; appliances using the WebGUI. E.g. when configuring:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 1.45pt;"&gt;&lt;/P&gt;&lt;PRE style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;set fw policy mode "strict&lt;/SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="margin: 0cm 1.45pt .0001pt 0cm;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;this will add a rule for traffic between LAN networks&amp;nbsp;(in WebGUI standard mode: Allow traffic between internal networks). To remove it, you can only use the WebGUI: Set to standard mode, then to strict again and the rule has vanished...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:06:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/USB-First-Time-Config-using-autoconf-clish-files-How-it-is/m-p/39450#M1602</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2018-02-12T09:06:23Z</dc:date>
    </item>
  </channel>
</rss>

