No ping between openvpn clients

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
Astronomik
OpenVpn Newbie
Posts: 2
Joined: Sat Apr 23, 2011 5:33 pm

No ping between openvpn clients

Post by Astronomik » Sat Apr 23, 2011 6:41 pm

Hello to all. I have next server configuration.

cat server-main.conf

ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
client-config-dir ccd
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log openvpn-log.log
log-append openvpn-append.log
verb 3

/etc/openvpn# cat server-tap1.conf
management 127.0.0.2 7505
port 5190
proto tcp
dev tap1
server 192.168.11.0 255.255.255.128
ifconfig-pool-persist ipp1.txt
push "route 192.168.11.0 255.255.255.128"
push "route 192.168.10.0 255.255.255.128"
push "route 192.168.3.0 255.255.255.128"
#push "route 192.168.2.0 255.255.255.128"
push "route 192.168.1.0 255.255.255.128"
push "redirect-gateway"
cipher AES-128-CBC # AES
config server-main.conf

etc/openvpn# cat server-tap0.conf
management localhost 7505
port 443
proto tcp
dev tap0
server 192.168.10.0 255.255.255.0
ifconfig-pool-persist ipp0.txt
push "route 192.168.10.0 255.255.255.0"
push "dhcp-option DNS 192.168.1.1"
push "dhcp-option WINS 192.168.1.1"
config server-main.conf

For example, client A and client B have ip 192.168.10.6 and 192.168.10.7, and client C and client D have ip 192.168.11.6 and 192.168.11.7. I can ping from B clients C and D, from A - C and D too. But I can not ping A from B and B from A. Why? And what I cat to do than A ping B and inversely?

openvpn --version
OpenVPN 2.1.3 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Oct 22 2010
Thanks.

TheSilentTechie
OpenVpn Newbie
Posts: 15
Joined: Thu Feb 10, 2011 11:07 am

Re: No ping between openvpn clients

Post by TheSilentTechie » Sun Apr 24, 2011 6:02 am

I think you need only

Code: Select all

client-to-client
in your server config file.

Astronomik
OpenVpn Newbie
Posts: 2
Joined: Sat Apr 23, 2011 5:33 pm

Re: No ping between openvpn clients

Post by Astronomik » Sun Apr 24, 2011 6:24 am

Thanks a lot :) It work's )))

Post Reply