dny wrote:
On 7/12/06, Simon Kelley <si...@thekelleys.org.uk> wrote:

dny wrote:
> is there a way i can setup dhcp to give ip to users with subnet
> 255.255.255.255 ???
>
> i want to set this for my wifi network,
> so that all users cannot connect to other users.
> all they allow is to access to the internet gateway.
>
> i have gprs connection to operator that gives me private ip with this subnet and
> my ip is also the gateway. so it only allow us connect to the internet.
>
>
> how can i implement this?
>

It's not clear exactly what you want to do, but my guess is that you
want clients to be given a netmask of 255.255.255.255, so that all
traffic goes via the default route.

In that case, adding

dhcp-option=1,255.255.255.255

should  work. 1 is the DHCP option number for the netmask DHCP option,
and setting this explicitly will override that default value which
dnsmasq sends otherwise.


HTH

Simon


yes that's what i want.
after this, will client still be able to connect to internet?


That's a routing question, not a DHCP or DNS question, but my understanding is that it just means the client will use its default gateway for all traffic. If you arrange that the default gateway will forward packets to everywhere except the local network then you have achieved the goal of stopping clients on the local net from talking to each other. (At least until someone reconfigures them by hand)

Cheers,

Simon.

Reply via email to