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 0912f35 commit d1a2a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/guide/pve/pve_custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Use the ```nano``` or ```vim``` command to modify the file to add port mapping:
For example, if I have a KVM VM with an intranet IP of ```172.16.1.152```, and MYSQL has been set up to listen to ```3306```, and I need to use the ```tcp``` protocol to map out to the ```33306``` port on the host IP, I would add the following line to the ```COMMIT``` line in the file above, then add the following line

```
-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
```

Save the file and exit file editing and then execute:
Expand Down

0 comments on commit d1a2a4f

Please sign in to comment.