Hello,
Thank you to anybody who will take some time to understand my problem and to give me a hint of how I can fix it.
I need help with my VPN. Actually, I connect to my VPN and access all documents on my server but I need a littlebit more.
I will try to explain and give all information I know to help you give me a hint of what's wrong with my connection.
Actually, when I'm connected to the VPN, I can access 10.11.12.1 and 10.11.12.2. The problem is that I would like to access 10.11.12.99 which is my printer.
Physical stuff
- Cable from the wall to WAN modem (modem ip 192.168.2.1)
- Cable from LAN modem to WAN router (router ip 10.11.12.254)
- Cable from LAN router to network card of my server (10.11.12.1, 10.11.12.2)
- Cable from LAN router to printer 10.11.12.99)
- All other computers on the network are connected to router by wifi.
My Linux Server
IP address for eth0: 10.11.12.1
IP address for eth0:0: 10.11.12.2
IP address for tun0: 10.11.13.209
IP address for tun1: 10.11.13.193
Server OpenVPN file
local 10.11.12.1
proto udp
comp-lzo
dev tun
tls-server
server 10.11.13.192 255.255.255.240
ca certs/ca.crt
cert certs/XXXXX.crt
key certs/XXXXX.key
dh certs/XXXXX.pem
verb 3
push "route 10.11.13.0 255.255.255.0"
push "route 10.11.12.0 255.255.255.0"
Client OpenVPN file
client
nobind
remote XX.XX.XX.XXX:1194
proto udp
comp-lzo
dev tun
tls-client
ca XX.crt
cert XX.crt
key XX.key
Route print (when connected to VPN)
IPv4 Table de routage
===========================================================================
Itinéraires actifs :
Destination réseau Masque réseau Adr. passerelle Adr. interface Métrique
0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.22 25
10.11.12.0 255.255.255.0 10.11.13.197 10.11.13.198 30
10.11.13.0 255.255.255.0 10.11.13.197 10.11.13.198 30
10.11.13.193 255.255.255.255 10.11.13.197 10.11.13.198 30
10.11.13.196 255.255.255.252 On-link 10.11.13.198 286
10.11.13.198 255.255.255.255 On-link 10.11.13.198 286
10.11.13.199 255.255.255.255 On-link 10.11.13.198 286
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 2 55.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.2.0 255.255.255.0 On-link 192.168.2.22 281
192.168.2.22 255.255.255.255 On-link 192.168.2.22 281
192.168.2.255 255.255.255.255 On-link 192.168.2.22 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.2.22 281
224.0.0.0 240.0.0.0 On-link 10.11.13.198 286
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.2.22 281
255.255.255.255 255.255.255.255 On-link 10.11.13.198 286
===========================================================================
Itinéraires persistants :
Aucun
Router connection status
Connection Type : PPPoEFixed IP
Cable Status : Connected
Network Status : Connected
IP Address : XX.XX.XX.XXX (The public IP I use to connect to my VPN)
Subnet Mask : 255.255.255.255
Default Gateway : XX.XXX.XX.X (My ISP Gateway)
Primary DNS Server : 10.11.12.1
Secondary DNS Server : 8.8.8.8
Advanced DNS : Disabled
VPN Connection details
Tue Sep 17 20:15:37 2013 OpenVPN 2.2.1 Win32-MSVC++ [SSL] [LZO2] built on Jul 1 2011
Tue Sep 17 20:15:37 2013 WARNING: No server certificate verification method has been enabled. See
http://openvpn.net/howto.html#mitm for more info.
Tue Sep 17 20:15:37 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Sep 17 20:15:37 2013 LZO compression initialized
Tue Sep 17 20:15:37 2013 UDPv4 link local: [undef]
Tue Sep 17 20:15:37 2013 UDPv4 link remote: MYPUBLICIP:1194
Tue Sep 17 20:15:43 2013 [XX.XXXX.xx] Peer Connection Initiated with MYPUBLICIP:1194
Tue Sep 17 20:15:45 2013 TAP-WIN32 device [Connexion au réseau local] opened: \\.\Global\{47C888E1-5FB9-41E2-B084-5CAA2DDC385B}.tap
Tue Sep 17 20:15:45 2013 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.11.13.198/255.255.255.252 on interface {47C888E1-5FB9-41E2-B084-5CAA2DDC385B} [DHCP-serv: 10.11.13.197, lease-time: 31536000]
Tue Sep 17 20:15:45 2013 Successful ARP Flush on interface [12] {47C888E1-5FB9-41E2-B084-5CAA2DDC385B}
Tue Sep 17 20:15:50 2013 Initialization Sequence Completed
Finally, in my router, I've added a static route
Destination IP 10.11.12.0
Netmask : 255.255.255.0
Gateway: 10.11.12.1
Yes, that's it, I think I have described everything.
Does anybody have an idea why I cannot access 10.11.12.99 when I'm connected to VPN ??
Thanks !