Sorry for the wrong terminology, but I’m not sure which terms I must use to describe my problem.
I want to separate my internal network in 2 groups. This was easy with mangle.
Both groups use the same gateway (192.168.0.1), but each group must be “visible” by the gateway with 1 seperate IP.
This means:
GROUP A → I want all the connections from this group to be masked in the ip 192.168.0.253
GROUP B → I want all the connections from this group to be masked in the ip 192.168.0.254
My Gateway router can manage different connections rights by the incoming ip only. So the only way to do it is to “mask” its group to an IP.
So for example a client which belongs to GROUP A must be shown as 192.168.0.253 to the gateway router and a client from Group B must be shown as 192.168.0.254 to the gateway router