- improved iptables management: apply_iptables_rules and apply_iptables_rules_wg now automatically remove duplicate rules before reapplying them, ensuring a clean setup without disrupting iptables
- consolidated joke feature: unified the "joke through the mixnet" logic into a generic function, allowing it to work seamlessly across any specified interface
- enhanced tunnel checks: added check_nym_wg_tun alongside check_nymtun_iptables, making it easier to verify the state of both tunnels
- reduced error-prone behavior: simplified workflows to avoid issues caused by running commands multiple times
how to use:
1. download the script and make it executable:
curl -L -o network_tunnel_manager.sh https://raw.download.github.of.this.file && chmod u+x network_tunnel_manager.sh
2. run the following commands as needed:
- apply_iptables_rules: apply and clean iptables rules for nymtun0
- apply_iptables_rules_wg: apply and clean iptables rules for nymwg
- check_ipv6_ipv4_forwarding: verify if ipv4 and ipv6 forwarding are enabled
- check_ip_routing: display the current ipv4 and ipv6 routing tables
tldr:
- improved iptables handling to avoid duplicates
- unified functionality for better maintainability
- reduced potential errors when rerunning commands