[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"><<a href="mailto:samir.saif@sudren.edu.sd" \
target="_blank">samir.saif@sudren.edu.sd</a>></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>
> From: "Kevin Chege" <<a \
href="mailto:chege@isoc.org">chege@isoc.org</a>><br> > To: "Samir S. \
Omer" <<a href="mailto:samir.saif@sudren.edu.sd">samir.saif@sudren.edu.sd</a>>, \
<a href="mailto:afnog@afnog.org">afnog@afnog.org</a><br> > Sent: Wednesday, June \
29, 2016 4:33:32 PM<br> > Subject: Re: [afnog] configure outgoing configuration \
based on incoming ports<br> ><br>
> Hi Samir,<br>
><br>
><br>
> Sounds like you want some sort of transparent proxy setup?<br>
><br>
> If that is the case, the port number that the traffic leaves as after<br>
> 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> > 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> > I don št have experience with Centos but did something \
similar on BSD some<br> > time back.<br>
><br>
> You will need to use IPTables to redirect the traffic for you. Here is a<br>
> howto that may help:<br>
><br>
> <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>
><br>
<br>
</span>Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
Samir<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
><br>
><br>
> Regards<br>
><br>
> Kevin<br>
><br>
><br>
><br>
><br>
><br>
><br>
> On 29/06/2016, 10:59 AM, "afnog on behalf of Samir S. Omer"<br>
> <<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>> \
wrote:<br> ><br>
> >Hi all<br>
> ><br>
> >I'm configuring a Linux CentOS machine with multiple virtual IPs to run \
a<br> > >squid service listening on different ports.<br>
> >how can I bind requests coming for each port to go through specific IP ?<br>
> ><br>
> >for example requests coming to port 8081 to go out with the IP<br>
> >192.168.1.1 and requests coming through port 8082 goes out with IP<br>
> >192.168.1.2<br>
> ><br>
> >incoming -> Squid -> Outgoing<br>
> >*:8081 -> Squid -> <a href="http://192.168.1.1:80" rel="noreferrer" \
target="_blank">192.168.1.1:80</a><br> > >*:8082 -> Squid -> <a \
href="http://192.168.1.2:80" rel="noreferrer" target="_blank">192.168.1.2:80</a><br> \
> ><br> > >Regards<br>
> >Samir<br>
> ><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><br> ><br>
><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