{"id":261,"date":"2012-02-07T00:23:14","date_gmt":"2012-02-07T05:23:14","guid":{"rendered":"http:\/\/josephpcohen.com\/w\/?p=261"},"modified":"2015-03-27T11:53:18","modified_gmt":"2015-03-27T15:53:18","slug":"iptables-introduction-and-overview","status":"publish","type":"post","link":"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/","title":{"rendered":"IPTables : Introduction and Overview"},"content":{"rendered":"<div class=\"row\"><a href=\"http:\/\/josephpcohen.com\/w\/wp-content\/uploads\/2014\/04\/GTFOLecture-iptables.pdf\"><br \/>\n<img decoding=\"async\" loading=\"lazy\" width=\"40\" height=\"40\" class=\"size-full wp-image-77\" alt=\"pdf\" src=\"http:\/\/josephpcohen.com\/w\/wp-content\/uploads\/2013\/11\/pdf.png\" \/><br \/>\nDownload the lecture here<\/a><a href=\"http:\/\/www.youtube.com\/embed\/Kmgc2vwkD7E\"><br \/>\n<img decoding=\"async\" class=\"size-full wp-image-77\" alt=\"pdf\" src=\"http:\/\/josephpcohen.com\/w\/wp-content\/uploads\/2014\/04\/video.png\" \/><br \/>\nWatch the lecture here<\/a><\/div>\n<p><!--more--><\/p>\n<p>Here is some text from the slides:<\/p>\n<p>+ what is iptables?<br \/>\niptables is the userspace command line program used to configure the linux packet filtering ruleset<br \/>\n + a.k.a. firewall<\/p>\n<p>what?<br \/>\na packet filter is a piece of software that looks at the headers of packets as they pass through, and decides the fate of the entire packet<br \/>\nwhy?<br \/>\n+ control<br \/>\n allow only what you specify<br \/>\n+ security<br \/>\n protect against evil >:|<br \/>\n+ watchfulness<br \/>\n alerts of abnormal activity<\/p>\n<p>traffic can be characterized by:<br \/>\n+ source and\/or destination ip<br \/>\n trust certain hosts<br \/>\n+ source and\/or destination port<br \/>\n allow specific services<br \/>\n+ protocol type<br \/>\n tcp, udp, icmp, etc&#8230;<br \/>\n+ additional parameters<br \/>\n e.g. state, <\/p>\n<p>+ review: ports<br \/>\nOnce a packet has reached its destination host, it is sent to a specific port.<br \/>\n+ about 65,000 available ports per host<br \/>\n+ the first 1024 are reserved to privileged<br \/>\n processes such as daemons<br \/>\n+ \/etc\/services defines well-known ports<br \/>\n e.g. Telnet:23, FTP:21, HTTP:80<\/p>\n<p>+ review: protocols<br \/>\nRepresent the kind of traffic being sent.<br \/>\n+ tcp \/\/ transmission control protocol<br \/>\n maintains a connection between two hosts<br \/>\n+ udp \/\/ user datagram protocol<br \/>\n sends data statelessly, without<br \/>\n establishing a connection<br \/>\n+ icmp \/\/ internet control message protocol<br \/>\n administrative functions such as PING<\/p>\n<p>+ basic operations<br \/>\n-L List the rules.<br \/>\n-I <n> Insert a new rule before <n>.<br \/>\n-A Append a new rule at end of chain.<br \/>\n-R <n> Replace rule <n> with new rule.<br \/>\n-D <n> Delete rule <n>.<br \/>\n-F Flush the chain (delete all rules).<br \/>\n-X <chain> Delete the chain<br \/>\n-P <\/p>\n<p> Set <\/p>\n<p> as default policy for chain.<br \/>\n-t <\/p>\n<table> Specify table. default is<br \/>\nfilter<br \/>\n-j <target> Jump to chain target<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Download the lecture here Watch the lecture here<\/p>\n<\/div>","protected":false},"author":1,"featured_media":263,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>IPTables : Introduction and Overview - Joseph Paul Cohen PhD<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"IPTables : Introduction and Overview - Joseph Paul Cohen PhD\" \/>\n<meta property=\"og:description\" content=\"Download the lecture here Watch the lecture here\" \/>\n<meta property=\"og:url\" content=\"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/\" \/>\n<meta property=\"og:site_name\" content=\"Joseph Paul Cohen PhD\" \/>\n<meta property=\"article:published_time\" content=\"2012-02-07T05:23:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-03-27T15:53:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/josephpcohen.com\/w\/wp-content\/uploads\/2014\/04\/GTFOLecture-iptables.pdf-300x225.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"225\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Joseph Paul Cohen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Joseph Paul Cohen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/\"},\"author\":{\"name\":\"Joseph Paul Cohen\",\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684\"},\"headline\":\"IPTables : Introduction and Overview\",\"datePublished\":\"2012-02-07T05:23:14+00:00\",\"dateModified\":\"2015-03-27T15:53:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/\"},\"wordCount\":258,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684\"},\"articleSection\":[\"Presentations\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/\",\"url\":\"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/\",\"name\":\"IPTables : Introduction and Overview - Joseph Paul Cohen PhD\",\"isPartOf\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/#website\"},\"datePublished\":\"2012-02-07T05:23:14+00:00\",\"dateModified\":\"2015-03-27T15:53:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/josephpcohen.com\/w\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"IPTables : Introduction and Overview\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/josephpcohen.com\/w\/#website\",\"url\":\"https:\/\/josephpcohen.com\/w\/\",\"name\":\"Joseph Paul Cohen PhD\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/josephpcohen.com\/w\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684\",\"name\":\"Joseph Paul Cohen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a810b57939e75247f570c9094e7bd16e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a810b57939e75247f570c9094e7bd16e?s=96&d=mm&r=g\",\"caption\":\"Joseph Paul Cohen\"},\"logo\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"IPTables : Introduction and Overview - Joseph Paul Cohen PhD","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/","og_locale":"en_US","og_type":"article","og_title":"IPTables : Introduction and Overview - Joseph Paul Cohen PhD","og_description":"Download the lecture here Watch the lecture here","og_url":"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/","og_site_name":"Joseph Paul Cohen PhD","article_published_time":"2012-02-07T05:23:14+00:00","article_modified_time":"2015-03-27T15:53:18+00:00","og_image":[{"width":300,"height":225,"url":"https:\/\/josephpcohen.com\/w\/wp-content\/uploads\/2014\/04\/GTFOLecture-iptables.pdf-300x225.png","type":"image\/png"}],"author":"Joseph Paul Cohen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Joseph Paul Cohen","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/#article","isPartOf":{"@id":"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/"},"author":{"name":"Joseph Paul Cohen","@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684"},"headline":"IPTables : Introduction and Overview","datePublished":"2012-02-07T05:23:14+00:00","dateModified":"2015-03-27T15:53:18+00:00","mainEntityOfPage":{"@id":"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/"},"wordCount":258,"commentCount":0,"publisher":{"@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684"},"articleSection":["Presentations"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/","url":"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/","name":"IPTables : Introduction and Overview - Joseph Paul Cohen PhD","isPartOf":{"@id":"https:\/\/josephpcohen.com\/w\/#website"},"datePublished":"2012-02-07T05:23:14+00:00","dateModified":"2015-03-27T15:53:18+00:00","breadcrumb":{"@id":"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/josephpcohen.com\/w\/iptables-introduction-and-overview\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/josephpcohen.com\/w\/"},{"@type":"ListItem","position":2,"name":"IPTables : Introduction and Overview"}]},{"@type":"WebSite","@id":"https:\/\/josephpcohen.com\/w\/#website","url":"https:\/\/josephpcohen.com\/w\/","name":"Joseph Paul Cohen PhD","description":"","publisher":{"@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/josephpcohen.com\/w\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684","name":"Joseph Paul Cohen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a810b57939e75247f570c9094e7bd16e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a810b57939e75247f570c9094e7bd16e?s=96&d=mm&r=g","caption":"Joseph Paul Cohen"},"logo":{"@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/posts\/261"}],"collection":[{"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":4,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"predecessor-version":[{"id":693,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/posts\/261\/revisions\/693"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/media\/263"}],"wp:attachment":[{"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/categories?post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/tags?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}