-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static-NAT update #642
Static-NAT update #642
Conversation
docs/config_nat.md
Outdated
@@ -106,6 +106,29 @@ exit | |||
|
|||
``` | |||
|
|||
### Non-SVR Traffic | |||
|
|||
The `ingress-source-nat-pool` and the `source-nat` settings of `bidirectional-nat` are both `ingress source-nat` that are intended for SVR traffic targeted towards an inter-router peer. In this situation, the NAT will be applied on the ingress router rather than the final egress router. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to read the first sentence four times and I still don't think I grok it. This statement needs to be changed for readability.
Additionally, ingress-source-nat-pool
is being referenced for the first time here. Definitions would help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MichaelBaj below is the "annotation" for the first sentence.
Depending on when and where a packet gets source NAT'd, there are two types of source NAT - ingress and egress.
The
bidirectional-nat
config is in the form oflocal-ip
andremote-ip
pair.
- source-nat (local-ip -> remote-ip) is performed for packet ingressing the interface where
bidirectional-nat
is configured.- dest-nat (remote-ip -> local-ip) is performed for packet egressing the interface where
bidirectional-nat
is configured.In this sense, along with
ingress-source-nat-pool
, thesource-nat
part ofbidirectional-nat
falls into the ingress source-nat category and will be handled accordingly.
docs/config_nat.md
Outdated
|
||
The `ingress-source-nat-pool` and the `source-nat` settings of `bidirectional-nat` are both `ingress source-nat` that are intended for SVR traffic targeted towards an inter-router peer. In this situation, the NAT will be applied on the ingress router rather than the final egress router. | ||
|
||
If you want to configure `ingress source-nat` for non-SVR traffic, for example LAN-to-LAN traffic traversing a single SSR router, you can use the configuration above. However, you must also disable `egress source-nat` at the service level by setting `service->source-nat` to `disabled` as shown below: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
convention for referencing config path is to use a single right angle bracket between objects. e.g.
service > source-nat
Static-NAT update for non-svr traffic, per note from Chao