[afnog] configure outgoing configuration based on incoming ports
Mollatt Ntini
mntini at gmail.com
Wed Jun 29 14:17:33 UTC 2016
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 at sudren.edu.sd>
wrote:
>
> Hi Kevin
>
>
> ----- Original Message -----
> > From: "Kevin Chege" <chege at isoc.org>
> > To: "Samir S. Omer" <samir.saif at sudren.edu.sd>, afnog at 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¹t have experience with Centos but did something similar on BSD 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 at afnog.org on behalf of samir.saif at sudren.edu.sd> wrote:
> >
> > >Hi all
> > >
> > >I'm configuring a Linux CentOS machine with multiple virtual IPs to run
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.afnog.org/pipermail/afnog/attachments/20160629/af7fa8d4/attachment.html>
More information about the afnog
mailing list