Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

UNIX: Command: cat firewall.log | head OUTPUT OF COMMAND: QUESTION 5: #Version 1.5 #Software: Microsoft Windows Firewall #Time Format: local #Fields: date time action protocol

UNIX:

Command:

cat firewall.log | head

OUTPUT OF COMMAND:

QUESTION 5:

#Version 1.5 #Software: Microsoft Windows Firewall #Time Format: local #Fields: date time action protocol src-ip dst-ip src-port dst-port size

2018-05-25 11:47:02 FORWARD TCP 11.100.6.64 10.202.41.103 2176 7 953880 2018-02-22 03:34:00 FORWARD UDP 11.102.7.64 10.202.40.101 2075 65 116445 2018-03-20 04:47:11 REJECT UDP 9.102.8.65 10.202.41.101 2189 97 985631 2018-11-08 14:14:47 REJECT TCP 10.101.8.64 10.202.40.103 2158 63 164259 2018-07-24 22:46:54 REJECT TCP 11.100.6.65 10.202.41.103 2089 61 991882

(20 points)

Write a command to display the src-ip value for events that match

the following criteria;

-

The size field is less than or equal to 500

-

the dst-ip field starts with 10.202.40

Part 2 - 20 points

For this part, you will need to make use of the

sort

,

tail

and/or

head

programs. Study the man

pages for these programs to assist you with answering this question.

QUESTION 6:

(10 points Each)

Write a command to print the date and time of the earliest event in

the firewall.log file.

Create a second command to print the date and time of the latest

event in the file.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

T Sql Window Functions For Data Analysis And Beyond

Authors: Itzik Ben Gan

2nd Edition

0135861446, 978-0135861448

More Books

Students also viewed these Databases questions

Question

LOQ 15-5: Do psychological disorders predict violent behavior?

Answered: 1 week ago