<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Firewall on Amit Agarwal Linux Blog</title>
    <link>/tags/firewall/</link>
    <description>Recent content in Firewall on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 16 May 2016 01:06:06 +0000</lastBuildDate>
    
	<atom:link href="/tags/firewall/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>firewalld – enable logging</title>
      <link>/2016/05/16/firewalld-enable-logging/</link>
      <pubDate>Mon, 16 May 2016 01:06:06 +0000</pubDate>
      
      <guid>/2016/05/16/firewalld-enable-logging/</guid>
      <description>&lt;p&gt;firewalld by default does not allow packets that are dropped. In some cases, you need to find out if some packet is being dropped or not. For doing so you may want to enable logging of dropped packets with the following command:&lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;sudo firewall-cmd  --set-log-denied=all&lt;/pre&gt;
&lt;p&gt;This will enable logging all the packets and help you figure out if firewalld is dropping the packet.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>configure firewall – the easy way.</title>
      <link>/2013/04/24/configure-firewall-easy-way/</link>
      <pubDate>Wed, 24 Apr 2013 00:50:17 +0000</pubDate>
      
      <guid>/2013/04/24/configure-firewall-easy-way/</guid>
      <description>&lt;p&gt;It is good practice to keep iptables/&lt;a class=&#34;zem_slink&#34; title=&#34;Firewall (computing)&#34; href=&#34;http://en.wikipedia.org/wiki/Firewall_%28computing%29&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;firewall&lt;/a&gt; enabled. But configuring it is difficult, do you agree. Not any more 🙂&lt;/p&gt;
&lt;p&gt;Install firewall-config&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;sudo yum install firewall-config&lt;/pre&gt;
&lt;p&gt;This will install a &lt;a class=&#34;zem_slink&#34; title=&#34;Graphical user interface&#34; href=&#34;http://en.wikipedia.org/wiki/Graphical_user_interface&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;GUI&lt;/a&gt; application, which you can run with “Firewall” application in the dash or with “firewall-config” in terminal. It is pretty straight forward to use this tool, even if you don’t have much knowledge on Firewall/iptables.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Allow incoming/outgoing ports on iptables</title>
      <link>/2012/11/27/incomingoutgoing-ports-iptables/</link>
      <pubDate>Tue, 27 Nov 2012 00:22:23 +0000</pubDate>
      
      <guid>/2012/11/27/incomingoutgoing-ports-iptables/</guid>
      <description>&lt;figure style=&#34;width: 300px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://commons.wikipedia.org/wiki/File:Netfilter-packet-flow.svg&#34; target=&#34;_blank&#34;&gt;&lt;img class=&#34;zemanta-img-inserted zemanta-img-configured&#34; title=&#34;Schematic for the packet flow paths through Li...&#34; src=&#34;http://upload.wikimedia.org/wikipedia/commons/thumb/3/37/Netfilter-packet-flow.svg/300px-Netfilter-packet-flow.svg.png&#34; alt=&#34;Schematic for the packet flow paths through Li...&#34; width=&#34;300&#34; height=&#34;188&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;Schematic for the packet flow paths through Linux networking and Xtables (Photo credit: Wikipedia)&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Last couple of years, I just used to disable &lt;a class=&#34;zem_slink&#34; title=&#34;Iptables&#34; href=&#34;http://www.netfilter.org/&#34; rel=&#34;homepage&#34; target=&#34;_blank&#34;&gt;iptables&lt;/a&gt; on my system, this time I decided not to disable it and keep it enabled.&lt;/p&gt;
&lt;p&gt;So far so good, now comes the tricky part, I have http server enabled on my system and since this is on &lt;a class=&#34;zem_slink&#34; title=&#34;Local area network&#34; href=&#34;http://en.wikipedia.org/wiki/Local_area_network&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;local network&lt;/a&gt; with already firewall and other security in place so I can allow all incoming to my system and similarly I need to enable &lt;a class=&#34;zem_slink&#34; title=&#34;X display manager (program type)&#34; href=&#34;http://en.wikipedia.org/wiki/X_display_manager_%28program_type%29&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;XDMCP&lt;/a&gt; outgoing. So, I can add the rules like this :&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
