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

fix(host): netmask updated of hostlocal network #21988

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

zexi
Copy link
Member

@zexi zexi commented Jan 17, 2025

What this PR does / why we need it:

hostlocal 子网掩码更新后,需要做如下操作:

# 更改 ip netmask
ip addr change 192.168.192.1/18 dev br0
# 添加新的 iptables masquerade 规则
iptables -t nat -A POSTROUTING -s 192.168.192.0/18 -o br0 -j MASQUERADE

# 删除旧的地址
ip addr del 192.168.192.1/20 dev br0
# 删除旧的 iptables 规则
iptables -t nat -D POSTROUTING -s 192.168.192.0/20 -o br0 -j MASQUERADE

Does this PR need to be backport to the previous release branch?:

  • None
    /area host

@swordqiu swordqiu merged commit 085f9cc into yunionio:master Jan 17, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants