Dear Community,
I have searched the internet and forums but so far without succes.
This is my situation hopefully someone can give me a tip so i can finish the installation.
I have 1 network 10.100.0.0/255.255.0.0
Servers will get 10.100.1.x
VPN Clients gets 10.100.2.x where 10.100.2.1 is the local vpn server it server. Also 10.100.1.1 is the ip on the vpn server.
If i am connected to my server with ssh i can ping to a other server for example 10.100.1.2 (Samba Server)
Once i am connected with vpn i can ping 10.100.2.6 (my self) 10.100.2.1 (OpenVPN server) 10.100.1.1 (OpenVPN server on other ip) but i can't ping 10.100.1.2 (Samba Server)
This is my configurtion:
Route:
root@VPN:/etc/openvpn# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default externalip 0.0.0.0 UG 0 0 0 eth0
10.100.0.0 * 255.255.0.0 U 0 0 0 eth1
10.100.2.0 10.100.2.2 255.255.255.0 UG 0 0 0 tun0
10.100.2.2 * 255.255.255.255 UH 0 0 0 tun0
localnet * 255.255.255.0 U 0 0 0 eth0
Server Config:
root@VPN:/etc/openvpn# grep -v '^#' /etc/openvpn/server.conf | grep -v '^;'
port 1194
proto udp
dev tun
ca /etc/openvpn/certs/ca.crt
cert /etc/openvpn/certs/vpn.crt
key /etc/openvpn/certs/vpn.key # This file should be kept secret
dh /etc/openvpn/certs/dh2048.pem
server 10.100.2.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.100.1.0 255.255.255.0"
push "route 10.100.2.0 255.255.255.0"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Client Config:
client
dev tun
;dev-node MyTap
;proto tcp
proto udp
remote remotevpnip 1194
;remote my-server-2 1194
;remote-random
resolv-retry infinite
nobind
;user nobody
;group nobody
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
ca "c:\\openvpn\\ca.crt"
cert "c:\\openvpn\\kevin.crt"
key "c:\\openvpn\\kevin.key"
ns-cert-type server
;tls-auth ta.key 1
;cipher x
comp-lzo
verb 3
;mute 20
IPforward is enabled.
root@VPN:/etc/openvpn# grep ip.forward /etc/sysctl.conf
net.ipv4.ip_forward=1
I am running:
Server: Debian 7 latest version/updates
Client: Windows 8
Hope that someone can help me. And tackle this problem 🙂
Kind regards,
Kevin