-
Notifications
You must be signed in to change notification settings - Fork 16
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
secure farmer lan #2520
base: main
Are you sure you want to change the base?
secure farmer lan #2520
Conversation
- apply the nft rules if only the default gw is private - explicitly allow traffic to all ips except the default gw network - except the router from the lan block - create a buffer with rules instead of executing commands - use the nft.Apply function for executing the buffer
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.
added a few comments
|
||
var buf bytes.Buffer | ||
buf.WriteString("table inet filter {\n") | ||
buf.WriteString(" chain forward {\n") |
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.
you're missing the type here
type filter hook forward priority filter; policy accept;
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.
this is already handled in the initial nft setup
buf.WriteString(" }\n") | ||
buf.WriteString("}\n") | ||
|
||
return Apply(&buf, namesapce) |
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.
namesapce ?
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.
also, where do you apply the new table ?
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.
in ndmz
namespace
update: |
Description
apply implemented nft rules for farmer lan security in zos4, PRs:
Related issues