[afnog] configure outgoing configuration based on incoming ports
Kevin Chege
chege at isoc.org
Wed Jun 29 12:33:32 UTC 2016
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.
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
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
More information about the afnog
mailing list