Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15133

Scripting • Re: Automatic NAT 1:1 Rules Update Script for PPPoE Connections

$
0
0
3. **No Interruption of Active Connections**: The script updates only new connections with the new external IP, leaving existing connections unaffected to avoid disruptions.
bullshit: if the IP changes, the previous connection to an IP that no longer exists doesn't make the slightest sense.

4. **Automatic Scheduling**: The script is configured to run periodically (e.g., every minute) through the MikroTik's scheduler, ensuring that the NAT 1:1 rules are always up-to-date.
bullshit: there is already the part for scripts in the pppoe profile, just use the appropriate function without creating useless scripts or schedulers.


The script is poorly thought out.
Ignoring orrorgraphy, it updates the IP every minute, causing unnecessary continuous writes to the internal memory.

Also ignoring that it is the wrong method, it should at least check first if ip is the same as before.
But surprise: specifying the IP in the firewall rule is useless without consider the rest of the context.
If the outgoing pppoe interface has only one IP, it doesn't make any sense to specify it, so is all useless.

Statistics: Posted by rextended — Fri Mar 08, 2024 3:37 pm



Viewing all articles
Browse latest Browse all 15133

Trending Articles