Hello,
I have an issue with my open VPN.
I can connect to VPNServer but I can't ping the device in my remote LAN
My computer (10.0.0.80) --> WAN --> My ADSL BOX (192.168.0.254) --> OpenVPN (eth0 : 192.168.0.50 | tap0 : 192.168.0.1)
When the client is connected I can ping eth0 and tap0 of my openvpn server, but now way to ping the BOX (192.168.0.254 (freebox))
During the ping if I run a tcpdump on the openvpn server I see the echo request but no reply...
root@lune:/home/pi# tcpdump -i tap0 icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tap0, link-type EN10MB (Ethernet), capture size 65535 bytes
17:31:35.323951 IP 192.168.0.2 > Freebox: ICMP echo request, id 1, seq 872, length 40
17:31:39.992502 IP 192.168.0.2 > Freebox: ICMP echo request, id 1, seq 875, length 40
Could you please find bellow the
server.conf :
mode server
proto tcp
port 443
dev tap0
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
tls-auth ta.key 1
key-direction 0
cipher AES-256-CBC
server 192.168.0.0 255.255.255.248
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 192.186.0.254"
keepalive 10 120
user nobody
group nogroup
chroot /etc/openvpn/jail
persist-key
persist-tun
comp-lzo
verb 3
mute 20
status openvpn-status.log
; log-append /var/log/openvpn.log
Client conf :
# Client
client
dev tap
proto tcp-client
remote 88.XXX.XXX.XXX 443
resolv-retry infinite
cipher AES-256-CBC
# Cles
ca ca.crt
cert doodoo.crt
key doodoo.key
tls-auth ta.key 1
# Securite
nobind
persist-key
persist-tun
comp-lzo
verb 5
auth-user-pass
#tun-mtu 1400
iptable
root@lune:/home/pi# iptables -L -v
Chain INPUT (policy ACCEPT 4874 packets, 3016K bytes)
pkts bytes target prot opt in out source destination
704 65278 ACCEPT all -- tap+ any anywhere anywhere
0 0 ACCEPT all -- tap0 any anywhere anywhere
0 0 ACCEPT all -- br0 any anywhere anywhere
Chain FORWARD (policy ACCEPT 1013 packets, 63360 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- br0 any anywhere anywhere
Chain OUTPUT (policy ACCEPT 3468 packets, 336K bytes)
pkts bytes target prot opt in out source destination
root@lune:/home/pi#
Ifconfig:
root@lune:/home/pi# ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:0c:3a:6e
inet addr:192.168.0.50 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32692885 errors:0 dropped:0 overruns:0 frame:0
TX packets:33334049 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2152482040 (2.0 GiB) TX bytes:2065089876 (1.9 GiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1544 (1.5 KiB) TX bytes:1544 (1.5 KiB)
tap0 Link encap:Ethernet HWaddr 9e:15:f6:1b:3b:4d
inet addr:192.168.0.1 Bcast:192.168.0.7 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:863 errors:0 dropped:42 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:80436 (78.5 KiB) TX bytes:378 (378.0 B)
NetStat:
root@lune:/home/pi# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.248 U 0 0 0 tap0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Thanks in advance for your help.
Have a nice day.
Damien