- OPENVPN
+ Responder ao Tópico
-
OPENVPN
Prezado,
Alguem tem um exemplo de cofiguração do openvpn 2.0 explicado! Eu disse OPENVPN 2.0 nao versao 1.6 ou 1.8!!!!!!!
Ou algum tutorial para uma ligação LAN-to-LAN ?
Obrigado!
-
Re: OPENVPN
-
Re: OPENVPN
ajuda (instalei 2.0 hoje)
server.conf
dev tun
ifconfig 10.8.0.1 10.8.0.2
secret static.key
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
user nobody
group nobody
daemon
log /var/log/openvpn.log
verb 1
client.conf
remote IP_SERVIDOR
dev tun
port 1194
proto udp
comp-lzo
ifconfig 10.8.0.2 10.8.0.1
secret static.key
route 192.168.0.0 255.255.254.0
tcpdump da interface tun1 do servidor qdo tento pingar (ping 10.8.0.1)[root@loghost ~]# tcpdump -i tun1 -p -n -vvvvv
tcpdump: WARNING: arptype 65534 not supported by libpcap - falling back to cooked socket
tcpdump: listening on tun1, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
11:50:39.281515 IP15 bad-len 0
11:50:47.553829 IP15 bad-len 0
11:50:52.781909 IP15 bad-len 0
11:50:58.282280 IP15 bad-len 0
11:51:03.782711 IP15 bad-len 0
saida ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:7D1:8B:4A
inet addr:192.168.0.XX Bcast:192.168.1.255 Mask:255.255.254.0
inet6 addr: fe80::2e0:7dff:fed1:8b4a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:39061867 errors:0 dropped:0 overruns:0 frame:0
TX packets:3510968 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:673793920 (642.5 MiB) TX bytes:435012719 (414.8 MiB)
Interrupt:10 Base address:0xd000
tun1 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
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:33 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1282 (1.2 KiB) TX bytes:0 (0.0 b)
se nao consigo pingar o meu gateway TUN como sei que funcionou ?
[]s