I cannot do it.
I need help I am postiong all the steps I have followed, wishing that someone with a good heart will help me
I repeat the network "topology"
I have a network (192.168.1.0/255.255.255.0) at home. The gateway is a thompson router (192.168.1.254) and the openVPN server is located in a win7 PC in this network(192.168.1.148)
A Second network is at my country home (192.168.10.0/255.255.255.0). A same router is used as a gateway (192.168.10.1) and the client PC (to the VPN) is a WinXP Pro Sp3 (192.168.1.249)
The VPN is active and running on this PCs and I can connect to it from other places too.
Server Config
port 1194
proto udp
dev tun
dev-node TAP-Win32
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server 10.8.1.0 255.255.255.0
#ifconfig-pool-persist ipp.txt
#server-bridge
management localhost 23
#push "route 192.168.10.0 255.255.255.0"
#push "route 192.168.20.0 255.255.255.0"
#push "route 10.10.11.0 255.255.255.0"
#route 10.10.11.0 255.255.255.0
#route 192.168.10.0 255.255.255.0
#route 192.168.1.0 255.255.255.0
#client-config-dir C:\\Program Files\\OpenVPN\\config\\ccd
client-to-client
push "route 192.168.1.0 255.255.255.0"
keepalive 10 120
;tls-auth ta.key 0 # This file is secret
;cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
max-clients 100
;user nobody
;group nobody
persist-key
persist-tun
status openvpn-status.log
verb 6
;mute 20
Client Config
client
dev tun
dev-node TAP-Win32
proto udp
remote xxxx.xxx.xxx 1194
resolv-retry infinite
nobind
;user nobody
;group nobody
persist-key
persist-tun
ca ca.crt
cert client4.crt
key client4.key
ns-cert-type server
comp-lzo
verb 3
1st STEP:include additional machines on the server subnet. -Enable IP forwarding
-add the line push "route 192.168.1.0 255.255.255.0" on the server config file
- using telnet (this is the only way for the Thompson router to add routes) I add a route for the 10.8.1.0 on the gateway which is located at the openvpn server LAN. I use this command:
ip rtadd ip rtadd dst = <ip-address>
[dstmsk = <ip-mask(dotted or cidr)]>
[label = <{None|DSCP|Interactive|Management|
Video|VoIP-RTP|VoIP-Signal|default}]>
[gateway = <ip-address]>
[intf = <{loop|Internet|LocalNetwork}]>
[srcintf = <{loop|Internet|LocalNetwork}]>
[metric = <number{0-255}]>
dst=10.8.1.0
dstmsk=24
label "nothing"
gateway= 192.168.1.148 (the IP of the PC that runs the VPN server
intf=LocalNetwork
Also I use the command "ip saveall" to save this route on the router
So I've got a new entry on the IP table saying:
Destination=10.8.1.0/24, gateway=192.168.1.148, localnetwork
Firewall is disabled on both computers
Now I am at the home LAN(192.168.1.0), on a laptop with IP-192.168.1.68. I can ping the VPN server (10.8.1.0 and 192.168.1.148) and I can ping any other adress of the VPN (10.8.1.0). From my country home LAN(192.168.10.0) I can ping the VPN server and the Home LAN's gateway (192.168.1.254) but nothing else
So it seems that the VPN server (192.168.1.148 or 10.8.1.0) does not route the traffic correctly to the Home Lans PCs, since it routes it only to the router (192.168.10.254)
2nd step "Including multiple machines on the client side when using a routed VPN (dev tun)
-I create the client config dir ("C:\Program files\openvpn\config\ccd")
-I add the entry client-config-dir C:\\Program files\\openvpn\\config\\ccd
-create a file names client4 (no extension, right?) that contains the line
iroute 192.168.10.0 255.255.255.0
and place it in the ccd dir. client4 is the common name of the client pc
-place the command
route 192.168.10.0 255.255.255.0
in the server config file
-uncomment the "client-to-client" option in tthe server config file
-add the
push "route 192.168.10.0 255.255.255.0"
command in the server config
-create a route on the home LAN gateway
ip rtadd dst=192.168.10.0/24 gateway=192.168.1.148 intf=LocalNetwork
-create a route on the Client side LAN gateway
ip rtadd dst=10.8.1.0/24 gateway=192.168.1.249 intf=LocalNetwork
and at last
ip saveall
so I should be able to reach anh ip of the subnet (192.168.10.0) from any ip on the subnet 192.168.1.0.
Well something is wrong because I cannot
Any help?