Koozali.org: home of the SME Server

Gateway address for client in Server-Only-Mode

Offline kb-ohnemus

  • *****
  • 154
  • +0/-0
    • http://www.kb-ohnemus.de
Gateway address for client in Server-Only-Mode
« on: March 09, 2011, 08:48:37 AM »
Hi,

I'm running SME in Server-Only-Mode (192.168.0.1) and have an AVM-DSL-Router (192.168.0.10) for Internet. Configuring the clients via dhcp I noticed that squid is bypassed by the clients. This is because the client gets the address of the DSL-Router (192.168.0.10) as gateway rather than the address of SME-Server.

Also the manual says:

"If you are running in server and gateway mode, your server is your local network's gateway. Enter its IP address here: the default is "192.168.1.1". If you are running in server-only mode, enter the IP address for the device interfacing with your external network."

and that's also what dhcp sets the address to.

My problem is that this way Squid is bypassed, all clients have direct internet accesss. So I changed the Perl script configuring dhcpd.conf to provide the clients with the address of SME-Server. Everything seems to work.

But what is the reason for this configuration? Does changing it have any disadvantages?

Thanks
Manuel

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Gateway address for client in Server-Only-Mode
« Reply #1 on: March 09, 2011, 09:20:25 AM »
disable the dhcp service on the router..

Offline kb-ohnemus

  • *****
  • 154
  • +0/-0
    • http://www.kb-ohnemus.de
Re: Gateway address for client in Server-Only-Mode
« Reply #2 on: March 09, 2011, 10:17:07 AM »
Of course I only use dhcp-service provided by SME. In Server-Only-Mode Dhcp-service of SME is configured to provide the address of the DSL-Router as gateyway. See /etc/e-smith/templates/etc/dhcpd.conf/25Routers. I'd just like to understand the reason for this because this way squid is bypassed.