Skip to content

Commit

Permalink
Update policy->traffic_policy
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhans committed Aug 9, 2024
1 parent d794314 commit df4ec00
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion examples/agent-config/http-traffic-policy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ tunnels:
example:
proto: http
addr: 80
policy:
traffic_policy:
inbound:
- name: FooBarParamNotFound
expressions:
Expand Down
30 changes: 15 additions & 15 deletions examples/agent-config/tcp-traffic-policy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ tunnels:
example:
proto: tcp
addr: 22
policy:
traffic_policy:
inbound:
- name: DenyTrafficOutsideUS
expressions:
- "conn.geo.country_code != 'US'"
actions:
- type: deny
- name: "LogRequestsFromKnownIP"
expressions:
- "conn.client_ip == '110.0.0.1'"
actions:
- type: log
config:
metadata:
event: "known-ip",
data: "110.0.0.1"
- name: DenyTrafficOutsideUS
expressions:
- "conn.geo.country_code != 'US'"
actions:
- type: deny
- name: "LogRequestsFromKnownIP"
expressions:
- "conn.client_ip == '110.0.0.1'"
actions:
- type: log
config:
metadata:
event: "known-ip",
data: "110.0.0.1"
```
2 changes: 1 addition & 1 deletion examples/agent-config/tls-traffic-policy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ tunnels:
example:
proto: tls
addr: 443
policy:
traffic_policy:
inbound:
- name: EnforceTLS1.3
expressions:
Expand Down

0 comments on commit df4ec00

Please sign in to comment.