Allow only one IP to see all clients

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
vienfla
OpenVpn Newbie
Posts: 5
Joined: Thu Apr 07, 2011 5:41 pm

Allow only one IP to see all clients

Post by vienfla » 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
Last edited by vienfla on Sat Apr 09, 2011 3:19 pm, edited 1 time in total.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Allow only one IP to see all clients

Post by maikcat » Fri Apr 08, 2011 7:05 am

hi there,

if your pc belongs to one of the clients range ,
and you want your pc to see other clients but not the opposite
the only way to accomplish this is by enabling a firewall on your pc...

because i am a little bit confused,

your pc is one of the clients or it belongs inside your network?

michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

vienfla
OpenVpn Newbie
Posts: 5
Joined: Thu Apr 07, 2011 5:41 pm

Re: Allow only one IP to see all clients

Post by vienfla » Fri Apr 08, 2011 12:56 pm

Hi maikcat!

The server is on a distant machine outside my network.

My pc is one of the clients, and I don't mind if they can see me, but I want to see them straight.

I just want to avoid all other clients to communicate between them. (they can only see the server and me).

Thanks for help!

Post Reply