hi
i have 2 range of ip
172.17.5.0/24 and 192.17.6.0/28
i want to mangle these, can you please say me in source address with which character , i can separate them form together?
thanks
1) Use address-list, if you need one mangle rule for both subnets.
Add both networks to /ip firewall address-list, set one mangle rule with src-address-list.
2) Create two mangle rules with the same mark-connection/mark-packet.
ip firewall mangle add src-address=
SrcAddress ::= [!]Range
Range ::= A.B.C.D[-A.B.C.D |0..32 |/A.B.C.D ] (IP address range)
can you type the sample for me with my ip addresses that i said in top, and the way that i should type in GUI?You can use only range there,
To use one mangle rule for both networks, use address-list.Code: Select allip firewall mangle add src-address= SrcAddress ::= [!]Range Range ::= A.B.C.D[-A.B.C.D |0..32 |/A.B.C.D ] (IP address range)
/ip firewall address-list
add list=whatever address=172.17.5.0/24
add list=whatever address=192.17.6.0/28
/ip firewall mangle
add chain=prerouting action=accept src-address-list=whatever
hi, thanks alot, good way.Paste that into the terminal window of the GUI and then inspect the things the commands created in the GUI to figure out how to create others like them via the GUI.Code: Select all/ip firewall address-list add list=whatever address=172.17.5.0/24 add list=whatever address=192.17.6.0/28 /ip firewall mangle add chain=prerouting action=accept src-address-list=whatever
You can't. You will need one rule per protocol. Just copy a previous rule then change the protocol type and you'll be fine.can you please say me in one mangle rule, how can i put more than 1 protocol, for example, both gre and ipsec and tcp?