SlideShare una empresa de Scribd logo
1 de 12
I Pt abl e s
By T homas
Aamodt
Goals of Presentation
• History about the linux firewall
• Introduction of iptables

•   Stateful inspection
•   Address translation
•   Packet mangling
•   Logging

• Protection
History
• Ipfirewall (Ipfw) 1994
• Made by Alan Cox

• Ipchains/Iptables 1998/1999
• Made by Rusty Russell
Introduction of iptables
• Netfilter Module
• Kernel based
• Examines packets

• Run on low Computer power
• Built-in iptables Chains: INPUT,OUTPUT
  and FORWARD
Stateful Inspection
• Increased network security
• Checks header infromation

• Iptables options:
  NEW,RELATED,INVALID,ESTABLISHED
Address Translation
• Network Address Translation (NAT)
• Transforms IP addresses
• Most common use is Masquerading

• Iptables options: DNAT,SNAT,REDIRECT
Packet Mangling
• Change/modify packets
• Example prioritize traffic with TOS

• TOS options

• Iptables options:
  PREROUTING,POSTROUTING
Logging
• Log prefix notes

• Iptables options: LOG
Basic commands and tricks
• Variables
• Module Loading
• Enable IP forwarding

•   Flush rules
•   Flush nat tables
•   Flush Chains
•   Diffrent JUMPS (targets)
•   Policyes
Basic commands and tricks
• Create new chains
• Rules

• Make bash scripts to simplify your job!
Protection
• Protection agains IP Spoofing
• Make sure all NEW tcp packets are SYN

• SYN flood protection / DOS protection
Summery
•   First Delevloped for linux by Alan Cox
•   IPtables Delevloped by Rust Russell
•   States to run your iptables firewall on
•   Commands and Tricks
•   Protection

Más contenido relacionado

La actualidad más candente

Packet Filtering Using Iptables
Packet Filtering Using IptablesPacket Filtering Using Iptables
Packet Filtering Using Iptables
Ahmed Mekkawy
 
In depth understanding network security
In depth understanding network securityIn depth understanding network security
In depth understanding network security
Thanawan Tuamyim
 

La actualidad más candente (17)

Basics of firewall, ebtables, arptables and iptables
Basics of firewall, ebtables, arptables and iptablesBasics of firewall, ebtables, arptables and iptables
Basics of firewall, ebtables, arptables and iptables
 
Packet Filtering Using Iptables
Packet Filtering Using IptablesPacket Filtering Using Iptables
Packet Filtering Using Iptables
 
Understanding iptables
Understanding iptablesUnderstanding iptables
Understanding iptables
 
Iptables presentation
Iptables presentationIptables presentation
Iptables presentation
 
introduction of iptables in linux
introduction of iptables in linuxintroduction of iptables in linux
introduction of iptables in linux
 
Ip tables
Ip tablesIp tables
Ip tables
 
IPTables Primer - Part 2
IPTables Primer - Part 2IPTables Primer - Part 2
IPTables Primer - Part 2
 
IPTABLES
IPTABLESIPTABLES
IPTABLES
 
IP Tables Primer - Part 1
IP Tables Primer - Part 1IP Tables Primer - Part 1
IP Tables Primer - Part 1
 
03 linuxfirewall1
03 linuxfirewall103 linuxfirewall1
03 linuxfirewall1
 
In depth understanding network security
In depth understanding network securityIn depth understanding network security
In depth understanding network security
 
Creating a firewall in UBUNTU
Creating a firewall in UBUNTUCreating a firewall in UBUNTU
Creating a firewall in UBUNTU
 
nftables - the evolution of Linux Firewall
nftables - the evolution of Linux Firewallnftables - the evolution of Linux Firewall
nftables - the evolution of Linux Firewall
 
Stupid iptables tricks
Stupid iptables tricksStupid iptables tricks
Stupid iptables tricks
 
IPv6 for Pentesters
IPv6 for PentestersIPv6 for Pentesters
IPv6 for Pentesters
 
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
 
Wireshark
WiresharkWireshark
Wireshark
 

Similar a IP tables

Arpwall - protect from ARP spoofing
Arpwall - protect from ARP spoofingArpwall - protect from ARP spoofing
Arpwall - protect from ARP spoofing
Ammar WK
 
Captura de pacotes no KernelSpace
Captura de pacotes no KernelSpaceCaptura de pacotes no KernelSpace
Captura de pacotes no KernelSpace
PeslPinguim
 
XFLTReaT: a new dimension in tunnelling (BruCON 0x09 2017)
XFLTReaT: a new dimension in tunnelling (BruCON 0x09 2017)XFLTReaT: a new dimension in tunnelling (BruCON 0x09 2017)
XFLTReaT: a new dimension in tunnelling (BruCON 0x09 2017)
Balazs Bucsay
 
Trick or XFLTReaT a.k.a. Tunnel All The Things
Trick or XFLTReaT a.k.a. Tunnel All The ThingsTrick or XFLTReaT a.k.a. Tunnel All The Things
Trick or XFLTReaT a.k.a. Tunnel All The Things
Balazs Bucsay
 

Similar a IP tables (20)

