Community discussions

MikroTik App
 
mariogonbar
just joined
Topic Author
Posts: 2
Joined: Thu Feb 13, 2020 9:52 pm

Problem with a VPN Server Router behind Mikrotik

Thu Feb 13, 2020 11:13 pm

Hello,

I'm a new Mikrotik user. I have a problem with a VPN server on a router behind my Mikrotik. It's a PPTP VPN. The Mikrotik is the router that has the PPPoE protocol for Internet connection and the VPN Server router is on the LAN interface. I have opened the TCP/UDP port 1723 to the IP of the VPN server router and GRE protocol (47) to the same IP in NAT and allowed the access of connections through port 1723 and GRE protocol in the filtering rules. The configuration I have applied is this:

/ip firewall filter
add action=accept chain=input comment="ACEPTO CONEXIONES VPN" dst-port=1723 protocol=tcp
add action=accept chain=input dst-port=1723 protocol=udp
add action=accept chain=forward comment="PROTOCOLO GRE" protocol=gre
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=xxx.xxx.xxx.xxx dst-port=1723 protocol=tcp to-addresses=192.168.1.2 to-ports=1723
add action=dst-nat chain=dstnat dst-address=xxx.xxx.xxx.xxx dst-port=1723 protocol=udp to-addresses=192.168.1.2 to-ports=1723
add action=dst-nat chain=dstnat dst-address=xxx.xxx.xxx.xxx protocol=gre to-addresses=192.168.1.2
add action=dst-nat chain=dstnat dst-address=xxx.xxx.xxx.xxx dst-port=47 protocol=tcp to-addresses=192.168.1.2 to-ports=47
add action=dst-nat chain=dstnat dst-address=xxx.xxx.xxx.xxx dst-port=47 protocol=udp to-addresses=192.168.1.2 to-ports=47

I think the last two lines were not necessary but the connection to the router of the VPN server does not work even if I remove these lines.

Can someone help me with the setup? What am I missing?

Thanks in advance
 
Jimmy
Member Candidate
Member Candidate
Posts: 111
Joined: Thu Sep 29, 2011 11:42 pm
Location: Denmark
Contact:

Re: Problem with a VPN Server Router behind Mikrotik

Sun Feb 23, 2020 2:49 am

I have the same issues both on PPTP and l2tp so I Kipp an eye in here....
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: Problem with a VPN Server Router behind Mikrotik

Sun Feb 23, 2020 1:22 pm

For PPTP you will also need the helper, i.e.
/ip firewall service-port
set pptp disabled=no
 
User avatar
karlisi
Member
Member
Posts: 469
Joined: Mon May 31, 2004 8:09 am
Location: Latvia

Re: Problem with a VPN Server Router behind Mikrotik

Mon Feb 24, 2020 10:07 am

You don't need all UDP rules and all input chain rules. And the last 2 dst-nat rules too.
Try to add this (if you have default firewall ruleset you don't need it)
/ip firewall filter
add action=accept chain=frorward dst-port=1723 protocol=tcp
 
mariogonbar
just joined
Topic Author
Posts: 2
Joined: Thu Feb 13, 2020 9:52 pm

Re: Problem with a VPN Server Router behind Mikrotik

Mon Mar 16, 2020 8:21 pm

Thanks, everybody. Sorry about my English. With the directions you gave me, the problem was solved. Again, thank you

Who is online

Users browsing this forum: No registered users and 9 guests