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

V0.5.15 release candidate #32

Merged
merged 9 commits into from
Apr 24, 2024
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
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.15] - 2024-04-12

###

- Added map to track tcp syn count for packets sent to the firewall ip address on port 443.
- Ddos protection is meant for the FW host accept/deny logic was moved to first bpf program.
- ddos dport map was created to specify ports to be protected when an interface is in
ddos_protect mode.
- ddos saddr map was created to specify whitelisted IP addresses to be allowed to reach protected ports
when an interface is in ddos_protect mode.

# [0.5.14] - 2024-04-02

###
Expand Down
4 changes: 4 additions & 0 deletions files/scripts/start_ebpf_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def add_link_listener_rules(lan_ip, lan_mask):
port = addr_array[-1].strip()
if((int(port) > 0) and (addr_array[0] == 'tls')):
os.system('/opt/openziti/bin/zfw -I -c ' + lan_ip + ' -m ' + lan_mask + ' -l ' + port + ' -h ' + port + ' -t 0 -p tcp')
os.system('/opt/openziti/bin/zfw --ddos-dport-add ' + port)
except Exception as e:
print(e)
pass
Expand All @@ -85,6 +86,7 @@ def add_controller_edge_listener_rules(lan_ip, lan_mask):
port = addr_array[-1].strip()
if((int(port) > 0)):
os.system('/opt/openziti/bin/zfw -I -c ' + lan_ip + ' -m ' + lan_mask + ' -l ' + port + ' -h ' + port + ' -t 0 -p tcp')
os.system('/opt/openziti/bin/zfw --ddos-dport-add ' + port)
except Exception as e:
print(e)
pass
Expand All @@ -107,6 +109,7 @@ def add_controller_ctrl_listener_rules(lan_ip, lan_mask):
port = addr_array[-1].strip()
if((int(port) > 0) and (addr_array[0] == 'tls')):
os.system('/opt/openziti/bin/zfw -I -c ' + lan_ip + ' -m ' + lan_mask + ' -l ' + port + ' -h ' + port + ' -t 0 -p tcp')
os.system('/opt/openziti/bin/zfw --ddos-dport-add ' + port)
except Exception as e:
print(e)
pass
Expand Down Expand Up @@ -161,6 +164,7 @@ def add_controller_port_forwarding_rule(lan_ip, lan_mask):
if(not test):
port = "80"
os.system('/opt/openziti/bin/zfw -I -c ' + lan_ip + ' -m ' + lan_mask + ' -l ' + port + ' -h ' + port + ' -t 0 -p tcp')
os.system('/opt/openziti/bin/zfw --ddos-dport-add ' + port)
else:
print("Port forwarding rul not found")

Expand Down
Loading
Loading