Changes

Jump to: navigation, search

OPS235 Lab 6 - CentOS7

35 bytes removed, 12:42, 24 June 2015
no edit summary
<li>This entry in the OUTPUT policy will therefore log all packets being sent out of the machine.</li>
<li>Try to access the Internet again. Because the policies have been set to DROP, you should be unsuccessful. However, every packet of data that your PC attempted to send out was logged. Let's have a look at the log file and analyze the data:<br><b><code><span style="color:#3366CC;font-size:1.2em;">tail /var/log/messages</span></code></b></li>
<li>This command shows us the last 10 lines of the file. While there are many things being logged to this file, the last thing we did was try to access the Internet so we should be able to see the data we need. Look for a line that looks similar to the following:<br /><blockquote><code>Mar 3 09Jun 24 12:2141:03 koala-laptop 26 c6host kernel: [90775.407304] IN= OUT=wlan0 lo SRC=192127.0.1680.1.107 DST=66127.2490.900.104 1 LEN=1470 52 TOS=0x00 PREC=0x00 TTL=64 ID=19752 16442 DF PROTO=TCP SPT=45431 57151 DPT=80 5902 WINDOW=108 1024 RES=0x00 ACK PSH URGP=0</code></blockquote></li>
<li>Your IP, host names and date will be different, but the one thing that should be the same is the DPT=80 value.</li>
<li>When your computer tried to send OUT a request to connect to the Internet using the WWW, the computer used a destination port of 80. This is the standard port for the WWW. Because we have set the default policy to DROP it drops these packets. The problem is we are dropping all packets. What if we just want to drop the WWW packets?</li>
13,420
edits

Navigation menu