Community discussions

MikroTik App
 
VadimS7
just joined
Topic Author
Posts: 6
Joined: Mon Jul 06, 2020 3:51 pm

change the values ​​of the rules without creating a new one?

Mon Aug 09, 2021 4:39 pm

can a script in a dhcp client change ip addresses in mangle rules, or routes, change ip values ​​without creating a new rule?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: change the values ​​of the rules without creating a new one?

Mon Aug 09, 2021 5:21 pm

If the rule is dynamic: no
If the rule is static: yes
 
VadimS7
just joined
Topic Author
Posts: 6
Joined: Mon Jul 06, 2020 3:51 pm

Re: change the values ​​of the rules without creating a new one?

Tue Aug 10, 2021 8:49 am

If the rule is dynamic: no
If the rule is static: yes
the rule is static. Can an example please, I'm interested in the ability to take the ip address of the dhcp client and replace it in src adreess in the mangle
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: change the values ​​of the rules without creating a new one?

Tue Aug 10, 2021 10:04 am

Search the forum, it is full of examples.

1) The script on the DHCP client which is executed when the dhcp acquires an address, can allow to read the IP value and ...

2) Within the same script you set that IP on the mangle,
to find the correct mangle, the right mangle has a predetermined comment

Who is online

Users browsing this forum: No registered users and 22 guests