12
IPtables IPtables By Thomas Aamodt By Thomas Aamodt

IP tables

  • Upload
    aamodt

  • View
    971

  • Download
    2

Embed Size (px)

DESCRIPTION

Short presentation on IP tables (5-6 min)

Citation preview

Page 1: IP tables

IPtablesIPtablesBy Thomas AamodtBy Thomas Aamodt

Page 2: IP tables

Goals of PresentationGoals of Presentation

• History about the linux firewall• Introduction of iptables

• Stateful inspection• Address translation• Packet mangling• Logging

• Protection

Page 3: IP tables

HistoryHistory

• Ipfirewall (Ipfw) 1994• Made by Alan Cox

• Ipchains/Iptables 1998/1999• Made by Rusty Russell

Page 4: IP tables

Introduction of iptablesIntroduction of iptables

• Netfilter Module• Kernel based• Examines packets

• Run on low Computer power• Built-in iptables Chains: INPUT,OUTPUT

and FORWARD

Page 5: IP tables

Stateful InspectionStateful Inspection

• Increased network security• Checks header infromation

• Iptables options: NEW,RELATED,INVALID,ESTABLISHED

Page 6: IP tables

Address TranslationAddress Translation

• Network Address Translation (NAT)• Transforms IP addresses• Most common use is Masquerading

• Iptables options: DNAT,SNAT,REDIRECT

Page 7: IP tables

Packet ManglingPacket Mangling

• Change/modify packets• Example prioritize traffic with TOS

• TOS options

• Iptables options: PREROUTING,POSTROUTING

Page 8: IP tables

LoggingLogging

• Log prefix notes

• Iptables options: LOG

Page 9: IP tables

Basic commands and tricksBasic commands and tricks

• Variables• Module Loading• Enable IP forwarding

• Flush rules• Flush nat tables• Flush Chains• Diffrent JUMPS (targets)• Policyes

Page 10: IP tables

Basic commands and tricksBasic commands and tricks

• Create new chains• Rules

• Make bash scripts to simplify your job!

Page 11: IP tables

ProtectionProtection

• Protection agains IP Spoofing• Make sure all NEW tcp packets are SYN

• SYN flood protection / DOS protection

Page 12: IP tables

SummerySummery

• First Delevloped for linux by Alan Cox• IPtables Delevloped by Rust Russell• States to run your iptables firewall on• Commands and Tricks• Protection