Skip to content

Commit

Permalink
Delete unused files, log when ipv6 packets in egress filter
Browse files Browse the repository at this point in the history
  • Loading branch information
containerscrew committed Jan 17, 2025
1 parent 73a1f14 commit 3a73ff0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 95 deletions.
7 changes: 5 additions & 2 deletions nflux-ebpf/src/egress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use aya_ebpf::helpers::gen::bpf_get_current_pid_tgid;
use aya_ebpf::programs::TcContext;
use aya_log_ebpf::{debug, warn};
use network_types::eth::{EthHdr, EtherType};
use network_types::ip::{IpProto, Ipv4Hdr};
use network_types::ip::{IpProto, Ipv4Hdr, Ipv6Hdr};
use network_types::tcp::TcpHdr;
use network_types::udp::UdpHdr;
use nflux_common::{EgressConfig, EgressEvent};
Expand Down Expand Up @@ -215,6 +215,9 @@ pub fn try_tc_egress_virtual(ctx: TcContext) -> Result<i32, ()> {
IpProto::Tcp => handle_tcp_packet(&ctx, egress_config, destination),
IpProto::Udp => handle_udp_packet(&ctx, egress_config, destination),
IpProto::Icmp => handle_icmp_packet(&ctx, egress_config, destination),
_ => Ok(TC_ACT_PIPE),
_ => {
debug!(&ctx, "Probably ipv6 traffic, not implemented yet!");
Ok(TC_ACT_PIPE)
}
}
}
91 changes: 0 additions & 91 deletions nflux-ebpf/src/egress_vpn.rs

This file was deleted.

1 change: 0 additions & 1 deletion nflux-ebpf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#![allow(nonstandard_style, dead_code)]

mod egress;
mod egress_vpn;
mod firewall;
mod maps;

Expand Down
2 changes: 1 addition & 1 deletion nflux.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[logging]
log_level = "info" # trace, debug, info, warn, or error (default: info)
log_level = "debug" # trace, debug, info, warn, or error (default: info)
log_type = "text" # text or json (default: text)

[firewall]
Expand Down

0 comments on commit 3a73ff0

Please sign in to comment.