On 2022-06-15 14:42, Atanas Vladimirov wrote:
Hello,

I need advice on how to NAT one subnet (LAN), which is in rdomain 0 to
the public network from rdomain 5.


Hi,

JFTR, I managed to figure it out thanks to more reading :)
What I did was adding the following rules:

```
# move traffic from rdomain 5 to rdomain 0
 match in on rdomain 5 to $IntIf:network rtable 0

# move traffic from rdomain 0 to rdomain 5
 match in on rdomain 0 from $IntIf:network to !172.16.1.0/16 rtable 5

# NAT
  match out log on $ExtIf5 inet from $IntIf:network \
 nat-to ($ExtIf5)
```

Best wishes,
Atanas

Reply via email to