-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
89 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: my-web-client | ||
spec: | ||
template: | ||
spec: | ||
initContainers: | ||
- name: sfunnel-init | ||
image: sfunnel | ||
- name: sfunnel-init-egress | ||
image: sfunnel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- client.yaml | ||
|
||
patches: | ||
- path: client_patch.yaml | ||
target: | ||
kind: Deployment | ||
name: my-web-client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
##Funneling rules | ||
ip udp dport 2055 actions funnel tcp dport 179 sport 540 #Netflow | ||
ip udp dport 4739 actions funnel tcp dport 179 sport 540 #IPFIX | ||
ip udp dport 6343 actions funnel tcp dport 179 sport 540 #SFLOW | ||
ip udp dport 2055 actions funnel encap tcp dport 179 sport 540 #Netflow | ||
ip udp dport 4739 actions funnel encap tcp dport 179 sport 540 #IPFIX | ||
ip udp dport 6343 actions funnel encap tcp dport 179 sport 540 #SFLOW | ||
|
||
##Unfunneling | ||
ip tcp dport 179 sport 540 actions unfunnel udp | ||
ip tcp dport 179 sport 540 actions unfunnel decap udp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
##Matching funneling and unfunneling rules 1:1 | ||
ip udp dport 2055 actions funnel tcp dport 179 sport 540 | ||
ip tcp dport 179 sport 540 actions unfunnel udp | ||
ip udp dport 2055 actions funnel encap tcp dport 179 sport 540 | ||
ip tcp dport 179 sport 540 actions unfunnel decap udp | ||
|
||
ip udp dport 2056 actions funnel udp dport 179 sport 540 | ||
ip udp dport 179 sport 540 actions unfunnel udp | ||
ip udp dport 2056 actions funnel encap udp dport 179 sport 540 | ||
ip udp dport 179 sport 540 actions unfunnel decap udp | ||
|
||
ip tcp dport 2055 actions funnel tcp dport 179 sport 541 | ||
ip tcp dport 179 sport 541 actions unfunnel tcp | ||
ip tcp dport 2055 actions funnel encap tcp dport 179 sport 541 | ||
ip tcp dport 179 sport 541 actions unfunnel decap tcp | ||
|
||
ip tcp dport 2056 actions funnel udp dport 179 sport 541 | ||
ip udp dport 179 sport 541 actions unfunnel tcp | ||
ip tcp dport 2056 actions funnel encap udp dport 179 sport 541 | ||
ip udp dport 179 sport 541 actions unfunnel decap tcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters