Skip to content
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

feat(core): support flowtables, [sd]nat, th match #244

Merged
merged 2 commits into from
Jul 8, 2022
Merged

feat(core): support flowtables, [sd]nat, th match #244

merged 2 commits into from
Jul 8, 2022

Conversation

TkPegatron
Copy link
Contributor

@TkPegatron TkPegatron commented May 4, 2022

Added highlight support for matching transport headers, creating flowtables, and performing NAT

Example code:

table inet filter {
  flowtable f {
    hook ingress priority 0; devices = { wan, lan, iot, manage };
  }
  chain forward-chain {
    type filter hook forward priority 0; policy drop;
    meta l4proto { tcp, udp } flow offload @f
  }
}
table inet nat {
  chain nat-prerouting {
    type nat hook prerouting priority -100;
    iifname {
      "lan", "iot", "wgra0", "management" 
    } meta l4proto { tcp, udp } th dport 53 dnat ip to 172.22.0.1
  }
}

TkPegatron and others added 2 commits May 4, 2022 17:02
Added highlight support for matching transport headers, creating flowtables, and performing NAT
@omBratteng
Copy link
Owner

Thanks for the PR, I will take a look at it shortly.

@omBratteng omBratteng merged commit ad1b746 into omBratteng:main Jul 8, 2022
@omBratteng
Copy link
Owner

@all-contributors please add @TkPegatron for code

@allcontributors
Copy link
Contributor

@omBratteng

I've put up a pull request to add @TkPegatron! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants