Businesscom Sentinel PF Operating System Handbook
Total Page:16
File Type:pdf, Size:1020Kb
BusinessCom Sentinel PF Operating System Handbook BusinessCom Networks Limited Glacis Road, Portland House, Suite 2 Gibralter, GX11 1AA December 2014, Revision D Copyright 2013-2014 BusinessCom Networks Limited Glacis Road, Portland House, Suite 2, Gibralter, GX11 1AA All rights reserved. BusinessCom Networks Limited has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without limitation, these intellectual property rights may include one or more U.S. patents or pending patent applications in the U.S. and in other countries. Portions Copyright © 2005 - 2013 Peter N. M. Hansteen, Portions Copyright © 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 The FreeBSD Documentation Project. Portions Copyright © Wikipedia. Portions Copyright © OpenVPN Technologies, Inc. U.S. Government Rights – Commercial software. Government users are subject to the BusinessCom Networks Limited standard license agreement and applicable provisions of the FAR and its supplements. This distribution may include materials developed by third parties. Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. Intel is a trademark or registered trademark of Intel Corporation or its subsidiaries in the United States and other countries. Intel Inside is a trademark or registered trademark of Intel Corporation or its subsidiaries in the United States and other countries. NVIDIA is a trademark or registered trademark of NVIDIA Corporation or its subsidiaries in the United States and other countries. LSI is a trademark or registered trademark of LSI Corporation or its subsidiaries in the United States and other countries. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this document, and the FreeBSD Project was aware of the trademark claim, the designations have been followed by the “™” or the “®” symbol. FreeBSD is a registered trademark of the FreeBSD Foundation. Heidelberg, Helvetica, Palatino, and Times Roman are either registered trademarks or trademarks of Heidelberger Druckmaschinen AG in the U.S. and other countries. IEEE, POSIX, and 802 are registered trademarks of Institute of Electrical and Electronics Engineers, Inc. in the United States. Intel, Celeron, EtherExpress, i386, i486, Itanium, Pentium, and Xeon are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. Linux is a registered trademark of Linus Torvalds. Motif, OSF/1, and UNIX are registered trademarks and IT DialTone and The Open Group are trademarks of The Open Group in the United States and other countries. SAP, R/3, and mySAP are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. Products covered by and information contained in this publication are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical or biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited. THIS DOCUMENTATION IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BUSINESSCOM NETWORKS LIMITED BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Do not discard electronic products in household trash. All waste electronics equipment should be recycled according to local regulations. Information for the recycler: Please cut off Lithium battery, if present, for separate recycling. ` Contents Preface 11 Typographic Conventions 11 Naming Conventions 11 About Sentinel PF 12 Deployment 12 Deployment: Branch Office 13 Deployment: Wireless ISP 14 Customer Service 15 BusinessCom Welcomes Your Comments 15 Warranty Policy 15 Limitations of Warranty 16 Exclusive Remedies 16 Electrical Safety 17 Change History 18 Installation Overview 20 Process Flow 20 Required Experience 21 Required Equipment and Software 21 Blackbird and Westwind: Checking Package Contents 22 D2, D2W and Sentinel 3: Checking Package Contents 22 Precautions 22 Physical Connections 23 Blackbird and Westwind: Front Panel 23 Blackbird and Westwind: Motherboard 24 Blackbird: LAN and WAN Ethernet Ports 24 Westwind: LAN and WAN Ethernet Ports 25 Blackbird and Westwind: Ethernet Indicator Lights 26 D2, D2W: Rear Panel Motherboard 27 Sentinel 3: Rear Panel Motherboard 28 Powering Sentinel On and Off 29 To Power On Sentinel 29 To Power Off Sentinel 29 Command Line Interface 30 Introduction to CLI 30 CLI Prompt 31 CLI Functionality Overview 31 Logout (SSH Only) 32 Assign Interfaces 32 To Assign Interfaces 33 Set Interface(s) IP Address 34 To Set Interface IP Address 34 Reset GUI Password/Reset To Factory Defaults 34 To Reset Sentinel 34 Ping host 35 CLI 35 View Network Connections 36 To Show Connections With Most Packet Rate 38 To Show Connections With Most Traffic 38 To Show Oldest Connections 38 Filter Logs 38 Restart GUI 38 Web GUI 39 Introduction to Web GUI 39 To Connect to Web GUI 39 Initial Configuration Steps 41 First Steps 41 Web GUI: System 42 Cert Manager 42 To Create New Certificate Authority (CA) 42 To Create New User or Server Certificate 43 General Setup 44 Packages 45 Routing 47 To Add New Gateway 47 To Add New Static Route 48 To Create New Gateway Group 49 User Manager 49 To Create New User 50 To Create New Group 50 To Assign Priveledges To A Group 51 To Use LDAP or RADIUS As Authentication 51 Web GUI: Interfaces 52 (assign) 52 To Create Interface Group 52 To Use Sentinel As WPA Access Point 54 To Use Sentinel As WPA Client 55 To Create a VLAN 56 To Create QinQ Interface 57 To Create PPP Interface 58 To Create GRE Tunnel 59 To Create GIF Tunnel 60 To Create Bridge 61 LAN, WAN, OPT1 and Other Interface Menus 65 Web GUI: Firewall 67 Aliases 67 To Create Alias 67 NAT 68 Rules 72 To Create Firewall Rule 74 To Move Rule 74 Schedules 78 To Create Schedule 79 Traffic Shaper 80 To Create Limiter 89 Use Limiters To Prioritize LAN Users 91 To Shape Traffic via Layer 7 93 Virtual IPs 95 Web GUI: Services 97 To Show Bandwidth Chart For Individual IP 98 Captive Portal 100 To Start Using Vouchers In Your LAN 106 DHCP Relay and DHCPv6 Relay 107 To Enable DHCP Relay 107 DHCP Server and DHCPv6 Server/RA 107 To Add Static Mapping 109 DNS Forwarder 110 To Enable DNS Forwarder 110 To Add DNS Host Override 111 To Add DNS Domain Override 111 Dynamic DNS 112 To Use Dynamic DNS 112 IGMP Proxy 113 To Enable IGMP Proxy 113 Load Balancer 114 To Create Internal Server Pool 115 To Create Virtual Server 115 NTP 116 OLSR 116 For Transparent PEP HTTP Redirect 118 PPPoE Server 119 For PEP Acceleration with HTTP Proxy Cache 129 RIP 132 SNMP 132 To Enable SNMP Daemon 134 To Create New NIDS Suppress List 137 To Edit NIDS Suppress List 137 UPnP & NAT-PMP 145 Wake on LAN 146 Web GUI: VPN 147 IPSec 147 L2TP 151 OpenVPN 152 PPTP 157 Web GUI: Status 159 CARP (failover) 159 Dashboard 159 DHCP Leases and DHCPv6 Leases 159 Filter Reload 159 Gateways 159 Interfaces 160 IPSec 160 Load Balancer 161 Network Monitor 161 NTP 161 OpenVPN 161 Package Logs 161 Queues 162 RRD Graphs 163 Services 163 System Logs 163 Traffic Graph 164 UPnP & NAT-PMP Status 164 Web GUI: Diagnostics 165 ARP Table 165 Authentication 165 Backup/Restore 166 To Backup Current Configuration 166 To Restore Configuration From File 166 To View Changes Between Configurations 167 Command Prompt 167 DNS Lookup 167 Edit File 167 Factory Defaults 168 To Reset Sentinel 168 Halt System 168 Limiter Info 168 Packet Capture 168 pfInfo 169 pfTop 170 Ping 170 Reboot 170 Routes 170 SMART Status 171 States 172 States Summary 173 System Activity 174 Tables 174 Traceroute 174 NanoBSD 174 NDP Table 174 Sockets 174 Test Port 175 Redundancy 176 Sentinel Redundancy Overview 176 Example CARP Redundant Configuration 177 Redundancy Configuration Example 178 Multiple WAN Connections 181 Mutli-WAN Environment 181 Example Redundant Multi-WAN Configuration 182 State Filter Expressions 183 Netmask/CIDR Translation Table 185 Factory Default Settings 186 Additional Support 187 DiffServ Classification & Marking 188 NIDS Incidents Classification 190 Sentinel D2 RS-232 Console Cable 195 Troubleshooting 196 Boot 196 Run-Time 196 Services 197 Preface The BusinessCom Sentinel PF Operating System Handbook provides instructions for network administrators and field engineers deploying Sentinel PF operating system based hardware servers (Sentinel thereafter); as well as any other personnel involved into the installation,operation or monitoring of networks featuring Sentinel. Typographic Conventions The following table describes the typographic conventions that are used in this book. TABLE P–1 Typographic Conventions Typeface Meaning Example AaBbCc123 The names of commands, files, and directories, and onscreen computer output Edit your .login file. AaBbCc123 What you type, contrasted with onscreen computer output machine_name% su aabbcc123 Placeholder: replace with a real name or value The command to remove a file is rm filename.