How to configure a manual firewall entry on a JACE9000
The JACE-9000 includes a built-in firewall that can be configured to control network traffic and enhance security. This guide covers manually configuring firewall entries on JACE-9000 controllers.
Overview
JACE-9000 firewall provides:
- Traffic Control: Control incoming and outgoing network traffic
- Security Enhancement: Protect JACE from unauthorised access
- Port Management: Control access to specific ports and services
- Access Rules: Define rules for allowed and blocked traffic
- Network Segmentation: Support network segmentation strategies
Prerequisites
Before configuring firewall entries, ensure you have:
- Administrative Access: Administrative access to JACE-9000
- Network Knowledge: Understanding of network requirements
- Port Information: Knowledge of required ports and services
- Access Method: Network or serial access to JACE
- Documentation: JACE-9000 documentation and network requirements
Understanding JACE-9000 Firewall
Firewall Types
JACE-9000 may support:
- Stateful Firewall: Tracks connection state
- Packet Filtering: Filters packets based on rules
- Port-Based Rules: Rules based on ports and protocols
- IP-Based Rules: Rules based on source/destination IP addresses
Default Firewall Behaviour
Default firewall configuration:
- Default Policy: May allow or deny by default
- Common Ports: Common ports may be pre-configured
- Management Access: Management interfaces typically allowed
- Service Ports: Service-specific ports may need configuration
Step-by-Step Configuration
Step 1: Access JACE-9000 Configuration
Via Web Interface:
- Open Browser: Open web browser
- Navigate: Navigate to JACE-9000 IP address
- Login: Login with administrative credentials
- Access Settings: Navigate to Settings or Administration
Via Workbench:
- Open Workbench: Launch Niagara Workbench
- Connect: Connect to JACE-9000
- Navigate: Navigate to JACE configuration
- Access Firewall: Locate Firewall or Security settings
Via Serial Shell:
- Serial Access: Connect via serial shell (see related topics)
- Login: Login with administrative credentials
- Firewall Commands: Access firewall configuration commands
Step 2: Navigate to Firewall Configuration
Web Interface:
- Settings Menu: Navigate to Settings menu
- Security: Select Security or Firewall section
- Firewall Rules: Access Firewall Rules or Access Control
- Manual Configuration: Look for manual rule configuration
Workbench:
- JACE Properties: Right-click JACE and select Properties
- Security Tab: Navigate to Security tab
- Firewall: Locate Firewall configuration section
- Rules: Access firewall rules configuration
Step 3: Understand Rule Structure
Firewall Rule Components:
- Rule Name: Descriptive name for the rule
- Action: Allow or Deny
- Direction: Inbound or Outbound
- Protocol: TCP, UDP, ICMP, or All
- Source IP/Port: Source address and port
- Destination IP/Port: Destination address and port
- Interface: Network interface (if applicable)
- Enabled: Rule enabled/disabled status
Step 4: Create New Firewall Rule
Via Web Interface:
- Add Rule: Click "Add Rule" or "New Rule" button
- Rule Name: Enter descriptive rule name
- Action: Select "Allow" or "Deny"
- Direction: Select "Inbound" or "Outbound"
- Protocol: Select protocol (TCP, UDP, ICMP, All)
- Source: Configure source IP/port:
- Source IP: Enter source IP address or range
- Source Port: Enter source port or "Any"
- Destination: Configure destination IP/port:
- Destination IP: Enter destination IP (JACE IP or "Any")
- Destination Port: Enter destination port number
- Interface: Select network interface (if applicable)
- Enabled: Check "Enabled" checkbox
- Save: Click "Save" or "Apply" to save rule
Example Rule Configuration:
Rule Name: Allow Workbench Access
Action: Allow
Direction: Inbound
Protocol: TCP
Source IP: Any (or specific IP/range)
Source Port: Any
Destination IP: JACE IP Address
Destination Port: 1911
Interface: eth0
Enabled: Yes
Step 5: Configure Common Service Ports
Essential Ports for Niagara:
- Platform Port: 1911 (TCP) - Workbench and platform access
- HTTP: 80 (TCP) - Web interface
- HTTPS: 443 (TCP) - Secure web interface
- BACnet: 47808 (UDP) - BACnet communication
- Modbus: 502 (TCP) - Modbus communication
- SNMP: 161 (UDP) - SNMP monitoring
Create Rules for Required Services:
- Platform Access: Allow port 1911 from management networks
- Web Access: Allow ports 80/443 as needed
- Protocol Ports: Allow protocol-specific ports (BACnet, Modbus, etc.)
- Management: Allow management ports from authorised networks
Step 6: Configure IP-Based Rules
Allow Specific IP Addresses:
Rule Name: Allow Management Network
Action: Allow
Direction: Inbound
Protocol: All
Source IP: 192.168.1.0/24 (management network)
Source Port: Any
Destination IP: Any
Destination Port: Any
Enabled: Yes
Block Specific IP Addresses:
Rule Name: Block Unauthorised Network
Action: Deny
Direction: Inbound
Protocol: All
Source IP: 10.0.0.0/8 (unauthorised network)
Source Port: Any
Destination IP: Any
Destination Port: Any
Enabled: Yes
Step 7: Configure Port-Based Rules
Allow Specific Port:
Rule Name: Allow HTTPS Access
Action: Allow
Direction: Inbound
Protocol: TCP
Source IP: Any
Source Port: Any
Destination IP: JACE IP
Destination Port: 443
Enabled: Yes
Block Specific Port:
Rule Name: Block Telnet
Action: Deny
Direction: Inbound
Protocol: TCP
Source IP: Any
Source Port: Any
Destination IP: Any
Destination Port: 23
Enabled: Yes
Step 8: Set Default Firewall Policy
Configure Default Action:
- Default Policy: Locate default firewall policy setting
- Policy Options:
- Allow All: Allow all traffic not matching rules
- Deny All: Deny all traffic not matching rules (recommended)
- Select Policy: Choose appropriate default policy
- Save: Save default policy configuration
Recommended: Use "Deny All" as default policy for better security.
Step 9: Order Firewall Rules
Rule Order Matters:
- Rule Priority: Rules are typically processed in order
- First Match: First matching rule applies
- Order Rules: Order rules from specific to general:
- Specific IP/port rules first
- General rules last
- Review Order: Review rule order for correct behaviour
Step 10: Apply and Test Configuration
Apply Configuration:
- Save Rules: Save all firewall rule changes
- Apply Configuration: Apply firewall configuration
- Restart Services: Restart firewall service if required
- Verify Active: Verify firewall is active and rules are loaded
Test Configuration:
- Test Allowed Access: Test access that should be allowed
- Test Blocked Access: Verify blocked access is actually blocked
- Test Services: Test all required services work correctly
- Monitor Logs: Monitor firewall logs for activity
Configuration Examples
Example 1: Basic Security Configuration
Default Policy: Deny All
Rule 1: Allow Management Network
- Action: Allow
- Direction: Inbound
- Protocol: All
- Source: 192.168.1.0/24
- Destination: Any
Rule 2: Allow Platform Access
- Action: Allow
- Direction: Inbound
- Protocol: TCP
- Source: 192.168.1.0/24
- Destination Port: 1911
Rule 3: Allow Web Access
- Action: Allow
- Direction: Inbound
- Protocol: TCP
- Source: Any
- Destination Port: 443
Example 2: Protocol-Specific Configuration
Rule 1: Allow BACnet
- Action: Allow
- Direction: Inbound
- Protocol: UDP
- Source: Any
- Destination Port: 47808
Rule 2: Allow Modbus
- Action: Allow
- Direction: Inbound
- Protocol: TCP
- Source: 192.168.2.0/24
- Destination Port: 502
Troubleshooting
Cannot Access After Configuration
If access is lost after firewall configuration:
- Serial Access: Use serial shell access to regain access
- Rule Review: Review firewall rules for blocking rules
- Default Policy: Check default policy setting
- Rule Order: Verify rule order is correct
- Temporary Disable: Temporarily disable firewall to regain access
Services Not Working
If services stop working:
- Service Ports: Verify required ports are allowed
- Protocol: Check protocol matches service requirements
- Direction: Verify direction (inbound/outbound) is correct
- Source/Destination: Check source and destination settings
- Rule Status: Verify rules are enabled
Rules Not Applying
If rules don't seem to apply:
- Rule Save: Verify rules were saved correctly
- Firewall Active: Check firewall is active
- Rule Order: Verify rule order allows desired traffic
- Default Policy: Check default policy isn't overriding rules
- Service Restart: Restart firewall service
Security Best Practices
Firewall Configuration
- Deny by Default: Use "Deny All" as default policy
- Least Privilege: Allow only necessary ports and IPs
- Specific Rules: Use specific IP ranges rather than "Any"
- Regular Review: Periodically review and update rules
- Documentation: Document all firewall rules and reasons
Network Security
- Network Segmentation: Use firewall with network segmentation
- Management Networks: Restrict management access to specific networks
- Service Isolation: Isolate services using firewall rules
- Monitoring: Monitor firewall logs regularly
- Updates: Keep JACE firmware updated for security
Related Topics
- How to gain access to the Serial Shell on a JACE
- How to restore connectivity on older JACE8000s after performing a Factory Reset
Additional Resources
- JACE-9000 Security Guide
- Firewall Configuration Best Practices
- Network Security Documentation
- JACE-9000 Technical Manual