<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to configure IPTables in suse linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651902#M41281</link>
    <description>Hi Senthil,&lt;BR /&gt;&lt;BR /&gt;Some more links- &lt;BR /&gt;&lt;A href="http://www.topology.org/linux/fwsuse.html" target="_blank"&gt;http://www.topology.org/linux/fwsuse.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.linux.com/archive/feed/44818" target="_blank"&gt;http://www.linux.com/archive/feed/44818&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
    <pubDate>Wed, 23 Jun 2010 14:41:18 GMT</pubDate>
    <dc:creator>P Muralidhar Kini</dc:creator>
    <dc:date>2010-06-23T14:41:18Z</dc:date>
    <item>
      <title>How to configure IPTables in suse linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651900#M41279</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;There is one suse linux 9 (SLES 9) server running samba service. &lt;BR /&gt;&lt;BR /&gt;I am not able to write or copy the files under samba shares for some times, it happens continuously.&lt;BR /&gt;&lt;BR /&gt;Therefore I checked the log and found following.&lt;BR /&gt;&lt;BR /&gt;# grep -i "getpeername failed" messages&lt;BR /&gt;Jun 23 04:35:05 emdlagas71 smbd[30186]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 04:35:05 emdlagas71 smbd[30187]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 04:35:05 emdlagas71 smbd[30197]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 04:35:07 emdlagas71 smbd[30213]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 04:40:45 emdlagas71 smbd[30516]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 04:40:45 emdlagas71 smbd[30518]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 04:40:46 emdlagas71 smbd[30519]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 04:40:50 emdlagas71 smbd[30527]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:12:58 emdlagas71 smbd[32657]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:12:58 emdlagas71 smbd[32660]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:12:59 emdlagas71 smbd[32661]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:12:59 emdlagas71 smbd[32665]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:13:00 emdlagas71 smbd[32667]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:13:00 emdlagas71 smbd[32673]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:13:00 emdlagas71 smbd[32676]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:13:01 emdlagas71 smbd[32679]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:35:05 emdlagas71 smbd[1492]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:35:06 emdlagas71 smbd[1493]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:40:46 emdlagas71 smbd[1817]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;Jun 23 05:40:47 emdlagas71 smbd[1819]:   getpeername failed. Error was Transport endpoint is not connected&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I searched for solution in google and I found following solution.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://lists.samba.org/archive/samba/2004-April/084048.html" target="_blank"&gt;http://lists.samba.org/archive/samba/2004-April/084048.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Therefore, as per above solution I tried to add the following entry in iptables.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have done following steps:&lt;BR /&gt;&lt;BR /&gt;Step 1: Have added that rule&lt;BR /&gt;&lt;BR /&gt;#iptables -I INPUT 1 -p tcp --dport 445 -j DROP&lt;BR /&gt;&lt;BR /&gt;Step 2: Saved iptables&lt;BR /&gt;&lt;BR /&gt;# iptables-save&lt;BR /&gt;&lt;BR /&gt;Step 3: Started firewall&lt;BR /&gt;&lt;BR /&gt;#sbin/SuSEfirewall2 start&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After that I am not able to connect my server through SSH.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So I connected the server through console and checked.&lt;BR /&gt;&lt;BR /&gt;# iptables -L&lt;BR /&gt;&lt;BR /&gt;Chain INPUT (policy DROP)&lt;BR /&gt;target     prot opt source               destination&lt;BR /&gt;ACCEPT     all  --  anywhere             anywhere&lt;BR /&gt;ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED&lt;BR /&gt;input_ext  all  --  anywhere             anywhere&lt;BR /&gt;input_ext  all  --  anywhere             anywhere&lt;BR /&gt;LOG        all  --  anywhere             anywhere            limit: avg 3/min burst 5 LOG level warning tcp-options ip-options pref&lt;BR /&gt;ix `SFW2-IN-ILL-TARGET '&lt;BR /&gt;DROP       all  --  anywhere             anywhere&lt;BR /&gt;&lt;BR /&gt;Chain FORWARD (policy DROP)&lt;BR /&gt;target     prot opt source               destination&lt;BR /&gt;LOG        all  --  anywhere             anywhere            limit: avg 3/min burst 5 LOG level warning tcp-options ip-options pref&lt;BR /&gt;ix `SFW2-FWD-ILL-ROUTING '&lt;BR /&gt;&lt;BR /&gt;Chain OUTPUT (policy ACCEPT)&lt;BR /&gt;target     prot opt source               destination&lt;BR /&gt;ACCEPT     all  --  anywhere             anywhere&lt;BR /&gt;ACCEPT     all  --  anywhere             anywhere            state NEW,RELATED,ESTABLISHED&lt;BR /&gt;LOG        all  --  anywhere             anywhere            limit: avg 3/min burst 5 LOG level warning tcp-options ip-options pref&lt;BR /&gt;ix `SFW2-OUT-ERROR '&lt;BR /&gt;&lt;BR /&gt;Chain forward_ext (0 references)&lt;BR /&gt;target     prot opt source               destination&lt;BR /&gt;&lt;BR /&gt;Chain input_ext (2 references)&lt;BR /&gt;target     prot opt source               destination&lt;BR /&gt;DROP       all  --  anywhere             anywhere            PKTTYPE = broadcast&lt;BR /&gt;ACCEPT     icmp --  anywhere             anywhere            icmp source-quench&lt;BR /&gt;ACCEPT     icmp --  anywhere             anywhere            icmp echo-request&lt;BR /&gt;ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp echo-reply&lt;BR /&gt;ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp destination-unreachable&lt;BR /&gt;ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp time-exceeded&lt;BR /&gt;ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp parameter-problem&lt;BR /&gt;ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp timestamp-reply&lt;BR /&gt;ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp address-mask-reply&lt;BR /&gt;ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp protocol-unreachable&lt;BR /&gt;ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp redirect&lt;BR /&gt;reject_func  tcp  --  anywhere             anywhere            tcp dpt:ident state NEW&lt;BR /&gt;LOG        all  --  anywhere             anywhere            limit: avg 3/min burst 5 PKTTYPE = multicast LOG level warning tcp-opt&lt;BR /&gt;ions ip-options prefix `SFW2-INext-DROP-DEFLT '&lt;BR /&gt;DROP       all  --  anywhere             anywhere            PKTTYPE = multicast&lt;BR /&gt;LOG        tcp  --  anywhere             anywhere            limit: avg 3/min burst 5 tcp flags:FIN,SYN,RST,ACK/SYN LOG level warni&lt;BR /&gt;ng tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT '&lt;BR /&gt;LOG        icmp --  anywhere             anywhere            limit: avg 3/min burst 5 LOG level warning tcp-options ip-options pref&lt;BR /&gt;ix `SFW2-INext-DROP-DEFLT '&lt;BR /&gt;LOG        udp  --  anywhere             anywhere            limit: avg 3/min burst 5 LOG level warning tcp-options ip-options pref&lt;BR /&gt;ix `SFW2-INext-DROP-DEFLT '&lt;BR /&gt;LOG        all  --  anywhere             anywhere            limit: avg 3/min burst 5 state INVALID LOG level warning tcp-options i&lt;BR /&gt;p-options prefix `SFW2-INext-DROP-DEFLT-INV '&lt;BR /&gt;DROP       all  --  anywhere             anywhere&lt;BR /&gt;&lt;BR /&gt;Chain reject_func (1 references)&lt;BR /&gt;target     prot opt source               destination&lt;BR /&gt;REJECT     tcp  --  anywhere             anywhere            reject-with tcp-reset&lt;BR /&gt;REJECT     udp  --  anywhere             anywhere            reject-with icmp-port-unreachable&lt;BR /&gt;REJECT     all  --  anywhere             anywhere            reject-with icmp-proto-unreachable&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My Questions:&lt;BR /&gt;&lt;BR /&gt;1)I have added one single rule only , how those rules are being added?&lt;BR /&gt;&lt;BR /&gt;2)I want to block port 445 only and allow all other traffics, how to do that?&lt;BR /&gt;&lt;BR /&gt;3)Are my steps of adding rules, saving iptables and starting iptables (firewall) correct?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jun 2010 11:42:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651900#M41279</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2010-06-23T11:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure IPTables in suse linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651901#M41280</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;follow this article from INET :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wendt.wisc.edu/site/public/?title=liniptables" target="_blank"&gt;http://wendt.wisc.edu/site/public/?title=liniptables&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;iptables example startup script :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wendt.wisc.edu/site/public/files/liniptablesfiles/iptables.txt" target="_blank"&gt;http://wendt.wisc.edu/site/public/files/liniptablesfiles/iptables.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;link related to your problem :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.pelennorfields.com/matt/2005/04/13/samba-error-getpeername-failed/" target="_blank"&gt;http://www.pelennorfields.com/matt/2005/04/13/samba-error-getpeername-failed/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.opensuse.org/get-help-here/network-internet/413860-errors-log-smbd.html" target="_blank"&gt;http://forums.opensuse.org/get-help-here/network-internet/413860-errors-log-smbd.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hope it will help&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Wed, 23 Jun 2010 11:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651901#M41280</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2010-06-23T11:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure IPTables in suse linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651902#M41281</link>
      <description>Hi Senthil,&lt;BR /&gt;&lt;BR /&gt;Some more links- &lt;BR /&gt;&lt;A href="http://www.topology.org/linux/fwsuse.html" target="_blank"&gt;http://www.topology.org/linux/fwsuse.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.linux.com/archive/feed/44818" target="_blank"&gt;http://www.linux.com/archive/feed/44818&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Wed, 23 Jun 2010 14:41:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651902#M41281</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-23T14:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure IPTables in suse linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651903#M41282</link>
      <description>SUSE firewall configuration is done in a different way, you must use /etc/sysconfig/SuSEfirewall2.&lt;BR /&gt;&lt;BR /&gt;Doing DROP is not good, probably you may wat to do REJECT or your connections will be "hang" for a while.&lt;BR /&gt;&lt;BR /&gt;You can just add the following option to your configuration file instead of using a firewall:&lt;BR /&gt;&lt;BR /&gt;smb ports = 139&lt;BR /&gt;&lt;BR /&gt;And disable your firewall.&lt;BR /&gt;&lt;BR /&gt;I had a similar problem and was solved by using:&lt;BR /&gt;&lt;BR /&gt;server signing = mandatory&lt;BR /&gt;&lt;BR /&gt;Cheers.&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jun 2010 15:03:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651903#M41282</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2010-06-23T15:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure IPTables in suse linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651904#M41283</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Still I am not clear.&lt;BR /&gt;&lt;BR /&gt;Please explain me how to do this.&lt;BR /&gt;&lt;BR /&gt;1)I want to block port 445 only and allow all other traffics, how to do that?</description>
      <pubDate>Wed, 23 Jun 2010 16:00:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651904#M41283</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2010-06-23T16:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure IPTables in suse linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651905#M41284</link>
      <description>Hi Ivan Ferreira,&lt;BR /&gt;&lt;BR /&gt;Do you want to add following lines in /etc/samba/smb.conf and restart samba.&lt;BR /&gt;&lt;BR /&gt;smb ports = 139&lt;BR /&gt;server signing = mandatory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My Questions:&lt;BR /&gt;&lt;BR /&gt;1)After doing above things, will not get the error message "getpeername failed. Error was Transport endpoint is not connected" in /var/log/messages?&lt;BR /&gt;&lt;BR /&gt;2)Will it really resolve the file copy and write in issue on samba shares from XP samba client?</description>
      <pubDate>Wed, 23 Jun 2010 16:20:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651905#M41284</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2010-06-23T16:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure IPTables in suse linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651906#M41285</link>
      <description>1)After doing above things, will not get the error message "getpeername failed. Error was Transport endpoint is not connected" in /var/log/messages?&lt;BR /&gt;&lt;BR /&gt;It should as it won't be listening on that port, but anyway, the port used nowdays is 445.&lt;BR /&gt;&lt;BR /&gt;2)Will it really resolve the file copy and write in issue on samba shares from XP samba client?&lt;BR /&gt;&lt;BR /&gt;Not sure.</description>
      <pubDate>Wed, 23 Jun 2010 17:32:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651906#M41285</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2010-06-23T17:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure IPTables in suse linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651907#M41286</link>
      <description>Hi Senthil,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; 1)I want to block port 445 only and allow all other traffics, how to do that?&lt;BR /&gt;To block particular TCP port in Linux is to use iptables rule as follows:&lt;BR /&gt;#iptables -A INPUT -p tcp --destination-port PORT-NUBMER -j DROP&lt;BR /&gt;&lt;BR /&gt;For example block port 22 for everyone:&lt;BR /&gt;#iptables -A INPUT -p tcp --destination-port 22 -j DROP&lt;BR /&gt;&lt;BR /&gt;Now let us say you want block port 22 for everyone except for IP 202.65.11.10&lt;BR /&gt;#iptables -A INPUT -p tcp --destination-port 22 -s \! 202.65.11.10 -j DROP&lt;BR /&gt;&lt;BR /&gt;To block UDP ports use --tcp udp option:&lt;BR /&gt;#iptables -A INPUT -p udp --destination-port PORT-NUBMER -j DROP&lt;BR /&gt;&lt;BR /&gt;Link-&lt;BR /&gt;&lt;A href="http://nixcraft.com/linux-software/479-blocking-ports-linux.html" target="_blank"&gt;http://nixcraft.com/linux-software/479-blocking-ports-linux.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Thu, 24 Jun 2010 05:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651907#M41286</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-24T05:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure IPTables in suse linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651908#M41287</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Samba needs port 445 and 139 minimally. See /etc/services for more there.&lt;BR /&gt;&lt;BR /&gt;You might try a firewall gui if your version of SUSE has it, or take a look at firestarter for basic configuration. Firestarter is orphaned, but is very helpful.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 24 Jun 2010 19:24:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-configure-iptables-in-suse-linux/m-p/4651908#M41287</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-06-24T19:24:04Z</dc:date>
    </item>
  </channel>
</rss>

