EDITED -
Just added
push "redirect-gateway def1"
push "dhcp-option DNS 10.254.1.1"
and it works fine for vista now.. not sure if it will mess it up for my linux client though.
Can anyone explain the difference between the linux and windows client setup?
END EDIT
I got openvpn to work for my destop ubuntu and linux reomte server and am able to redirect all my internet traffic through the remote server thanks to this communities help in this post
However im now trying to do the same with my vista desktop acting as client. But when I use the client settings from my ubuntu client in vista with some small modifications it connects successcfully, pings fine but doesnt direct all tracffic. Are there some differences between windows and linux client configs?
here are my vista configs
client
dev tun
proto tcp
remote xxx.xxx.xx.xxx 1194
resolv-retry infinite
nobind
;user nobody
;group nogroup
persist-key
persist-tun
ca ca.crt
cert adamvista.crt
key adamvista.key
ns-cert-type server
cipher BF-CBC
comp-lzo
verb 3
heres the server conf
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server 10.254.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway"
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 3
ive noticed that some tutorials mention in the server configs to use
push "redirect-gateway local def1"
push "dhcp-option DNS 10.8.0.1"
whereas my server.conf for my linux server to linux client only had this int the linux sample i adopted
push "redirect-gateway"
Whats the difference here? is it windows / linux thing?
Can anyone help on these matters?
I also have a lot of tunnel adaptors when i do ipconfig. Perhaps they are creating a problem???? heres the output whilst im connected (excuse the japanese os printout )
Windows IP 構成
ホスト名 . . . . . . . . . . . . : Adam-PC
プライマリ DNS サフィックス . . . . . . . :
ノード タイプ . . . . . . . . . . . . : ハイブリッド
IP ルーティング有効 . . . . . . . . : いいえ
WINS プロキシ有効 . . . . . . . . : いいえ
イーサネット アダプタ ローカル エリア接続 2:
接続固有の DNS サフィックス . . . :
説明. . . . . . . . . . . . . . . : TAP-Win32 Adapter V9
物理アドレス. . . . . . . . . . . : 00-FF-D5-B0-0B-B7
DHCP 有効 . . . . . . . . . . . . : はい
自動構成有効. . . . . . . . . . . : はい
リンクローカル IPv6 アドレス. . . . : fe80::9cc0:63ff:d412:e553%16(優先)
IPv4 アドレス . . . . . . . . . . : 10.254.1.10(優先)
サブネット マスク . . . . . . . . : 255.255.255.252
リース取得. . . . . . . . . . . . : 22 September 2009 19:15:36
リースの有効期限. . . . . . . . . : 22 September 2010 19:15:36
デフォルト ゲートウェイ . . . . . :
DHCP サーバー . . . . . . . . . . : 10.254.1.9
DNS サーバー. . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over TCP/IP . . . . . . . : 有効
イーサネット アダプタ ローカル エリア接続:
接続固有の DNS サフィックス . . . :
説明. . . . . . . . . . . . . . . : Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller
物理アドレス. . . . . . . . . . . : 00-23-54-0D-37-61
DHCP 有効 . . . . . . . . . . . . : はい
自動構成有効. . . . . . . . . . . : はい
リンクローカル IPv6 アドレス. . . . : fe80::ed4d:1531:62a3:ab2e%8(優先)
IPv4 アドレス . . . . . . . . . . : 192.168.11.2(優先)
サブネット マスク . . . . . . . . : 255.255.255.0
リース取得. . . . . . . . . . . . : 22 September 2009 18:11:35
リースの有効期限. . . . . . . . . : 24 September 2009 18:11:34
デフォルト ゲートウェイ . . . . . : 192.168.11.1
DHCP サーバー . . . . . . . . . . : 192.168.11.1
DNS サーバー. . . . . . . . . . . : 192.168.11.1
NetBIOS over TCP/IP . . . . . . . : 有効
Tunnel adapter ローカル エリア接続* 6:
メディアの状態. . . . . . . . . . : メディアは接続されていません
接続固有の DNS サフィックス . . . :
説明. . . . . . . . . . . . . . . : Microsoft ISATAP Adapter
物理アドレス. . . . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP 有効 . . . . . . . . . . . . : いいえ
自動構成有効. . . . . . . . . . . : はい
Tunnel adapter ローカル エリア接続* 7:
接続固有の DNS サフィックス . . . :
説明. . . . . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
物理アドレス. . . . . . . . . . . : 02-00-54-55-4E-01
DHCP 有効 . . . . . . . . . . . . : いいえ
自動構成有効. . . . . . . . . . . : はい
IPv6 アドレス . . . . . . . . . . . : 2001:0:cf2e:3096:c01:3e32:3f57:f4fd(優先)
リンクローカル IPv6 アドレス. . . . : fe80::c01:3e32:3f57:f4fd%9(優先)
デフォルト ゲートウェイ . . . . . : ::
NetBIOS over TCP/IP . . . . . . . : 無効
Tunnel adapter ローカル エリア接続* 11:
メディアの状態. . . . . . . . . . : メディアは接続されていません
接続固有の DNS サフィックス . . . :
説明. . . . . . . . . . . . . . . : Microsoft ISATAP Adapter #2
物理アドレス. . . . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP 有効 . . . . . . . . . . . . : いいえ
自動構成有効. . . . . . . . . . . : はい