Week-10

tags: 1061

1061 LSA week 10 (2017/11/22) 共筆 - mail / TCP/IP / 網路規劃

postfix demo

refer 1 refer 2

$ sudo /etc/postfix/virtual

virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = example.com

mailbox v.s. maildir

Mailbox

所有信件存放在同一個檔案 Fast

Maildir

每封信件個別爲一個檔案

format

  • current 編寫中的信
  • new
  • tmp 準備寄出的信

snail mail---->post mail

mutt

OSI layer

7.Application 6.Presentation 5.Session 4.Transport 3.Network 2.Data link 1.Physical

OSI vs TCP/IP Data Flow in the OSI Model Seven Layers - step by step

IP由來

  • length => 32bit (byte.byte.byte.byte) US -> .com -> ARPAnet

-> DARPA

-> NSA

  • 0Day exploit

内網連綫 溝通

  • 主要用mac address

外網連綫 溝通

  • 整個網路上面IP才是可以溝通的

ARP vs RARP

  • 有錯的就丟掉

ARP欺騙

網路剪刀手 宿舍 switch 有綁定 uplink, 因此在學校宿舍不管用

MITM - man in the middle attack https://blog.trendmicro.com.tw/?p=52362 BBI

HK : 1. telnet看網站(純文字) 2. 如何HTTPs的網站? nc 3. iptables正確用法, 指令一行一行寫出來。(加分:把5台server的Iptables都寫出來,且都有開ssh) hw

家用 AP

iptables 請至新共筆

link