Gorra7
August 22, 2017, 7:11pm
1
Hi,
I've installed OpenVPN (Pivpn) server on a Raspberry Pi 3 which is behind the mikrotik NAT.
Which nat rule should I sett on my RB to allow traffic in ?
BTW, I'm using ddns (No-ip) on my OpenVPN server(on Raspberry Pi) and Port 1194, udp.
Here is the output of the firewall!
aug/19/2017 20:57:10 by RouterOS 6.40.1
software id = EXH1-G39W
model = RouterBOARD 952Ui-5ac2nD
serial number = 6CBA0690B971
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
Gorra7
August 22, 2017, 10:07pm
2
I did a little research.. I think on RB, I need to point the Port 1194 to the Raspberry’s IP address in the NAT, isn’t it?
Sob
August 22, 2017, 11:25pm
3
You think correct, this will probably do the trick:
/ip firewall nat
add action=dst-nat chain=dstnat dst-address-type=local dst-port=1194 protocol=udp to-addresses=<Raspi internal IP>
Gorra7
August 23, 2017, 12:07am
4
Sob:
You think correct, this will probably do the trick:
/ip firewall nat
add action=dst-nat chain=dstnat dst-address-type=local dst-port=1194 protocol=udp to-addresses=<Raspi internal IP>
It works )
Thanks for your guide!