Skip to content

Commit

Permalink
Update pve_custom.md
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored Dec 5, 2024
1 parent 7bbef57 commit 0912f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/pve/pve_custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ rm $TEMP_CRON
例如我有一台内网IP为```172.16.1.152```的KVM虚拟机,虚拟机内已经开设MYSQL监听了```3306```,我需要使用```tcp```协议映射出来到宿主机IP上的```33306```端口上进行使用,那么需要在上面的那个文件中的```COMMIT```行以上增加如下行

```
-A PREROUTING -p tcp -m tcp -dport 33306 -j DNAT --to-destination 172.16.1.152:3306
-A PREROUTING -i vmbr0 -p tcp -m tcp -dport 33306 -j DNAT --to-destination 172.16.1.152:3306
```

保存文件退出文件编辑后执行
Expand Down

0 comments on commit 0912f35

Please sign in to comment.