-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make passing version=v4 instead of light
rename zdblight to zdb and do some hardening Signed-off-by: Ashraf Fouda <[email protected]>
- Loading branch information
1 parent
70c90c4
commit b25edf4
Showing
22 changed files
with
132 additions
and
191 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
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 was deleted.
Oops, something went wrong.
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,29 @@ | ||
add table inet filter; | ||
add table arp filter; | ||
add table bridge filter; | ||
add table nat; | ||
|
||
|
||
add chain inet filter input { type filter hook input priority filter; policy accept; } | ||
add chain inet filter forward { type filter hook forward priority filter; policy accept; } | ||
add chain inet filter output { type filter hook output priority filter; policy accept; } | ||
add chain inet filter prerouting { type filter hook prerouting priority filter; policy accept; } | ||
|
||
add chain arp filter input { type filter hook input priority filter; policy accept; } | ||
add chain arp filter output { type filter hook output priority filter; policy accept; } | ||
|
||
add chain bridge filter input { type filter hook input priority filter; policy accept; } | ||
add chain bridge filter forward { type filter hook forward priority filter; policy accept; } | ||
add chain bridge filter prerouting { type filter hook prerouting priority filter; policy accept; } | ||
add chain bridge filter postrouting { type filter hook postrouting priority filter; policy accept; } | ||
add chain bridge filter output { type filter hook output priority filter; policy accept; } | ||
|
||
add chain nat postrouting { type nat hook postrouting priority 100 ; } | ||
|
||
flush chain bridge filter forward; | ||
flush chain inet filter forward; | ||
flush chain inet filter prerouting; | ||
flush chain nat postrouting | ||
|
||
add rule inet filter prerouting iifname "b-*" tcp dport {25, 587, 465} reject with icmp type admin-prohibited; | ||
add rule nat postrouting iifname gw masquerade fully-random; |
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,5 +1,5 @@ | ||
exec: netlightd --broker unix:///var/run/redis.sock --root /var/cache/modules/networkd | ||
|
||
# test: zbusdebug --module network | ||
test: zbusdebug --module netlight | ||
after: | ||
- boot |
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
Oops, something went wrong.