このページは、まだ日本語ではご利用いただけません。翻訳中です。
Upgrading Transparent Proxy
The core iptables rules applied by Kong Mesh’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 (conditional)
Important: If you’re upgrading from Kong Mesh version 2.9 or later, and you have not manually disabled the automatic addition of comments by setting
comments.disabledtotruein the transparent proxy configuration, this step is unnecessary.
Starting with Kong Mesh 2.9, alliptablesrules are tagged with comments, allowing Kong Mesh to track rule ownership. This enableskumactlto automatically clean up any existingiptablesrules or custom chains created by previous versions of the transparent proxy. This process runs automatically at the start of the installation, eliminating the need for any manual cleanup beforehand.
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:
Warning: These commands will remove all
iptablesrules and all custom chains in the specified tables, including those created by Kong Mesh 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.