Hello!
Please help with ROUTING ALL TRAFFIC OVER VPN.
For a long time now, I have been successfully using openvpn with the configuration below.
But so far it works only to connect to my (virtual) server, e.g. to collect emails.
Now I want to route all client traffic, over a similiar VPN.
If possible, I would prefer to leave the server openvpn.conf untouched, because it works. NCARS :-)
I am using openVPNgui on Windows 7.
What do I have to change in the (client) configuration to route everything over the VPN?
Thanks a million.
Andreas
#################################################
server openvpn.conf
rport 1194
lport 1194
ifconfig 10.11.12.13 255.255.255.252
daemon
secret /opt/psa/var/modules/vpn/vpn-key
writepid /opt/psa/var/modules/vpn/openvpn.pid
mtu-disc yes
comp-lzo
dev tap
float
keepalive 10 60
ping-timer-rem
resolv-retry infinite
#################################################
client config.ovpn
remote 8x.xxx.xxx.xx7
lport 1194
rport 1194
ifconfig 10.11.12.14 255.255.255.252
secret vpn.key
comp-lzo
dev tap
float
keepalive 10 60
ping-timer-rem
resolv-retry infinite
#################################################
WITHOUT the openvpn client running
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.10.254 192.168.10.7 25
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.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.10.0 255.255.255.0 On-link 192.168.10.7 281
192.168.10.7 255.255.255.255 On-link 192.168.10.7 281
192.168.10.255 255.255.255.255 On-link 192.168.10.7 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.10.7 281
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.10.7 281
===========================================================================
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . : lan
Description . . . . . . . . . . . : [CommView] Atheros AR5B97 Wireless Network Adapter
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.10.7(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.10.254
DHCP Server . . . . . . . . . . . : 192.168.10.254
DNS Servers . . . . . . . . . . . : 192.168.10.254
#################################################
WITH the openvpn client running
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.10.254 192.168.10.7 25
10.11.12.12 255.255.255.252 On-link 10.11.12.14 286
10.11.12.14 255.255.255.255 On-link 10.11.12.14 286
10.11.12.15 255.255.255.255 On-link 10.11.12.14 286
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.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.10.0 255.255.255.0 On-link 192.168.10.7 281
192.168.10.7 255.255.255.255 On-link 192.168.10.7 281
192.168.10.255 255.255.255.255 On-link 192.168.10.7 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.10.7 281
224.0.0.0 240.0.0.0 On-link 10.11.12.14 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.10.7 281
255.255.255.255 255.255.255.255 On-link 10.11.12.14 286
===========================================================================
Wireless LAN adapter Wireless Network Connection: as above
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TAP-Win32 Adapter V9
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.11.12.14(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . : 10.11.12.12
#################################################
I have already tried a lot, without success.
Do you need any other information to help me?
Thx!