Всем ку. Поможите чем можите. Есть OpenVPN сервер, находящийся за NAT. Проброшен порт 1194 по tcp.
Клиент к нему подключается без проблем, может пинговать как и IP адрес сервера в локальной сети, так и в VPN. Сам тоже пингуется. А больше ничего в локальной сети клиент не видит. Вот конфиги:
Сервер
port 1194
tls-auth ta.key 0
cipher DES-EDE3-CBC
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
proto tcp
dev tun
server 10.8.0.0 255.255.255.0
client-to-client
ifconfig-pool-persist ipp.txt
client-config-dir ccd
push "route 192.168.1.0 255.255.255.0"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 3
Клиент:
client
tls-auth ta.key 1
cipher DES-EDE3-CBC
dev tun
proto tcp
remote a.b.c.d 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert andrey.crt
key andrey.key
ns-cert-type server
comp-lzo
log /var/log/openvpn.log
verb 3
Роуты на клиенте:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         78.46.111.49    0.0.0.0         UG        0 0          0 eth0
10.8.0.0        10.8.0.5        255.255.255.0   UG        0 0          0 tun0
10.8.0.5        0.0.0.0         255.255.255.255 UH        0 0          0 tun0
78.46.111.48    0.0.0.0         255.255.255.240 U         0 0          0 eth0
192.168.1.0     10.8.0.5        255.255.255.0   UG        0 0          0 tun0
# ifconfig 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.6  P-t-P:10.8.0.5  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:168 (168.0 B)  TX bytes:336 (336.0 B)
Роуты на сервере:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.8.0.2        0.0.0.0         255.255.255.255 UH        0 0          0 tun0
10.8.0.0        10.8.0.2        255.255.255.0   UG        0 0          0 tun0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 br0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 br0
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 br0


