<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">15.12.2016 4:23, André Bolinhas пишет:<br>
    </div>
    <blockquote
      cite="mid:017401d25658$c365b8a0$4a3129e0$@articatech.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;
        mso-fareast-language:PT;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;
        mso-fareast-language:PT;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">In
            this case, using L2 I don’t need to create a GRE tunnel?</span></p>
      </div>
    </blockquote>
    Exactly.<br>
    <blockquote
      cite="mid:017401d25658$c365b8a0$4a3129e0$@articatech.com"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Also
            need to use HTTP_PORT 3128 intercept ?</span></p>
      </div>
    </blockquote>
    As documented in wiki's article.<br>
    <blockquote
      cite="mid:017401d25658$c365b8a0$4a3129e0$@articatech.com"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Wish
            iptables I need to create?</span></p>
      </div>
    </blockquote>
    I know nothing about iptables. I'm not Linux-fanboy.<br>
    <blockquote
      cite="mid:017401d25658$c365b8a0$4a3129e0$@articatech.com"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Best
            regards<o:p></o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
                  style="color:windowtext;mso-fareast-language:PT"
                  lang="EN-US">From:</span></b><span
                style="color:windowtext;mso-fareast-language:PT"
                lang="EN-US"> squid-users
                [<a class="moz-txt-link-freetext" href="mailto:squid-users-bounces@lists.squid-cache.org">mailto:squid-users-bounces@lists.squid-cache.org</a>] <b>On
                  Behalf Of </b>Yuri Voinov<br>
                <b>Sent:</b> quarta-feira, 14 de dezembro de 2016 16:02<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
                <b>Subject:</b> Re: [squid-users] Setup wccp2 with
                squid3 and cisco switch 4507<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p>May be, this could help you:<span
            style="font-size:12.0pt;mso-fareast-language:PT"><o:p></o:p></span></p>
        <p><a moz-do-not-send="true"
href="http://wiki.squid-cache.org/ConfigExamples/Intercept/CiscoIOSv15Wccp2">http://wiki.squid-cache.org/ConfigExamples/Intercept/CiscoIOSv15Wccp2</a><o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">14.12.2016 21:46, André Bolinhas пишет:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span lang="EN-US">Hi,</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">I need to setup wccp2
              between my Squid3 box and my cisco switch 4507</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">Since my 4507 don't
              support GRE on forward methoding I need to configure the
              the wccp with L2.</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">My squid.conf</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">http_port 3129
              intercept</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">wccp2_router
              $IP-OF-ROUTER</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">wccp2_forwarding_method
              l2</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">wccp2_return_method l2</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">My question is, in GRE
              method I need to create a GRE tunnel like this</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">modprobe ip_gre</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">ip tunnel add wccp0
              mode gre remote $ASA-EXT-IP local $SQUID-IP dev eth0</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">ifconfig wccp0
              $SQUID-IP netmask 255.255.255.255 up</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">echo 0
              >/proc/sys/net/ipv4/conf/wccp0/rp_filter</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">echo 0
              >/proc/sys/net/ipv4/conf/eth0/rp_filter</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">echo 1
              >/proc/sys/net/ipv4/ip_forward</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">iptables -t nat -A
              PREROUTING -i wccp0 -p tcp --dport 80 -j REDIRECT
              --to-port 3129</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">iptables -t nat -A
              POSTROUTING -j MASQUERADE</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">In L2 method the
              configuration is the same (tunnel, sysctl, iptables..) ?
              if not can you help me to configure it (tunnel, sysctl,
              iptables..).</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US">Also in switch what's
              ACL I need to create? </span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormal">Best regard<o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New
              Roman",serif;mso-fareast-language:PT"><br>
              <br>
              <br>
              <o:p></o:p></span></p>
          <pre>_______________________________________________<o:p></o:p></pre>
          <pre>squid-users mailing list<o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a><o:p></o:p></pre>
        </blockquote>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;mso-fareast-language:PT"><o:p> </o:p></span></p>
        <div>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New
              Roman",serif;mso-fareast-language:PT">-- <br>
              Cats - delicious. You just do not know how to cook them.<o:p></o:p></span></p>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>