<?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: squid deny every thing except skype in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/squid-deny-every-thing-except-skype/m-p/4481404#M82289</link>
    <description>Try something like this:&lt;BR /&gt;&lt;BR /&gt;   acl CONNECT method CONNECT&lt;BR /&gt;   acl skype url_regex ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+&lt;BR /&gt;   .&lt;BR /&gt;   http_access allow CONNECT skype &lt;BR /&gt;   http_access deny all</description>
    <pubDate>Tue, 18 Aug 2009 12:30:59 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2009-08-18T12:30:59Z</dc:date>
    <item>
      <title>squid deny every thing except skype</title>
      <link>https://community.hpe.com/t5/operating-system-linux/squid-deny-every-thing-except-skype/m-p/4481401#M82286</link>
      <description>Squid Cache: Version 2.7.STABLE5&lt;BR /&gt;&lt;BR /&gt;'allowed_websites.txt' is a text file, contains some websites that every one can access.&lt;BR /&gt;&lt;BR /&gt;'ipes.txt' is a text file, contains my LAN IPes.&lt;BR /&gt;&lt;BR /&gt;'skype_servers_ip.txt' is a text file, contains almost 65 IPes of skype servers. I found the skype IPes from squid log, and as per squid log, skype connect to these server via 'CONNECT skype_server_ip:443' &lt;BR /&gt;&lt;BR /&gt;I just want to allow 'allowed_websites' and skype to my lan &lt;BR /&gt;&lt;BR /&gt;acl allowed_websites url_regex -i "/etc/squid/allowed_websites.txt"&lt;BR /&gt;http_access allow allowed_websites&lt;BR /&gt;&lt;BR /&gt;acl skype_servers_ip dst "/etc/squid/skype_servers_ip.txt"&lt;BR /&gt;http_access allow skype_servers_ip&lt;BR /&gt;&lt;BR /&gt;acl mynet src "/etc/squid/ipes.txt"&lt;BR /&gt;http_access deny mynet&lt;BR /&gt;&lt;BR /&gt;skype is not working on client side.. and the reason is clear, as per squid logs, every time skype connects to a different/another server(which is obviously not listed in 'skype_servers_ip.txt'), and then I have to add those servers into 'skype_servers_ip.txt', so its a never-ending excercise.&lt;BR /&gt;&lt;BR /&gt;In short, skype connects to its servers via IPes, and not via domains(e.g MSN-Messenger connects to .live.messenger.com&lt;BR /&gt;or .live.hotmail.com', so by allowing these domains, MSN-Messenger can work)&lt;BR /&gt;&lt;BR /&gt;please advise/suggest, how can I acheive my target.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Tue, 18 Aug 2009 10:36:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/squid-deny-every-thing-except-skype/m-p/4481401#M82286</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-08-18T10:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: squid deny every thing except skype</title>
      <link>https://community.hpe.com/t5/operating-system-linux/squid-deny-every-thing-except-skype/m-p/4481402#M82287</link>
      <description>Shalom Maaz,&lt;BR /&gt;&lt;BR /&gt;If you want to work with skype by IP:&lt;BR /&gt;&lt;BR /&gt;Contact them for support and see if they will release an IP address range.&lt;BR /&gt;&lt;BR /&gt;You can then configure these addresses in /etc/hosts and then configure Skype the way you do MSN Messenger.&lt;BR /&gt;&lt;BR /&gt;But without the range of IP addresses Skype uses, you will either need to know the default port. Problem there is other services will be available other than Skype.&lt;BR /&gt;&lt;BR /&gt;It might be possible to use the dig command to get this information via a shell script.&lt;BR /&gt;&lt;BR /&gt;yevka@lappy:~$ dig any skype.com&lt;BR /&gt;&lt;BR /&gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.5.1-P2 &amp;lt;&amp;lt;&amp;gt;&amp;gt; any skype.com&lt;BR /&gt;;; global options:  printcmd&lt;BR /&gt;;; Got answer:&lt;BR /&gt;;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 14520&lt;BR /&gt;;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0&lt;BR /&gt;&lt;BR /&gt;;; QUESTION SECTION:&lt;BR /&gt;;skype.com.   IN ANY&lt;BR /&gt;&lt;BR /&gt;;; ANSWER SECTION:&lt;BR /&gt;skype.com.  345588 IN NS ns1.skype.net.&lt;BR /&gt;skype.com.  345588 IN NS ns3.skype.net.&lt;BR /&gt;skype.com.  345588 IN NS ns2.skype.net.&lt;BR /&gt;skype.com.  345588 IN NS ns5.skype.net.&lt;BR /&gt;&lt;BR /&gt;;; Query time: 15 msec&lt;BR /&gt;;; SERVER: 192.115.106.31#53(192.115.106.31)&lt;BR /&gt;;; WHEN: Tue Aug 18 14:48:46 2009&lt;BR /&gt;;; MSG SIZE  rcvd: 108&lt;BR /&gt;&lt;BR /&gt;yevka@lappy:~$ dig a skype.net&lt;BR /&gt;&lt;BR /&gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.5.1-P2 &amp;lt;&amp;lt;&amp;gt;&amp;gt; a skype.net&lt;BR /&gt;;; global options:  printcmd&lt;BR /&gt;;; Got answer:&lt;BR /&gt;;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 52136&lt;BR /&gt;;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0&lt;BR /&gt;&lt;BR /&gt;;; QUESTION SECTION:&lt;BR /&gt;;skype.net.   IN A&lt;BR /&gt;&lt;BR /&gt;;; ANSWER SECTION:&lt;BR /&gt;skype.net.  3591 IN A 78.141.177.7&lt;BR /&gt;skype.net.  3591 IN A 204.9.163.162&lt;BR /&gt;&lt;BR /&gt;;; Query time: 11 msec&lt;BR /&gt;;; SERVER: 192.115.106.31#53(192.115.106.31)&lt;BR /&gt;;; WHEN: Tue Aug 18 14:49:24 2009&lt;BR /&gt;;; MSG SIZE  rcvd: 59&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Might be useful to do a tcpdump on one of those ip addresses and see what the traffic looks like.&lt;BR /&gt;&lt;BR /&gt;The right dig command can be turned into the IP address list you desire.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;hpuxconsulting on Yahoo Messenger&lt;BR /&gt;hpuxadmin on gtalk&lt;BR /&gt;Talk to me, I'm chatty.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Aug 2009 10:51:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/squid-deny-every-thing-except-skype/m-p/4481402#M82287</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-08-18T10:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: squid deny every thing except skype</title>
      <link>https://community.hpe.com/t5/operating-system-linux/squid-deny-every-thing-except-skype/m-p/4481403#M82288</link>
      <description>Skype uses peer-to-peer style networking and encrypts its traffic.&lt;BR /&gt;&lt;BR /&gt;Any Skype user can become a "supernode" (effectively, a "local branch exchange" for Skype traffic) if certain conditions are fulfilled. So the list of Skype "servers" is not fixed: there is a certain group of core servers maintained by the Skype company, but the supernodes are determined dynamically.&lt;BR /&gt;&lt;BR /&gt;This makes it rather difficult to allow skype while blocking any other traffic.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 18 Aug 2009 11:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/squid-deny-every-thing-except-skype/m-p/4481403#M82288</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-08-18T11:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: squid deny every thing except skype</title>
      <link>https://community.hpe.com/t5/operating-system-linux/squid-deny-every-thing-except-skype/m-p/4481404#M82289</link>
      <description>Try something like this:&lt;BR /&gt;&lt;BR /&gt;   acl CONNECT method CONNECT&lt;BR /&gt;   acl skype url_regex ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+&lt;BR /&gt;   .&lt;BR /&gt;   http_access allow CONNECT skype &lt;BR /&gt;   http_access deny all</description>
      <pubDate>Tue, 18 Aug 2009 12:30:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/squid-deny-every-thing-except-skype/m-p/4481404#M82289</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-08-18T12:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: squid deny every thing except skype</title>
      <link>https://community.hpe.com/t5/operating-system-linux/squid-deny-every-thing-except-skype/m-p/4481405#M82290</link>
      <description>Thanks SEP for reply&lt;BR /&gt;&lt;BR /&gt;&amp;gt;So the list of Skype "servers" is not fixed: there is a certain group &lt;BR /&gt;&amp;gt;of core servers maintained by the Skype company, but the supernodes &lt;BR /&gt;&amp;gt;are determined dynamically.&lt;BR /&gt;&amp;gt;This makes it rather difficult to allow skype while blocking any other traffic.&lt;BR /&gt;Thanks  Matti Kurkela for help and sharing the information  &lt;BR /&gt;&lt;BR /&gt;and  Ivan Ferreira thanks for reply, I believe your solution will work, but I cant check it till day-after-tomorrow ;(. I will be back with the result.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 19 Aug 2009 10:48:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/squid-deny-every-thing-except-skype/m-p/4481405#M82290</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-08-19T10:48:58Z</dc:date>
    </item>
  </channel>
</rss>

