-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds more methods to build an iptables entries: - `SetTargetDNATToDst`, setting DNAT destination IP and port. This PR also updates the methods: - `MatchCIDRSrc`, supporting an IP or CIDR as source. - `MatchCIDRDst`, supporting an IP or CIDR as destination. - `MatchIPSetSrc`, supporting ipset type of hashIPPort as destination IP and port. - `MatchIPSetDst`, supporting ipset type of hashIPPort as source IP and port. - Rename `MatchDstPort` to `MatchPortDst` to be consistent with other method. - Rename `MatchSrcPort` to `MatchPortSrc` to be consistent with other method. Signed-off-by: Hongliang Liu <lhongliang@vmware.com>
- Loading branch information
1 parent
d49790d
commit 385a32d
Showing
4 changed files
with
83 additions
and
26 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
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