Author Topic: how to redirect port 80 ?  (Read 2858 times)

yellowtail

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
how to redirect port 80 ?
« on: November 08, 2011, 08:34:04 am »
Dear zentyal Forum,

In the office configuration, i want to redirect port 80 to 3128 (squid), but to another server. Like in the picture, how to create command in the zentyal ?





regards
« Last Edit: November 08, 2011, 08:44:50 am by yellowtail »

c4rdinal

  • Zen Samurai
  • ****
  • Posts: 341
  • Karma: +4/-0
    • View Profile
Re: how to redirect port 80 ?
« Reply #1 on: November 08, 2011, 11:14:52 am »
Dear zentyal Forum,

In the office configuration, i want to redirect port 80 to 3128 (squid), but to another server. Like in the picture, how to create command in the zentyal ?


Go to Firewall, Port Forward and Add New rule as required.

yellowtail

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: how to redirect port 80 ?
« Reply #2 on: November 09, 2011, 02:58:04 pm »
Dear C4rdinal,

i try your advice, but nothing happen. The connection is not forward fist to the proxy server, but direct to the internet. The capture command like this ??



Eth1 is LAN, i try cek and uncek the replace source address.

need more advice please

yellowtail

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: how to redirect port 80 ?
« Reply #3 on: November 16, 2011, 05:34:18 am »
somebody can help me please ????

christian

  • Guest
Re: how to redirect port 80 ?
« Reply #4 on: November 16, 2011, 07:01:29 am »
What you try to achieve is not exactly straightforward and this can't be "simple" redirect:
let's suppose you redirect everything reaching Zentyal on port 80 to "your proxy on port 3128". So far so good, what is the next step? Your proxy will try to reach internet via Zentyal, quite often on port.. 80 that will be redirected to proxy port 3128  ::)  Nice loop isn't it?

So, do you need something clever like conditional redirect? No. you should use non transparent proxy, meaning configure clients to use your proxy at the right IP address, port 3128, et voila. If, for some reason, this is not an option, then your proxy must be client's default gateway.
« Last Edit: November 16, 2011, 07:05:38 am by christian »