Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Smitro on June 22, 2009, 03:46:58 PM

Title: Change gateway in DHCP
Post by: Smitro on June 22, 2009, 03:46:58 PM
Hi all,

I've just recently moved house, and my internet connection now costs a fortune  :sad:

One way I thought of helping this was by using the proxy server in my SME box. I've had my SME box working for years, and it's working a charm. It works in server only mode as a web and mail server for others.

At the moment, the server handles the DHCP for the local network. When you get an ip address from it, the DNS server is the SME box and the Router is the Gateway. Can I modify the DHCP to tell all the clients to use the SME box as the Gateway and therefore they would use the built in transparent proxy?

I don't want to go down the path of getting another network card in the server and running and internal and external side. I like having the option of being able to bypass the box completly when I'm testing stuff. This at the moment is as simple as putting in a manual IP address.

Thanks in advance.
Title: Re: Change gateway in DHCP
Post by: Per on June 22, 2009, 04:57:21 PM
A setup I previously used wich means setting up two LAN:

I can't think of any simpler solution to your problem that I know would work, at least not with SME wich are (successfully) designed for a few basic setups.
Title: Re: Change gateway in DHCP
Post by: CharlieBrady on June 22, 2009, 08:11:13 PM
Can I modify the DHCP to tell all the clients to use the SME box as the Gateway and therefore they would use the built in transparent proxy?

No.

Just configure the browsers on your LAN to use the proxy.
Title: Re: Change gateway in DHCP
Post by: Per on June 22, 2009, 11:21:43 PM
Wow, so clients can use the proxy in SME Server even when it's in server-only mode?!
And it only requires that the clients are configured to have SME as their proxy?!

Is that correct understood? If so, I could (test and) document it somewhere, FAQ maybe as I have a dim memory of this being discussed before.
Title: Re: Change gateway in DHCP
Post by: janet on June 23, 2009, 01:16:43 AM
Per

Quote
Is that correct understood?

Yes
Title: Re: Change gateway in DHCP
Post by: Smitro on June 23, 2009, 10:28:58 AM
Thanks, yeah I had already setup the machines to use the proxy in the mean time. I was just stuck on my Wife's laptop which comes and goes between 2 networks. I figured she wouldn't want to change the proxy settings every time, just to save a MB here and there. I think I just won't worry about hers. I thought if it's something simple I've missed I'll give it a go.

For Per's sake, in your browser set your proxy settings to the IP address (or name) of your server and the port to 3128 and it will work.
Title: Re: Change gateway in DHCP
Post by: janet on June 23, 2009, 10:42:39 AM
Smitro

Quote
I was just stuck on my Wife's laptop which comes and goes between 2 networks.

You can configure different hardware profiles to cater for those different locations.
Title: Re: Change gateway in DHCP
Post by: Smitro on June 23, 2009, 12:46:16 PM
I was more thinking along the lines of an auto configure method for anyone that I allowed to come and connect to my network.