<?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: IPTABLES - SMTP in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019090#M28735</link>
    <description>That's my OUTPUT chain - as you see the deafault policy is ACCEPT so any packet not defined as DROP should go  -right ?&lt;BR /&gt;&lt;BR /&gt;Chain OUTPUT (policy ACCEPT 181 packets, 13459 bytes)&lt;BR /&gt; pkts bytes target     prot opt in     out     source               destination&lt;BR /&gt;1033K  538M ACCEPT     all  --  *      lo      0.0.0.0/0            0.0.0.0/0&lt;BR /&gt;  96M  131G ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW,RELATED,ESTABLISHED&lt;BR /&gt;    0     0 ACCEPT     tcp  --  *      eth0    0.0.0.0/0            0.0.0.0/0           tcp dpt:25&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Jun 2007 08:11:22 GMT</pubDate>
    <dc:creator>Piotr Kirklewski</dc:creator>
    <dc:date>2007-06-13T08:11:22Z</dc:date>
    <item>
      <title>IPTABLES - SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019088#M28733</link>
      <description>Hi there&lt;BR /&gt;&lt;BR /&gt;I have set my itables firewall succesfuly, everythink works, but today I have found that it stops SMTP to send the e-mails.&lt;BR /&gt;&lt;BR /&gt;I dont understand why as port 25 is ACCEPTED.&lt;BR /&gt;&lt;BR /&gt;If I disable the firewall then I'm able to send e-mail.If the firewall is on, then e-mails are not going outside.&lt;BR /&gt;&lt;BR /&gt;I was trying to restart master as I'm using postfix, but it wont help.&lt;BR /&gt;&lt;BR /&gt;The only one way to hev e e-mail going out is to disable firewall puting iptables -I INPUT -J ACCEPT.&lt;BR /&gt; &lt;BR /&gt;Can enyone help ?&lt;BR /&gt;&lt;BR /&gt;============================================&lt;BR /&gt;&lt;BR /&gt;Chain INPUT (policy DROP 443 packets, 52393 bytes)&lt;BR /&gt;num pkts bytes target prot opt in out source destination&lt;BR /&gt;1 5009 1448K ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0&lt;BR /&gt;2 1685 365K ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80&lt;BR /&gt;3 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 state RELATED,ESTABLISHED&lt;BR /&gt;4 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 state NEW&lt;BR /&gt;5 2083 161K ACCEPT tcp -- eth0 * 81.150.xxx.xxx 217.174.xxx.xxx tcp dpt:22 state RELATED,ESTABLISHED&lt;BR /&gt;6 4 192 ACCEPT tcp -- eth0 * 81.150.xxx.xxx 217.174.xxx.xxx tcp dpt:22 state NEW&lt;BR /&gt;7 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 state RELATED,ESTABLISHED&lt;BR /&gt;8 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 state NEW&lt;BR /&gt;9 0 0 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:53 state RELATED,ESTABLISHED&lt;BR /&gt;10 1 71 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:53 state NEW&lt;BR /&gt;11 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 state RELATED,ESTABLISHED&lt;BR /&gt;12 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 state NEW&lt;BR /&gt;13 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 state RELATED,ESTABLISHED&lt;BR /&gt;14 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 state NEW&lt;BR /&gt;15 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110 state RELATED,ESTABLISHED&lt;BR /&gt;16 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110 state NEW&lt;BR /&gt;17 17 1292 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:123 state RELATED,ESTABLISHED&lt;BR /&gt;18 0 0 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:123 state NEW&lt;BR /&gt;19 188K 12M ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306 state RELATED,ESTABLISHED&lt;BR /&gt;20 356 21360 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306 state NEW&lt;BR /&gt;21 0 0 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:3306 state RELATED,ESTABLISHED&lt;BR /&gt;22 0 0 ACCEPT udp -- eth0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:3306 state NEW&lt;BR /&gt;23 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:5555 state RELATED,ESTABLISHED&lt;BR /&gt;24 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:5555 state NEW&lt;BR /&gt;25 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8002 state RELATED,ESTABLISHED&lt;BR /&gt;26 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8002 state NEW&lt;BR /&gt;27 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9001 state RELATED,ESTABLISHED&lt;BR /&gt;28 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9001 state NEW&lt;BR /&gt;29 0 0 ACCEPT icmp -- eth0 * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED&lt;BR /&gt;30 4527 272K ACCEPT icmp -- eth0 * 0.0.0.0/0 0.0.0.0/0 state NEW&lt;BR /&gt;31 0 0 ACCEPT tcp -- eth0 * 217.xxx.xxx.xxx 217.xxx.xxx.xxx tcp dpt:22 state RELATED,ESTABLISHED&lt;BR /&gt;32 0 0 ACCEPT tcp -- eth0 * 217.xxx.xxx.xxx 217.xxx.xxx.xxx tcp dpt:22 state NEW&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jun 2007 07:01:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019088#M28733</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2007-06-13T07:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: IPTABLES - SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019089#M28734</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;There is not enough information to answer your question.&lt;BR /&gt;&lt;BR /&gt;Port 25 is obviously being blocked outbound on this configuration, but your data does not indicate that.&lt;BR /&gt;&lt;BR /&gt;I would guess the default OUTPUT policy is drop. Check /etc/sysconfig/iptables to see if thats true.&lt;BR /&gt;&lt;BR /&gt;To fix it.&lt;BR /&gt;&lt;BR /&gt;1) &lt;A href="http://www.fs-security.com" target="_blank"&gt;http://www.fs-security.com&lt;/A&gt; It has a gui and handles most problems easily except inbound block lists. It uses iptables commands and you can learn from it.&lt;BR /&gt;&lt;BR /&gt;2) Add a rule with iptables -A OUTPUT -d all --port=25 -J ACCEPT&lt;BR /&gt;&lt;BR /&gt;You'll have to play with that a bit to make the syntax work.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 13 Jun 2007 07:10:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019089#M28734</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-06-13T07:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: IPTABLES - SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019090#M28735</link>
      <description>That's my OUTPUT chain - as you see the deafault policy is ACCEPT so any packet not defined as DROP should go  -right ?&lt;BR /&gt;&lt;BR /&gt;Chain OUTPUT (policy ACCEPT 181 packets, 13459 bytes)&lt;BR /&gt; pkts bytes target     prot opt in     out     source               destination&lt;BR /&gt;1033K  538M ACCEPT     all  --  *      lo      0.0.0.0/0            0.0.0.0/0&lt;BR /&gt;  96M  131G ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW,RELATED,ESTABLISHED&lt;BR /&gt;    0     0 ACCEPT     tcp  --  *      eth0    0.0.0.0/0            0.0.0.0/0           tcp dpt:25&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jun 2007 08:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019090#M28735</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2007-06-13T08:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: IPTABLES - SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019091#M28736</link>
      <description>And why you suppose that is a firewall related problem?&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;telnet some.mail.host 25&lt;BR /&gt;&lt;BR /&gt;If you can connect via command line, is not a firewall problem.&lt;BR /&gt;&lt;BR /&gt;Check what is going on with your mails in /var/log/maillog.</description>
      <pubDate>Wed, 13 Jun 2007 08:31:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019091#M28736</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-06-13T08:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: IPTABLES - SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019092#M28737</link>
      <description>Because if I'll do:&lt;BR /&gt;&lt;BR /&gt;/sbin/iptables -I INPUT -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;Then evwrythink works fine :)&lt;BR /&gt;&lt;BR /&gt;telnet 217.174.xxx.xxx 25&lt;BR /&gt;Trying 217.174.xxx.xxx...&lt;BR /&gt;Connected to server217-174-xxx-xxx.live-servers.net (217.174.xxx.xxx).&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;220 as1.markexxx.com ESMTP Postfix&lt;BR /&gt;&lt;BR /&gt;And i can send e-mails.&lt;BR /&gt;&lt;BR /&gt;Without that I can't e-mail nor telnet my server on 25.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jun 2007 10:37:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019092#M28737</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2007-06-13T10:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: IPTABLES - SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019093#M28738</link>
      <description>Hi nagileon,&lt;BR /&gt;Why do you use 2 rules:&lt;BR /&gt;13 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 state RELATED,ESTABLISHED&lt;BR /&gt;14 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 state NEW&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Did you try to have 1 instead:&lt;BR /&gt;iptables -I INPUT -p tcp --dport 25 -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jun 2007 10:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019093#M28738</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2007-06-13T10:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: IPTABLES - SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019094#M28739</link>
      <description>3        0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp spt:25&lt;BR /&gt;&lt;BR /&gt;Not working as well.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 13 Jun 2007 11:54:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019094#M28739</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2007-06-13T11:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: IPTABLES - SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019095#M28740</link>
      <description>Should be dpt:25, not spt:25</description>
      <pubDate>Thu, 14 Jun 2007 00:59:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019095#M28740</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2007-06-14T00:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: IPTABLES - SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019096#M28741</link>
      <description>You do know that you don't need to have individual RELATED,ESTABLISHED rules per port, right?  Just one will do.</description>
      <pubDate>Thu, 14 Jun 2007 01:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-smtp/m-p/4019096#M28741</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-06-14T01:17:13Z</dc:date>
    </item>
  </channel>
</rss>

