[prev in list] [next in list] [prev in thread] [next in thread] 

List:       afnog
Subject:    Re: [afnog] configure outgoing configuration based on incoming ports
From:       Mollatt Ntini <mntini () gmail ! com>
Date:       2016-06-29 14:17:33
Message-ID: CA+_Fj+sHepqYoTDYLV8jBeF7xDYdJBXB8gAXwPSuj_yX8nZh2Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


maybe have a loot at this:

https://www.tastyplacement.com/squid-proxy-multiple-outgoing-ip-addresses

On Wed, Jun 29, 2016 at 3:10 PM, Samir S. Omer <samir.saif@sudren.edu.sd>
wrote:

>
> Hi Kevin
>
>
> ----- Original Message -----
> > From: "Kevin Chege" <chege@isoc.org>
> > To: "Samir S. Omer" <samir.saif@sudren.edu.sd>, afnog@afnog.org
> > Sent: Wednesday, June 29, 2016 4:33:32 PM
> > Subject: Re: [afnog] configure outgoing configuration based on incoming
> ports
> >
> > Hi Samir,
> >
> >
> > Sounds like you want some sort of transparent proxy setup?
> >
> > If that is the case, the port number that the traffic leaves as after
> > being received on port 192.168.1.1:8081 OR 192.168.1.2:8081 is not
> > important.
>
> No, I want to connect to the proxy on different ports and based on these
> ports the proxy will fetch the content from the internet using different
> source IPs.
>
> > I don=C2=B9t have experience with Centos but did something similar on B=
SD some
> > time back.
> >
> > You will need to use IPTables to redirect the traffic for you. Here is =
a
> > howto that may help:
> >
> > http://xmodulo.com/squid-transparent-web-proxy-centos-rhel.html
> >
>
> Thanks
>
> Samir
>
> >
> >
> >
> > Regards
> >
> > Kevin
> >
> >
> >
> >
> >
> >
> > On 29/06/2016, 10:59 AM, "afnog on behalf of Samir S. Omer"
> > <afnog-bounces@afnog.org on behalf of samir.saif@sudren.edu.sd> wrote:
> >
> > >Hi all
> > >
> > >I'm configuring a Linux CentOS machine with multiple virtual IPs to ru=
n
> a
> > >squid service listening on different ports.
> > >how can I bind requests coming for each port to go through specific IP=
 ?
> > >
> > >for example requests coming to port 8081 to go out with the IP
> > >192.168.1.1 and requests coming through port 8082 goes out with IP
> > >192.168.1.2
> > >
> > >incoming -> Squid -> Outgoing
> > >*:8081 -> Squid -> 192.168.1.1:80
> > >*:8082 -> Squid -> 192.168.1.2:80
> > >
> > >Regards
> > >Samir
> > >
> > >
> > >_______________________________________________
> > >afnog mailing list
> > >https://www.afnog.org/mailman/listinfo/afnog
> >
> >
>
> _______________________________________________
> afnog mailing list
> https://www.afnog.org/mailman/listinfo/afnog
>

[Attachment #5 (text/html)]

<div dir="ltr">maybe have a loot at this:<div><br></div><div><a \
href="https://www.tastyplacement.com/squid-proxy-multiple-outgoing-ip-addresses">https \
://www.tastyplacement.com/squid-proxy-multiple-outgoing-ip-addresses</a><br></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 29, 2016 at 3:10 PM, \
Samir S. Omer <span dir="ltr">&lt;<a href="mailto:samir.saif@sudren.edu.sd" \
target="_blank">samir.saif@sudren.edu.sd</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><br> Hi Kevin<br>
<span class=""><br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Kevin Chege&quot; &lt;<a \
href="mailto:chege@isoc.org">chege@isoc.org</a>&gt;<br> &gt; To: &quot;Samir S. \
Omer&quot; &lt;<a href="mailto:samir.saif@sudren.edu.sd">samir.saif@sudren.edu.sd</a>&gt;, \
<a href="mailto:afnog@afnog.org">afnog@afnog.org</a><br> &gt; Sent: Wednesday, June \
29, 2016 4:33:32 PM<br> &gt; Subject: Re: [afnog] configure outgoing configuration \
based on incoming ports<br> &gt;<br>
&gt; Hi Samir,<br>
&gt;<br>
&gt;<br>
&gt; Sounds like you want some sort of transparent proxy setup?<br>
&gt;<br>
&gt; If that is the case, the port number that the traffic leaves as after<br>
&gt; being received on port <a href="http://192.168.1.1:8081" rel="noreferrer" \
target="_blank">192.168.1.1:8081</a> OR <a href="http://192.168.1.2:8081" \
rel="noreferrer" target="_blank">192.168.1.2:8081</a> is not<br> &gt; important.<br>
<br>
</span>No, I want to connect to the proxy on different ports and based on these ports \
the proxy will fetch the content from the internet using different source IPs.<br> \
<span class=""><br> &gt; I don št have experience with Centos but did something \
similar on BSD some<br> &gt; time back.<br>
&gt;<br>
&gt; You will need to use IPTables to redirect the traffic for you. Here is a<br>
&gt; howto that may help:<br>
&gt;<br>
&gt; <a href="http://xmodulo.com/squid-transparent-web-proxy-centos-rhel.html" \
rel="noreferrer" target="_blank">http://xmodulo.com/squid-transparent-web-proxy-centos-rhel.html</a><br>
 &gt;<br>
<br>
</span>Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
Samir<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards<br>
&gt;<br>
&gt; Kevin<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 29/06/2016, 10:59 AM, &quot;afnog on behalf of Samir S. Omer&quot;<br>
&gt; &lt;<a href="mailto:afnog-bounces@afnog.org">afnog-bounces@afnog.org</a> on \
behalf of <a href="mailto:samir.saif@sudren.edu.sd">samir.saif@sudren.edu.sd</a>&gt; \
wrote:<br> &gt;<br>
&gt; &gt;Hi all<br>
&gt; &gt;<br>
&gt; &gt;I&#39;m configuring a Linux CentOS machine with multiple virtual IPs to run \
a<br> &gt; &gt;squid service listening on different ports.<br>
&gt; &gt;how can I bind requests coming for each port to go through specific IP ?<br>
&gt; &gt;<br>
&gt; &gt;for example requests coming to port 8081 to go out with the IP<br>
&gt; &gt;192.168.1.1 and requests coming through port 8082 goes out with IP<br>
&gt; &gt;192.168.1.2<br>
&gt; &gt;<br>
&gt; &gt;incoming -&gt; Squid -&gt; Outgoing<br>
&gt; &gt;*:8081 -&gt; Squid -&gt; <a href="http://192.168.1.1:80" rel="noreferrer" \
target="_blank">192.168.1.1:80</a><br> &gt; &gt;*:8082 -&gt; Squid -&gt; <a \
href="http://192.168.1.2:80" rel="noreferrer" target="_blank">192.168.1.2:80</a><br> \
&gt; &gt;<br> &gt; &gt;Regards<br>
&gt; &gt;Samir<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;_______________________________________________<br>
&gt; &gt;afnog mailing list<br>
&gt; &gt;<a href="https://www.afnog.org/mailman/listinfo/afnog" rel="noreferrer" \
target="_blank">https://www.afnog.org/mailman/listinfo/afnog</a><br> &gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
afnog mailing list<br>
<a href="https://www.afnog.org/mailman/listinfo/afnog" rel="noreferrer" \
target="_blank">https://www.afnog.org/mailman/listinfo/afnog</a></div></div></blockquote></div><br></div>




_______________________________________________
afnog mailing list
https://www.afnog.org/mailman/listinfo/afnog

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic