Hi All
I've got a raspberry pi running OpenWRT, and I'm trying to use OpenVPN to create a site-to-site tunnel. The Raspberry Pi connects to internet via a wireless connection. That is working already.
My Network Diagram:
https://snipboard.io/NBpqDz.jpg
My local network: 10.94.48.0/24
My remote network: 10.94.43.0/24 ((i.e. the network on the otehr side of the OpenVPN tunnel))
Local Device: Raspberry Pi running OpenVPN
config openvpn 'DCVPN'
option dev 'tun'
option keepalive '10 60'
option verb '3'
option persist_tun '0'
option persist_key '0'
option port '1194'
option auth 'SHA256'
option cipher 'AES-128-CBC'
option secret '/etc/openvpn/dcvpn.key'
list route '10.94.43.0 255.255.255.0'
option ncp_disable '1'
list remote '64.46.214.22'
option comp_lzo 'yes'
option ping_timer_rem '1'
option ifconfig '10.94.32.2 10.94.32.1'
option enabled '1'
option client_to_client '0'
Remote Device: pfSense running OpenVPN
dev ovpns2
verb 1
dev-type tun
dev-node /dev/tun2
writepid /var/run/openvpn_server2.pid
#user nobody
#group nobody
script-security 3
daemon
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
proto udp4
cipher AES-128-CBC
auth SHA256
up /usr/local/sbin/ovpn-linkup
down /usr/local/sbin/ovpn-linkdown
local 64.46.214.22
ifconfig 10.94.32.1 10.94.32.2
lport 1194
management /var/etc/openvpn/server2.sock unix
route 10.94.48.0 255.255.255.0
secret /var/etc/openvpn/server2.secret
compress lzo
The VPN connects successfully. I can ssh into the raspberry pi / openwrt itself and ping hosts at the remote end in the 10.94.43.0/24 network, but I cannot ping any hosts on the remote end by using the raspberry pi as my default gateway. I receive a "Destination Port Unreachable" Error.
Similarly, from a host on the remote network, I am not able to ping any hosts on the local network either. I receive a "Destination Port unreachable" error.
What could be causing this? My knowledge of iptables and networking on linux isn't very good.