Community discussions

MikroTik App

Search found 11 matches

by linerov
Thu Oct 13, 2022 6:03 pm
Forum: Scripting
Topic: Updating NAT rule on interface IP address change (DHCP client) [SOLVED]
Replies: 7
Views: 5207

Re: [SOLVED] Updating NAT rule on interface IP address change (DHCP client) [SOLVED]

@Sob - thank you - that made the script even more simple.
I need to take a bit of a shame on me, that this time I didn't go and check docs around DHCP client - it is indeed there described, also variables.

Thanks again for all the help!
by linerov
Tue Oct 11, 2022 4:41 pm
Forum: Scripting
Topic: Updating NAT rule on interface IP address change (DHCP client) [SOLVED]
Replies: 7
Views: 5207

Re: Updating NAT rule on interface IP address change (DHCP client) [SOLVED]

Thanks @Sob. Would you mind to share more light on what you mean by runs as part of DHCP client? Is there a hook to attach script to DHCP client, once it runs/ip changes instead of blindly running it every X time? I got it done based on scheduler, here is what works for me: :global currentIPext; :lo...
by linerov
Tue Oct 11, 2022 3:22 pm
Forum: Scripting
Topic: Updating NAT rule on interface IP address change (DHCP client) [SOLVED]
Replies: 7
Views: 5207

Re: Updating NAT rule on interface IP address change (DHCP client) [SOLVED]

Thank you! I'm having some difficulties to understand these scripts. Looking at docs, can't find a good description of it - hence asking here. In my case, due to two IP addresses on the ext interface: /ip address> print where interface="ether1ext" Flags: X - disabled, I - invalid, D - dyna...
by linerov
Tue Oct 11, 2022 1:55 pm
Forum: General
Topic: CopyFrom - can't find in docs
Replies: 1
Views: 359

CopyFrom - can't find in docs

Hi All, Looking at modifying NAT rules from CLI level came across: /ip firewall nat add copy-from= CopyFrom ::= see documentation With that said, can't find anything about CopyFrom in documentation. (https://www.google.com/search?q=%22CopyFrom%22+site%3Ahttp%3A%2F%2Fwiki.mikrotik.com) Could anyone s...
by linerov
Tue Oct 11, 2022 1:49 pm
Forum: Scripting
Topic: Updating NAT rule on interface IP address change (DHCP client) [SOLVED]
Replies: 7
Views: 5207

Updating NAT rule on interface IP address change (DHCP client) [SOLVED]

Hi All, The need is to have the NAT rule allowing access to DMZ server. Current implementation uses as selector: in-interface-list=WAN chain=dstnat action=dst-nat to-addresses=192.168.1.1 to-ports=10443 protocol=tcp [b]in-interface-list=WAN[/b] dst-port=443 log=no log-prefix="" This works ...
by linerov
Sat Apr 16, 2022 10:38 pm
Forum: General
Topic: [solved] Destination nat to self - doesn't work
Replies: 9
Views: 1985

Re: Destination nat to self - doesn't work

Problem was between keyboard and the screen - sorry guys. Thank you @Sob, @mkx, @anav IoT are on separate bridge, let's say bridge-IoT, to which separate wifi is connected, etc. Address is added on bridge. What was missing was INPUT chain rule, as it was getting dropped high in the policy by one of ...
by linerov
Sat Apr 16, 2022 2:22 am
Forum: General
Topic: [solved] Destination nat to self - doesn't work
Replies: 9
Views: 1985

[solved] Destination nat to self - doesn't work

Hi All, The need is to have dst-nat to IP which is on the MikroTik - this doesn't work. The rule is set as: - chain: dst-nat - action: dst-nat IP: <IP_on_same_or_other_VLAN> Unfortunately this doesn't work. The moment IP is set to something outside of MikroTik, this rule works and traffic gets redir...
by linerov
Thu Apr 14, 2022 10:18 pm
Forum: General
Topic: Accounting missing - URL - 404 - telegraf/grafana integration?
Replies: 2
Views: 1126

Re: Accounting missing - URL - 404 - telegraf/grafana integration?

Thank you! Interestingly - Accounting on v6.47.8 is visible in config, but URL doesn't work anymore. This prompted me for upgrade to v7 where it is cleaned up completely. It MikroTik, could come up with easier way to monitor MikroTik, would be great. SNMP unfortunately does not contain enough detail...
by linerov
Thu Apr 14, 2022 7:31 pm
Forum: General
Topic: v7.2 - graphs missing
Replies: 3
Views: 951

v7.2 - graphs missing

Hi All, Please, could you suggest how to get back interface graphs embedded in RouterOS 6.47)? I had these presenting usage, etc. and in effort to get better accounting as mentioned under https://forum.mikrotik.com/viewtopic.php?t=185133 discovered that after upgrade to 7.2, graphs disappeared compl...
by linerov
Thu Apr 14, 2022 7:29 pm
Forum: General
Topic: Accounting missing - URL - 404 - telegraf/grafana integration?
Replies: 2
Views: 1126

Accounting missing - URL - 404 - telegraf/grafana integration?

Hi All, Following https://wiki.mikrotik.com/wiki/Manual:IP/Accounting there should be URL: http://routerIP/accounting/ip.cgi Unfortunately on my system, I was getting 404 (v6.47.8), even if accounting was enabled together with web-access and no filtering for access. After checking MikroTik download ...
by linerov
Mon Jan 17, 2022 2:02 am
Forum: Wireless Networking
Topic: 5GHz => Raspberry Pi 4 & hAP ac^2 - RouterOS v6.47.8 -
Replies: 2
Views: 3666

5GHz => Raspberry Pi 4 & hAP ac^2 - RouterOS v6.47.8 -

Hi All, Hopefully there will be a good soul who could recommend a working configuration. It is not a claim it is a problem with either Pi4 or the Mikrotik router. This could be a Raspberry Pi 4 problem, but can't find a good explanation, hence asking here. Situation is that I've 5Ghz net propagated ...