IP routing in linux
IP routing in linuxIP routing in linux
IP routing in linux
 
Network
NetworkNetwork
Network
 
Arpwall - protect from ARP spoofing
Arpwall - protect from ARP spoofingArpwall - protect from ARP spoofing
Arpwall - protect from ARP spoofing
 
Chapter 6 firewall
Chapter 6 firewallChapter 6 firewall
Chapter 6 firewall
 
4. IPv6 Security - Workshop mit Live Demo - Marco Senn Fortinet
4. IPv6 Security - Workshop mit Live Demo - Marco Senn Fortinet4. IPv6 Security - Workshop mit Live Demo - Marco Senn Fortinet
4. IPv6 Security - Workshop mit Live Demo - Marco Senn Fortinet
 
IPv6 Security - Workshop mit Live Demo
IPv6 Security - Workshop mit Live DemoIPv6 Security - Workshop mit Live Demo
IPv6 Security - Workshop mit Live Demo
 
High performace network of Cloud Native Taiwan User Group
High performace network of Cloud Native Taiwan User GroupHigh performace network of Cloud Native Taiwan User Group
High performace network of Cloud Native Taiwan User Group
 
Linux firewall
Linux firewallLinux firewall
Linux firewall
 
fgont-h2hc-2020-ipv6-security.pdf
fgont-h2hc-2020-ipv6-security.pdffgont-h2hc-2020-ipv6-security.pdf
fgont-h2hc-2020-ipv6-security.pdf
 
DevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructure
DevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructureDevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructure
DevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructure
 
[2019.01.12] hst iptables 101 to 301
[2019.01.12] hst   iptables 101 to 301[2019.01.12] hst   iptables 101 to 301
[2019.01.12] hst iptables 101 to 301
 
Network Security IPv4 plus IPv6.pdf
Network Security IPv4 plus IPv6.pdfNetwork Security IPv4 plus IPv6.pdf
Network Security IPv4 plus IPv6.pdf
 
Captura de pacotes no KernelSpace
Captura de pacotes no KernelSpaceCaptura de pacotes no KernelSpace
Captura de pacotes no KernelSpace
 
XFLTReaT: a new dimension in tunnelling (BruCON 0x09 2017)
XFLTReaT: a new dimension in tunnelling (BruCON 0x09 2017)XFLTReaT: a new dimension in tunnelling (BruCON 0x09 2017)
XFLTReaT: a new dimension in tunnelling (BruCON 0x09 2017)
 
IPV6 - Threats and Countermeasures / Crash Course
IPV6 - Threats and Countermeasures / Crash CourseIPV6 - Threats and Countermeasures / Crash Course
IPV6 - Threats and Countermeasures / Crash Course
 
Packet analysis using wireshark
Packet analysis using wiresharkPacket analysis using wireshark
Packet analysis using wireshark
 
IPv4aaS tutorial and hands-on
IPv4aaS tutorial and hands-onIPv4aaS tutorial and hands-on
IPv4aaS tutorial and hands-on
 
Network Securities.pptx
Network Securities.pptxNetwork Securities.pptx
Network Securities.pptx
 
Trick or XFLTReaT a.k.a. Tunnel All The Things
Trick or XFLTReaT a.k.a. Tunnel All The ThingsTrick or XFLTReaT a.k.a. Tunnel All The Things
Trick or XFLTReaT a.k.a. Tunnel All The Things
 
pps Matters
pps Matterspps Matters
pps Matters
 

IP tables

  • 1. I Pt abl e s By T homas Aamodt
  • 2. Goals of Presentation • History about the linux firewall • Introduction of iptables • Stateful inspection • Address translation • Packet mangling • Logging • Protection
  • 3. History • Ipfirewall (Ipfw) 1994 • Made by Alan Cox • Ipchains/Iptables 1998/1999 • Made by Rusty Russell
  • 4. Introduction of iptables • Netfilter Module • Kernel based • Examines packets • Run on low Computer power • Built-in iptables Chains: INPUT,OUTPUT and FORWARD
  • 5. Stateful Inspection • Increased network security • Checks header infromation • Iptables options: NEW,RELATED,INVALID,ESTABLISHED
  • 6. Address Translation • Network Address Translation (NAT) • Transforms IP addresses • Most common use is Masquerading • Iptables options: DNAT,SNAT,REDIRECT
  • 7. Packet Mangling • Change/modify packets • Example prioritize traffic with TOS • TOS options • Iptables options: PREROUTING,POSTROUTING
  • 8. Logging • Log prefix notes • Iptables options: LOG
  • 9. Basic commands and tricks • Variables • Module Loading • Enable IP forwarding • Flush rules • Flush nat tables • Flush Chains • Diffrent JUMPS (targets) • Policyes
  • 10. Basic commands and tricks • Create new chains • Rules • Make bash scripts to simplify your job!
  • 11. Protection • Protection agains IP Spoofing • Make sure all NEW tcp packets are SYN • SYN flood protection / DOS protection
  • 12. Summery • First Delevloped for linux by Alan Cox • IPtables Delevloped by Rust Russell • States to run your iptables firewall on • Commands and Tricks • Protection