Community discussions

MikroTik App
 
thanhkyanh
just joined
Topic Author
Posts: 2
Joined: Tue Feb 21, 2012 11:10 am

openvpn routing problem

Tue Feb 21, 2012 11:14 am

Hi,
I have problem when i try use openvpn on RB800(use routeros 5.13). Server(lan: 10.0.0.71) is on ubuntu, client(lan: 192.168.1.2) is on routeros. Client connected to server but i don't ping to each other. Please give some ideals.

server.conf:
local 10.0.0.71# This is the IP address of the real network interface on the server connected to the router

port 1194 # This is the port OpenVPN is running on - make sure the router is port forwarding this port to the above IP

proto tcp # UDP tends to perform better than TCP for VPN

mssfix 1400 # This setting fixed problems I was having with apps like Remote Desktop

#push "dhcp-option DNS 208.67.222.222"  # Replace the Xs with the IP address of the DNS for your home network (usually your ISP's DNS)

#push "dhcp-option DNS 208.67.220.220"  # A second DNS server if you have one

dev tap0

#dev-node Local Area Connection 2  #If you renamed your TAP interface or have more than one TAP interface then remove the # at the beginning and change "MyTAP" to its name

ca ca.crt
cert server.crt
key server.key
dh dh1024.pem

#server-bridge 10.1.10.1 255.255.255.0 10.1.10.2 10.1.10.254
server 10.1.10.0 255.255.255.0  # This assigns the virtual IP address and subent to the server's OpenVPN connection.  Make sure the Routing Table entry matches this.

ifconfig-pool-persist ipp.txt

push "redirect-gateway def1"  # This will force the clients to use the home network's internet connection

route 10.1.10.0 255.255.255.0
route 10.0.0.71 255.255.255.255. 10.1.10.1


route 192.168.1.2 255.255.255.255









keepalive 10 120

cipher BF-CBC        # Blowfish (default) encryption

comp-lzo

max-clients 100 # Assign the maximum number of clients here

persist-key

persist-tun

client-to-client

status openvpn-status.log

verb 1 # This sets how detailed the log file will be.  0 causes problems and higher numbers can give you more detail for troubleshooting


# lines starting with # or ; will not be read by OpenVPN
Thanks you very much.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: openvpn routing problem

Tue Feb 21, 2012 11:39 am

Disable LZO compression on the server. It is not supported in RouterOS.
 
thanhkyanh
just joined
Topic Author
Posts: 2
Joined: Tue Feb 21, 2012 11:10 am

Re: openvpn routing problem

Tue Feb 21, 2012 12:18 pm

I have been disabled comp-lzo and push routes but still have problems.

Who is online

Users browsing this forum: No registered users and 18 guests