alvaroiark
Hi everybody,
I have two servers with OpenVPN an Slave1 where connect normally on Server1 (here is the principal), I can ping, all works, but on the Server1, I can't ping, or do other operation on Slave1, bellow is my configuration, where I went wrong?
# My Server Configuration - This use Windows 7
dev tun
port 51004
script-security 2
proto tcp-server
max-clients 1
ifconfig 172.34.1.1 172.34.1.2
tls-server
dh /etc/openvpn/keys/dh1024.pem
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/srv1.crt
key /etc/openvpn/keys/srv1.key
comp-lzo
push "route 192.168.254.0 255.255.255.0"
ping 4
ping-restart 6
persist-tun
verb 3
# My Slave Configuration - This use Debian
client
dev tun
port 51004
remote x.x.x.x (my external ip)
proto tcp
ifconfig 172.34.1.2 172.34.1.1
ca ca.crt
cert slv1.crt
key slv1.key
tls-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3
Best Regards,
Alvaro Iark
alvaroiark
Hi debbie10t,
Thanks for your suggestion, so I changed the config file on slv1 for this bellow:
dev tun
port 51004
tls-client
remote-cert-tls server
script-security 2
remote x.x.x.x
proto tcp-client
max-clients 1
ifconfig 172.34.1.2 172.34.1.1
dh dh1024.pem
ca ca.crt
cert slv1.crt
key slv1.key
comp-lzo
pull
ping 4
ping-restart 6
persist-tun
verb 3
Now the slv1 continues pinging the srv1 (all IPs) and srv1 ping 172.34.1.2, but I need the server to ping the 192.168.5.10 which is the slv1 IP, how do this?
Need I add routes?
I add this way (on srv1):
route add -net 192.168.5.10 netmask 255.255.255.255 gw 172.34.1.2
Or
route add -net 192.168.5.0 netmask 255.255.255.0 gw 172.34.1.2
But not worked to ping 192.168.5.10