<?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 block all trafic other then POP n SMTP in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064864#M83103</link>
    <description>Ah.  In that case, you want to take a different approach.  Ignore the previous stuff entirely, and do this:&lt;BR /&gt;&lt;BR /&gt;iptables -N MailAccess&lt;BR /&gt;iptables -A MailAccess -j ACCEPT -p tcp --dport 25&lt;BR /&gt;iptables -A MailAccess -j ACCEPT -p tcp --dport 110&lt;BR /&gt;iptables -A MailAccess -j REJECT&lt;BR /&gt;iptables -A FORWARD -j MailAccess -s 10.10.10.125&lt;BR /&gt;iptables -A FORWARD -j MailAccess -s 10.10.10.137&lt;BR /&gt;&lt;BR /&gt;This will give them only access to those two ports, and whatever access squid gives them.</description>
    <pubDate>Tue, 04 Sep 2007 07:38:29 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2007-09-04T07:38:29Z</dc:date>
    <item>
      <title>how to block all trafic other then POP n SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064861#M83100</link>
      <description>Dear Gurus&lt;BR /&gt;&lt;BR /&gt;About Internet Gateway Server: &lt;BR /&gt;Gateway IP: 10.0.0.110 (ip of the interface connected to the lan)&lt;BR /&gt;Gateway Software: Squid 2.6, and iptables.&lt;BR /&gt;&lt;BR /&gt;how to block all trafic to the internet other then POP n SMTP for some clients ?.&lt;BR /&gt;Infect I have a LinuxRouter+Squid, and for some users 10.0.0.137, and 10.0.0.125 I just want to allow them access their emails using outlook, and nothing else.&lt;BR /&gt;I have denied http traffic using squid. But I wana know how can I also block non smtp/pop traffic using iptables &lt;BR /&gt;&lt;BR /&gt;iptables script I am using at this gateway server is attached.&lt;BR /&gt;&lt;BR /&gt;NOTE: the smtp, and pop server is on the internet</description>
      <pubDate>Tue, 04 Sep 2007 04:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064861#M83100</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-09-04T04:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to block all trafic other then POP n SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064862#M83101</link>
      <description>Change the filter table's FORWARD policy to DROP (this will block *EVERYTHING* except Squid from other computers), then explicity allow those two computers access through the forward table to the appropriate ports, i.e.&lt;BR /&gt;&lt;BR /&gt;iptables -P FORWARD DROP&lt;BR /&gt;iptables -N MailAccess&lt;BR /&gt;iptables -A MailAccess -j ALLOW -p tcp --dport 110&lt;BR /&gt;iptables -A MailAccess -j ALLOW -p tcp --dport 25&lt;BR /&gt;iptables -A FORWARD -j MailAccess -s 10.10.10.125&lt;BR /&gt;iptables -A FORWARD -j MailAccess -s 10.10.10.137&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Sep 2007 05:12:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064862#M83101</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-09-04T05:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to block all trafic other then POP n SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064863#M83102</link>
      <description>Thanks Stuart, for prompt help.&lt;BR /&gt;&lt;BR /&gt;other then 125, and 137, all the 10.0.0.0/24 are allowed to access everything, i.e unlimited access to the internet for clients, other 10.0.0.125, and 10.0.0.137.&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Tue, 04 Sep 2007 06:46:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064863#M83102</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-09-04T06:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to block all trafic other then POP n SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064864#M83103</link>
      <description>Ah.  In that case, you want to take a different approach.  Ignore the previous stuff entirely, and do this:&lt;BR /&gt;&lt;BR /&gt;iptables -N MailAccess&lt;BR /&gt;iptables -A MailAccess -j ACCEPT -p tcp --dport 25&lt;BR /&gt;iptables -A MailAccess -j ACCEPT -p tcp --dport 110&lt;BR /&gt;iptables -A MailAccess -j REJECT&lt;BR /&gt;iptables -A FORWARD -j MailAccess -s 10.10.10.125&lt;BR /&gt;iptables -A FORWARD -j MailAccess -s 10.10.10.137&lt;BR /&gt;&lt;BR /&gt;This will give them only access to those two ports, and whatever access squid gives them.</description>
      <pubDate>Tue, 04 Sep 2007 07:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064864#M83103</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-09-04T07:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to block all trafic other then POP n SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064865#M83104</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I'd suggest an iptables configuration.&lt;BR /&gt;&lt;BR /&gt;A quick alternative to iptables code is firestarter.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://fs-security.com" target="_blank"&gt;http://fs-security.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It has a gui and is easily configurable.&lt;BR /&gt;&lt;BR /&gt;The product is open source, lacks a web interface and may be orphaned. The community is working on taking over the product.&lt;BR /&gt;&lt;BR /&gt;Go for strict inbound and outbound policy and then open up port 25 and port 110. Note this configuration will block http/https traffic.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 04 Sep 2007 08:09:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064865#M83104</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-04T08:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to block all trafic other then POP n SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064866#M83105</link>
      <description>Once again Thanks Stuart and SEP for help/support.&lt;BR /&gt;&lt;BR /&gt;Stuart I didnt tried the code(iptables), but as soon as I get the downtime, I'll try the code.. and obviously point will also be assign later ;) .&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Sep 2007 07:11:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064866#M83105</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-09-05T07:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to block all trafic other then POP n SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064867#M83106</link>
      <description>Just wanted you to know,&lt;BR /&gt;&lt;BR /&gt;You can't play with Stuart's option and mine at the same time.&lt;BR /&gt;&lt;BR /&gt;firestarter uses iptables code. If you shut iptables, firestarter configuration goes down.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 05 Sep 2007 11:59:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064867#M83106</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-05T11:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to block all trafic other then POP n SMTP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064868#M83107</link>
      <description>Thanks SEP.&lt;BR /&gt;&lt;BR /&gt;Stuart I have attached the modified script(that has your code), but from 10.0.0.125, and 10.0.0.137 I can still use Yahoo, and MSN messengers(and other apps that connects to internet).&lt;BR /&gt;&lt;BR /&gt;I hope i have cleared my question, i,e I just want 10.0.0.125, and 10.0.0.137 to access emails from Email-Servers(pop/smtp) on the internet.&lt;BR /&gt;But all other machines(10.0.0.0/24) must have full access to the internet&lt;BR /&gt;&lt;BR /&gt;I have configured transparent proxy, and every client including 10.0.0.125, and 137, has the following TCP/IP configs&lt;BR /&gt;IP: 10.0.0.x&lt;BR /&gt;NETMASK: 255.255.255.0&lt;BR /&gt;GATEWAY: 10.0.0.110&lt;BR /&gt;DNS SERVER: 10.0.0.110&lt;BR /&gt;&lt;BR /&gt;Squid is listning on port 3128, and all the traffic directed to port 80 from clients are redirected to 3128 via iptables.&lt;BR /&gt;&lt;BR /&gt;No client has proxy server settings, i.e no TCP/IP(proxy server)configs are provided to the applications(web-browser, msn, and yahoo messengers etc)&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 06 Sep 2007 04:53:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-block-all-trafic-other-then-pop-n-smtp/m-p/4064868#M83107</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2007-09-06T04:53:06Z</dc:date>
    </item>
  </channel>
</rss>

