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

Added a fix when ebpf is enabled on the loopback to forward all traff… #26

Merged
merged 1 commit into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

---
# [0.5.9] - 2024-02-09

###

- Fixed an issue where if an ingress tc filter is applied to the loopback interface traffic is dropped if it does not specifically
match a rule. The correct action is to pass all traffic to the loopback unless there is a rule explicitly redirecting.
the traffic to either a tproxy port or ziti(tun) interface.

# [0.5.8] - 2024-01-28

###
Expand Down
2 changes: 1 addition & 1 deletion src/zfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ char *tc_interface;
char *log_file_name;
char *object_file;
char *direction_string;
const char *argp_program_version = "0.5.8";
const char *argp_program_version = "0.5.9";
struct ring_buffer *ring_buffer;

__u8 if_list[MAX_IF_LIST_ENTRIES];
Expand Down
2 changes: 2 additions & 0 deletions src/zfw_tc_ingress.c
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,8 @@ int bpf_sk_splice4(struct __sk_buff *skb){
if(dmask == 0x00000000){
if((tracked_key_data->count > 0)){
return TC_ACT_PIPE;
}else if(skb->ingress_ifindex == 1){
return TC_ACT_OK;
}
}
iterate_masks(&dmask, &dexponent);
Expand Down
Loading