Allow only one IP to see all clients
Posted: Thu Apr 07, 2011 5:55 pm
Hi everyone!
I'm looking for the configuration to allow a client (me) to see all other machines, but machines can't see each other.
My server is on 10.8.0.1
my clients are on 10.8.0.2-255
I tried to make a "push route" like 192.4.0.1 and put my machine on anoter subnet, I can reach the server, but none else.
If I set the client-to-client option it works of course, but my clients can reach each other!
I think I'm not too far, can someone help me?
Thanks a lot
Have a good day!
###
port 1194
proto udp
dev tun
ca ca.crt
cert hdmediaservpn.crt
key hdmediaservpn.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
route 192.168.4.0 255.255.255.0
client-config-dir ccd/
push "route 192.168.4.0 255.255.255.0"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
route :
Destination gw Genmask Indic Metric Ref Use Iface
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
87.181.115.0 * 255.255.255.0 U 0 0 0 eth0
192.168.4.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
default 87.181.115.1 0.0.0.0 UG 0 0 0 eth0
I'm looking for the configuration to allow a client (me) to see all other machines, but machines can't see each other.
My server is on 10.8.0.1
my clients are on 10.8.0.2-255
I tried to make a "push route" like 192.4.0.1 and put my machine on anoter subnet, I can reach the server, but none else.
If I set the client-to-client option it works of course, but my clients can reach each other!
I think I'm not too far, can someone help me?
Thanks a lot
Have a good day!
###
port 1194
proto udp
dev tun
ca ca.crt
cert hdmediaservpn.crt
key hdmediaservpn.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
route 192.168.4.0 255.255.255.0
client-config-dir ccd/
push "route 192.168.4.0 255.255.255.0"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
route :
Destination gw Genmask Indic Metric Ref Use Iface
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
87.181.115.0 * 255.255.255.0 U 0 0 0 eth0
192.168.4.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
default 87.181.115.1 0.0.0.0 UG 0 0 0 eth0