Download presentation
Presentation is loading. Please wait.
1
Packet Flow Permutation within Linux
Student: Shih-Hsin Chien Adviser : Dr. Ying-Dar Lin Date : 2004/09/30
2
Outline Issue Packet flow with components Components compatibility
Conclusion Reference
3
Issues Packet flow within firewall, routing, NAT, VPN, IDS, CF, BM
How each component works and how each interact Provide admin to write firewall rules with fewer errors Add new components to gateway easily
4
Network socket buffer Data structure: sk_buff 欄位 意義 head 指向sk_buff的起點
指向真正資料的起點 tail 指向真正資料的終點 end 指向sk_buff的終點 len 真正資料的長度 truesize sk_buff的總長度
5
Packet processing internals
6
Complete packet flow
7
Compare with another flow
8
Some issues about permutation
Security: Firewall V.S. VPN Compatibility: VPN V.S. NAT Management: IDS V.S. Firewall
9
IPsec V.S. Firewall (security problem)
WANIPsecfirewallLAN Allow VPN traffic to be inspected Internet Security Threats Multiple Authentication Challenges WANfirewallIPsecLAN Protect from Internet security threats Not know VPN data after decryption
10
IPsec V.S. NAT (compatible problem)
WANNATIPsecLAN For AH Tunnel/Transport Mode (X) For ESP Transport Mode (X) For ESP Tunnel Mode (O) WANIPsecNATLAN Hide the real source IP address after be NAT-ed
11
IPsec V.S. NAT (cont.) How to be compatible Case 1: Case 2:
Use NAT before IPsec Case 2: IPsec packet not to be NAT-ed (iptables –t nat –A POSTROUTING –o eth0 –s gw_IP_addr –d \! Subnet_addr –j MASQUERADE) Encapsulating UDP packet Not change protocol but have more cost Change IPsec protocol ESP null replaces AH Checksum disable Not have more cost but only for special NAT RSIP protocol
12
IDS V.S. Firewall (management problem)
IDS->Firewall IDS can provide firewall with dynamic policy Firewall->IDS Internal network protection e.g. viruses and worms IDP (Intrusion Detection & Prevention)
13
Components permutation
back Firewall NAT Routing VPN IDS CF BM L/R D/D L/L R/R M/M R/L D/M I/M D/L D/I I/I M/I D/R front Lan to Wan/Wan to Lan M: must I: impossible L: likely R: rarely D: don’t care
14
Components permutation (cont.)
Firewall & NAT wanNATfirewalllan NAT & routing wanNATroutinglan VPN & routing wanVPNroutinglan CF Handle at Application layer
15
Conclusion VPN is protected by firewall
Packet must filter once again after de-VPN NAT before VPN IDS provides firewall dynamic policy No absolute permutation
16
Reference 蔡孟甫、曹世強、林盈達,「NetBSD核心網路安全模組: IPFilter及IPSec」;
RFC3715 ”IPsec-Network Address Translation Compatibility Requirements” B. Aboba, W. Dixon, Mar. 2004 IPtables, Dansguardian, VPN 的難題:Firewall 與 NAT 的配置」 Linux IP Masquerade HOWTO,
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.