OpenVPN tun routing (can ping tun interfaces) with mikrotik and NAT on both ends
1,309
Solution
On Mikrotik nat for OPVN was missing:
srcnat -o OPVN -acction masquerade
This fix the problem on Mikrotik site
Related videos on Youtube
Author by
MexicoBoy
Updated on September 18, 2022Comments
-
MexicoBoy almost 2 years
I'm currently trying to make a function where it loops and by using .subscribe I'm getting an array object each time so that later on I can push the data inside an another array. The loop works but the problem is that the results is not what I want because the .subscribe part is printing the first array and then for the rest it's giving me null arrays whereas it suppose to print 20x the same array. I currently started experimenting with angular and to my knowledge of other languages I don't think that it's working good by first printing "Test"x20 and after goes inside the subscribe and printing.
Function:
testingFunction() { let i: number = 0; while(i < 20){ console.log("Test"); this.testService.getAll().subscribe((object: any[]) => { console.log(object); }) i++; } }
-
Michal Sapsa almost 10 yearsThank you for your input, but the configuration above was good, but was missing the NAT rule. Since this is standard vpn configuration vpn server is always with .1 at the end of address, and the clients are dynamic. So the ip is dynamic and if mikrotik is client he set the routing tables dynamic, no modification can me made.
-
MexicoBoy over 4 yearsAlthough this answer worked in grouping the arrays, I'm still having the first array visible and the others as null
-
wentjun over 4 years@MexicoBoy in that case, what does
getAll()
do? I am guessing it is some other part in your codebase that is giving you an issue