Есть сервер debian8 на нем два интерфейса
iface eth0 inet static (wan)
address 192.168.40.139
netmask 255.255.255.0
network 192.168.40.0
broadcast 192.168.40.255
gateway 192.168.40.35
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
сам tun0
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
port 1194
proto udp
dev tun
ca ca.crt
cert vpn.crt
key vpn.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
client-config-dir ccd
push "redirect-gateway def1 bypass-dhcp"
client-to-client
keepalive 10 120
tls-auth ta.key 0 # This file is secret
cipher AES-128-CBC # AES
auth SHA512
tls-version-min 1.2
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 3
net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
push "dhcp-option DNS 192.168.40.241"
push "route 192.168.0.0 255.255.255.0"
клиент windows 7 конфиг
client
dev tun
proto udp
remote 192.168.1.1 1194
resolv-retry infinite
nobind
user nobody
group nobody
persist-key
persist-tun
ca
cert
key
tls-auth ta
cipher AES-128-CBC
comp-lzo
verb 3
клиент подключается к серверу, сеть за vpn (т.е. 192.168.1.0/24 пингуется, на шары заходит) Проблема в том что не могу настроить интернет на клиенте
nslookup dc0
address 192.168.40.10
ping: сбой передачи .General failure
push "redirect-gateway def1 bypass-dhcp"
push "redirect-gateway local def1"
push "redirect-gateway def1"
push "route-gateway 192.168.40.35"
push "route-method exe"
push "route-delay 2"