Author Topic: Trying to configure Proxy server on Zentyal 3  (Read 3481 times)

Akhenaton

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Trying to configure Proxy server on Zentyal 3
« on: May 17, 2013, 07:01:38 am »
Hi!
I'm trying to configure proxy server on Zentyal 3. There are 2 network interfaces: eth0 for LAN, eth1 for Internet (connected to ADSL modem).
Eth0:
Ip adress: 192.168.0.101
Mask: 255.255.255.0

Eth1 (for example):
Ip address: 80.164.246.150
Mask: 255.255.255.252

Gateway (for eth1):
80.164.246.149

I configured HTTP proxy as not transparent

Also i wrote DNS servers in settings.

Settings on client computer:
Ip address: 192.168.1.3
Mask: 255.255.255.0
Gateway: 192.168.1.101

And proxy settings in internet browser: 192.168.1.101:3128

So problems are:
1) Reply from Proxy server on client is getting too long (about 5-7 minutes) with error of DNS. Ok - I understand that it's happened because of second problem, but it's interesting why the reply is getting so long?
2) I cant ping any external IP on proxy server comp. even can't ping gateway (ip address of ADSL modem).

Please help, trying to solve that problems but without success ((((

christian

  • Guest
Re: Trying to configure Proxy server on Zentyal 3
« Reply #1 on: May 17, 2013, 07:34:50 am »
ping is perhaps not the best way (although this looks the easiest) to understand what problem is.
Is your ADSL device configured to reply to ping ?

Anyway, what I feel surprising is that you got, with ADSL, multiple public IP.
This /30 netmask means that you can use 2 public IP addresses:
80.164.246.149
80.164.246.150

which means that is you ADSL device uses 80.164.246.150 on the internal interface, there is one different IP allocated to the external interface.
Did you check this one ?

I would suggest that you look closer at this first.

I might be totally wrong but my feeling is rather that your ISP provides you with 2 IP to be used by end-user's devices, not one user as ADSL "router" IP.

Did you try using DHCP on the external side of your config ?

bruno85

  • Zen Monk
  • **
  • Posts: 50
  • Karma: +1/-0
    • View Profile
Re: Trying to configure Proxy server on Zentyal 3
« Reply #2 on: May 17, 2013, 07:45:32 am »
Are you sure that your nic eth0 (lan) is in 192.168.0.0/24 when clients are in 192.168.1.0/24?

christian

  • Guest
Re: Trying to configure Proxy server on Zentyal 3
« Reply #3 on: May 17, 2013, 08:04:18 am »
Are you sure that your nic eth0 (lan) is in 192.168.0.0/24 when clients are in 192.168.1.0/24?

Good point although this doesn't prevent to access internet from Zentyal.
Plus I think there is only a typo here as client's default gateway is indeed 192.168.1.101

bruno85

  • Zen Monk
  • **
  • Posts: 50
  • Karma: +1/-0
    • View Profile
Re: Trying to configure Proxy server on Zentyal 3
« Reply #4 on: May 17, 2013, 08:15:17 am »
oups! reply too fast when i read "even can't ping gateway". I was thinkink gateway for the clients

Akhenaton

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Trying to configure Proxy server on Zentyal 3
« Reply #5 on: May 17, 2013, 08:20:37 am »
ops! It's my mistake:

Quote
Eth0:
Ip adress: 192.168.0.101
Mask: 255.255.255.0

Eth1 (for example):
Ip address: 80.164.246.150
Mask: 255.255.255.252

Gateway (for eth1):
80.164.246.149

I configured HTTP proxy as not transparent

Also i wrote DNS servers in settings.

Settings on client computer:
Ip address: 192.168.0.3
Mask: 255.255.255.0
Gateway: 192.168.0.101
______________
IP addresses on eth1 are fake (that means that real addresses are another), but  anyway it's not important here.

Akhenaton

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Trying to configure Proxy server on Zentyal 3
« Reply #6 on: May 17, 2013, 08:23:17 am »
ping is perhaps not the best way (although this looks the easiest) to understand what problem is.
Is your ADSL device configured to reply to ping ?

Anyway, what I feel surprising is that you got, with ADSL, multiple public IP.
This /30 netmask means that you can use 2 public IP addresses:
80.164.246.149
80.164.246.150

which means that is you ADSL device uses 80.164.246.150 on the internal interface, there is one different IP allocated to the external interface.
Did you check this one ?

I would suggest that you look closer at this first.

I might be totally wrong but my feeling is rather that your ISP provides you with 2 IP to be used by end-user's devices, not one user as ADSL "router" IP.

Did you try using DHCP on the external side of your config ?
no, I'm not using DHCP

christian

  • Guest
Re: Trying to configure Proxy server on Zentyal 3
« Reply #7 on: May 17, 2013, 08:42:12 am »
IP addresses on eth1 are fake (that means that real addresses are another), but  anyway it's not important here.

 ::)  weird using public addresses that are not yours.

Anyway, is there anything else we can do then ?

Akhenaton

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Trying to configure Proxy server on Zentyal 3
« Reply #8 on: May 17, 2013, 09:00:50 am »
Understand, but problems are still remain - I can't even ping gateway (ip address of modem) and reply from proxy server to client is too long (about 5-7 minutes) and ends with error

bruno85

  • Zen Monk
  • **
  • Posts: 50
  • Karma: +1/-0
    • View Profile
Re: Trying to configure Proxy server on Zentyal 3
« Reply #9 on: May 17, 2013, 09:43:22 am »
it 's probably a routing probleme between your modem and zentyal.
Tryng DHCP in eth1 may perhaps resolve the problem or give indications

Akhenaton

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Trying to configure Proxy server on Zentyal 3
« Reply #10 on: May 17, 2013, 10:57:55 am »
I'm thinking about routing too, but how can I configure DHCP on eth1 and what range of ip addresses I must write?

christian

  • Guest
Re: Trying to configure Proxy server on Zentyal 3
« Reply #11 on: May 17, 2013, 11:03:23 am »
I'm not sure you understand what DHCP client means or how it works.
If you configure eth1, then the only setting is "DHCP". Once your interface is configured as DHCP client, it will broadcast, look for DHCP server, get IP address and other parameters... well everything required to properly configure eth1  :)

Of course, this means that there is a DHCP server on this network segment, meaning your ADSL interface (router) is configured to provide DHCP server services  ::)

So back to your question: is or related to Zentyal or ADSL router configuration  :P
If related to your router, then you should tell us a bit more...

Akhenaton

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Trying to configure Proxy server on Zentyal 3
« Reply #12 on: May 17, 2013, 11:17:33 am »
What do you mean "Relation between ADSL modem & Zentyal"? ADSL modem's service is only to "give" internet, there is no DHCP or Firewall or NAT...
ADSL modem work's through PPPoe and has static LAN ip address (for example 80.164.246.149)
And client computers have static ip addresses. There is no DHCP on server.

christian

  • Guest
Re: Trying to configure Proxy server on Zentyal 3
« Reply #13 on: May 17, 2013, 11:24:22 am »
if your ADSL device can't be configured as DCHP server, then this is for sure overkilling to install another box on this network segment to provide such service.
BTW, what's the brand/model of this device ?

This said, I'm very surprised that you ISP provides it with static internal IP with no DHCP capability, especially if this is end-user oriented  ;)

Akhenaton

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Trying to configure Proxy server on Zentyal 3
« Reply #14 on: May 17, 2013, 11:35:11 am »
ADSL device (Zyxel P660H-T1) CAN BE configurated as DHCP server, but this option isn't in use. As I said earlier - there is no need for DHCP in local network. All I need - is to "give internet" to client computers from proxy-server )))