Careful!
You are browsing documentation for a version of Kuma that is not the latest release.
Upgrading Transparent Proxy
The core iptables
rules applied by Kuma’s transparent proxy rarely change, but occasionally new features may require updates. To upgrade the transparent proxy on Universal environments, follow these steps:
Step 1: Cleanup existing iptables rules
To manually remove existing iptables
rules, you can either restart the host (if the rules were not persisted using system start-up scripts or firewalld
), or run the following commands:
These commands will remove all iptables
rules and all custom chains in the specified tables, including those created by Kuma as well as any other applications or services.
iptables --table nat --flush # Flush all rules in the nat table (IPv4)
ip6tables --table nat --flush # Flush all rules in the nat table (IPv6)
iptables --table nat --delete-chain # Delete all custom chains in the nat table (IPv4)
ip6tables --table nat --delete-chain # Delete all custom chains in the nat table (IPv6)
# The raw table contains rules for DNS traffic redirection
iptables --table raw --flush # Flush all rules in the raw table (IPv4)
ip6tables --table raw --flush # Flush all rules in the raw table (IPv6)
# The mangle table contains rules to drop invalid packets
iptables --table mangle --flush # Flush all rules in the mangle table (IPv4)
ip6tables --table mangle --flush # Flush all rules in the mangle table (IPv6)
Step 2: Install the new transparent proxy
After clearing the iptables
rules (if necessary), reinstall the transparent proxy. For example:
kumactl install transparent-proxy --kuma-dp-user kuma-dp --redirect-dns --verbose
This installs the latest version of the transparent proxy with the specified configuration. Adjust the flags as needed for your environment.