Community discussions

 
koles142
just joined
Topic Author
Posts: 4
Joined: Sat Mar 16, 2019 11:14 pm

Routing OpenVPN to LAN - Problem

Mon Mar 25, 2019 1:58 am

I have:
ISP modem 192.168.1.1 connected to ETH1 Mikrotik
Mikrotik 192.168.31.1
OpenVPN server 192.168.32.3


I can connect to my openvpn server and my client have ip: 192.168.32.50. Problem is that I haven't access to my LAN network (192.168.31.0/24) from vpn tunnel. I need only connection to the LAN thru VPN tunnel but internet connection must be outside vpn..

/ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADS 0.0.0.0/0 192.168.1.1 1
1 ADC 192.168.1.0/24 192.168.1.11 ether1 0
2 ADC 192.168.31.0/24 192.168.31.1 LAN 0
3 ADC 192.168.32.50/32 192.168.32.3 <ovpn-pawel-vpn> 0

/ip firewall> nat print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat action=masquerade src-address=192.168.31.0/24
out-interface=ether1 log=no log-prefix=""

client conf:

client
dev tun
proto tcp
remote my public ip 1194
resolv-retry infinite
nobind
persist-key
persist-tun
#ca ca.crt
#cert user.crt
#key user.key
remote-cert-tls server
cipher AES-256-CBC
auth SHA1
auth-user-pass
redirect-gateway def1
verb 3


Can somebody help?

Who is online

Users browsing this forum: No registered users and 20 guests