Hi
I have the following problem:
I configured a vpn with openvpn between a linux and a mikrotik
VPN is established and mikrotik network traffic to the linux network normally functions, but I can not traffic from linux network to mikrotik network.
Has anyone managed to travel in both directions with this architecture?
I can not ping the local LAN from linux to mykrotik local network
[root@sacicloudbnlmc openvpn]# ping 192.152.1.1
PING 192.152.1.1 (192.152.1.1) 56(84) bytes of data.
can I ping the local network from mikrotik to the local linux network
ping 10.51.96.1
SEQ HOST SIZE TTL
0 10.51.96.1 56 125
1 10.51.96.1 56 125
2 10.51.96.1 56 125
sent=3 received=3 packet-loss=0% min-rtt=80ms avg-r
- linux configuration:
mode server
dev tun1
proto tcp-server
port 1012
persist-key
persist-tun
tls-server
dh /usr/local/etc/openvpn/dh1024.pem
ca /usr/local/etc/openvpn/SSA/cert_export_CA.crt
cert /usr/local/etc/openvpn/SSA/cert_export_CLIENT1.crt
key /usr/local/etc/openvpn/SSA/cert_export_CLIENT1.key
mute 10
cipher AES-256-CBC
auth SHA1
resolv-retry infinite
keepalive 10 20
float
tun-mtu 1420
status /var/log/openvpn-ssa-status.log
verb 6
log /var/log/openvpn-bnlmc-ssa.log
ifconfig 11.0.2.1 11.0.2.2
ifconfig-pool 11.0.2.1 11.0.2.2
route 192.152.1.0 255.255.255.0 11.0.2.2
push “route 10.51.96.0 255.255.254.0”
Routes on Linux:
[root@sacicloudbnlmc openvpn]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
PUBLIC_IP 0.0.0.0 255.255.255.255 UH 0 0 0 eth3
11.0.2.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun1
192.152.1.0 11.0.2.2 255.255.255.0 UG 0 0 0 tun1
201.73.144.0 0.0.0.0 255.255.254.0 U 0 0 0 eth3
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth2
0.0.0.0 201.73.144.1 0.0.0.0 UG 0 0 0 eth3