I trying to di this: A dhcp and proxy server that serves abount 50 points. But the cool thing is that each one cannot see another one. The proxy side I know how to do but the dhcp side is another history.
I think in create 50 virtuals IPs in the server nic and so create 50 subnet with 1 ip range, so when a client come in, it win a unique IP that will be different of the others and each one will not see the others, they will only see the server and the Internet.
For the tests I'm trying but without success this:
My last dhcpd.conf :
---
ddns-update-style ad-hoc;
shared-network 0 {
subnet 192.168.0.0 netmask 255.255.255.0 {
option broadcast-address 192.168.0.255;
}
}
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.5;
option broadcast-address 192.168.1.255;
}
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.2 192.168.2.5;
option broadcast-address 192.168.2.255;
}
---
ifconfig :
---
eth1 Encapsulamento do Link: Ethernet Endereço de HW 00:02:44:25:C0:EC
inet end.: 192.168.0.1 Bcast:192.168.0.255 Masc:255.255.255.0
endereço inet6: fe80::202:44ff:fe25:c0ec/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:6718 errors:0 dropped:0 overruns:0 frame:0
TX packets:15975 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:940656 (918.6 Kb) TX bytes:12740022 (12.1 Mb)
IRQ:10 Endereço de E/S:0x2000
eth1:1 Encapsulamento do Link: Ethernet Endereço de HW 00:02:44:25:C0:EC
inet end.: 192.168.1.1 Bcast:192.168.1.255 Masc:255.255.255.0
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:0 (0.0 b ) TX bytes:0 (0.0 b )
IRQ:10 Endereço de E/S:0x2000
eth1:2 Encapsulamento do Link: Ethernet Endereço de HW 00:02:44:25:C0:EC
inet end.: 192.168.2.1 Bcast:192.168.2.255 Masc:255.255.255.0
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:0 (0.0 b ) TX bytes:0 (0.0 b )
IRQ:10 Endereço de E/S:0x2000
---
service dhcpd start
[Failed]
syslog :
---
dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
dhcpd: Wrote 0 leases to leases file.
dhcpd: Interface eth1 matches multiple shared networks
dhcpd:
dhcpd: exiting.
dhcpd: dhcpd inmcio failed
---
Why?
Any clue? Thanks in advance.
Oh, and if my aproch is wrong, please point me to the right direction. Thx.