The device console is used to perform various checks on the system and to view logs files for troubleshooting.
When using the command line, the CLI console requires that you use valid syntax and conform to expected input constraints. It will reject invalid commands.
Sophos XG Firewall has inbuilt help at the command prompt itself to help users with the syntax without the need to exit from the CLI.
To view the list of available commands go to Option 4 (Device Console) and press Tab. The following is displayed:
Once you start typing a command you can press Tab again to view the list of arguments that are supported or required. Example: When you type ping and press Tab, you are presented with the list of parameters that are required or allowed as shown below:
When attempting to upload to Sophos XG it requires the key be in key format. I ran an openssl command to convert privkey.pem to privkey.key. I then went to Sophos XG to upload thinking all would be well. Unfortunately I received this error:' Certificate could not be uploaded due to invalid private key or passphrase. Choose a proper key '. Sophos XG Netflow. Sophos has been configured to use 9999 port for netflow, and via tcpdump I can see the WUG server reaching out to the Sophos. How to: Dump on XG. I want to share my experience in dumping on XG with you. Most of the time, i have to write down, how it is done, so i will summarize it here. First of all, get a SSH Session to your XG. You have to use the 'admin' to login. Switch to Advanced Shell (Option 5. We can now perform a tcpdump.
Type the command and then press ? to view the list of arguments supported with descriptions. Example: when you type ping and press ?, all parameters are shown with descriptions.
To return the main menu type exit.
Below you will find a list of CLI commands and descriptions of their functions.
Use set to configure various system parameters.
Use system to configure various settings.
Clears the screen.
Sophos Utm Tcpdump Command
Disables remote connectivity over SSH, if enabled. By default it is not enabled. The appliance will no longer listen on port 22 for new connections, and existing ones will be terminated. Refer to enableremote to allow remote SSH connections.
Query internet domain name servers to resolve hostnames.
Parameter list & description
Query internet domain name servers to resolve IPv6 hostnames.
Parameter list and description
Displays the packets dropped by firewall rules. It will provide connection details and details of the packets processed by the device. This will help administrators to troubleshoot firewall rules. You can also filter the dropped packets.
Allows remote SSH connections to Sophos XG Firewall. The appliance will listen for SSH connections on the specified port and will allow connections from the specified addresses.
Sends ICMP ECHO_REQUEST packets to IPv4 network hosts and listens for the corresponding ECHO_REPLY.
Send ICMPv6 ECHO_REQUEST packets to IPv6 network hosts and listens for the corresponding ECHO_REPLY.
Specifies the number of data bytes to be sent. The default is 56, which translates into 64 ICMP data bytes when combined with the 8 bytes of ICMP header data.
Note Expressions can be combined using logical operators AND, OR and NOT. Make sure when using different combinations to encapsulate the full query within single quotes.
Use telnet to connect to another remote computer. Can be used to check if a system is accepting connections on a specific port. Telnet data is sent in clear text so for admin tasks it is advised to use SSH when possible.
Use telnet6 to connect via telnet to an IPv6 addressed system
Traceroute tracks the route packets take from an IPv4 network on their way to a specific host. It utilizes the IP protocol’s time to live (TTL) field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along the path to the host.
Traceroute tracks the route packets take from an IPv6 network on their way to a specific host. It utilizes the IP protocol’s time to live (TTL) field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along the path to the host.
Sophos Xg Tcpdump Operation Not Allowed
Sophos Xg Tcpdump Wireshark
Displays configured parameters of the following firewall settings.