Skip to content

Commit d1a2a4f

Browse files
authored
Update pve_custom.md
1 parent 0912f35 commit d1a2a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/guide/pve/pve_custom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Use the ```nano``` or ```vim``` command to modify the file to add port mapping:
148148
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
149149

150150
```
151-
-A PREROUTING -p tcp -m tcp -dport 33306 -j DNAT --to-destination 172.16.1.152:3306
151+
-A PREROUTING -i vmbr0 -p tcp -m tcp -dport 33306 -j DNAT --to-destination 172.16.1.152:3306
152152
```
153153

154154
Save the file and exit file editing and then execute:

0 commit comments

Comments
 (0)