mirror of
https://github.com/oneclickvirt/oneclickvirt.github.io.git
synced 2026-05-31 15:49:46 +08:00
update
This commit is contained in:
@@ -120,6 +120,11 @@ qm stop 102
|
||||
qm destroy 102
|
||||
iptables -t nat -F
|
||||
iptables -t filter -F
|
||||
iptables -t nat -A POSTROUTING -s 172.16.1.0/24 -o vmbr0 -j MASQUERADE
|
||||
ip6tables -t nat -F
|
||||
ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE
|
||||
iptables-save > /etc/iptables/rules.v4
|
||||
ip6tables-save > /etc/iptables/rules.v6
|
||||
service networking restart
|
||||
systemctl restart networking.service
|
||||
rm -rf vm102
|
||||
@@ -162,6 +167,11 @@ After the setup is completed, you can execute ```cat vmlog``` to view the inform
|
||||
for vmid in $(qm list | awk '{if(NR>1) print $1}'); do qm stop $vmid; qm destroy $vmid; rm -rf /var/lib/vz/images/$vmid*; done
|
||||
iptables -t nat -F
|
||||
iptables -t filter -F
|
||||
iptables -t nat -A POSTROUTING -s 172.16.1.0/24 -o vmbr0 -j MASQUERADE
|
||||
ip6tables -t nat -F
|
||||
ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE
|
||||
iptables-save > /etc/iptables/rules.v4
|
||||
ip6tables-save > /etc/iptables/rules.v6
|
||||
service networking restart
|
||||
systemctl restart networking.service
|
||||
rm -rf vmlog
|
||||
|
||||
@@ -92,6 +92,11 @@ pct destroy 102
|
||||
rm -rf ct102
|
||||
iptables -t nat -F
|
||||
iptables -t filter -F
|
||||
iptables -t nat -A POSTROUTING -s 172.16.1.0/24 -o vmbr0 -j MASQUERADE
|
||||
ip6tables -t nat -F
|
||||
ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE
|
||||
iptables-save > /etc/iptables/rules.v4
|
||||
ip6tables-save > /etc/iptables/rules.v6
|
||||
service networking restart
|
||||
systemctl restart networking.service
|
||||
```
|
||||
@@ -133,6 +138,11 @@ pct list | awk 'NR>1{print $1}' | xargs -I {} sh -c 'pct stop {}; pct destroy {}
|
||||
rm -rf ct*
|
||||
iptables -t nat -F
|
||||
iptables -t filter -F
|
||||
iptables -t nat -A POSTROUTING -s 172.16.1.0/24 -o vmbr0 -j MASQUERADE
|
||||
ip6tables -t nat -F
|
||||
ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE
|
||||
iptables-save > /etc/iptables/rules.v4
|
||||
ip6tables-save > /etc/iptables/rules.v6
|
||||
service networking restart
|
||||
systemctl restart networking.service
|
||||
```
|
||||
|
||||
@@ -31,6 +31,22 @@ The system username after dd at this point is ```root```, and the password is ``
|
||||
|
||||
If you have time or if it's still not working, please contact [@spiritlhl_bot](https://t.me/spiritlhl_bot) for assistance.
|
||||
|
||||
## What to do if you accidentally delete a NAT mapping rule
|
||||
|
||||
Use the following command to map back
|
||||
|
||||
```shell
|
||||
iptables -t nat -F
|
||||
iptables -t filter -F
|
||||
iptables -t nat -A POSTROUTING -s 172.16.1.0/24 -o vmbr0 -j MASQUERADE
|
||||
ip6tables -t nat -F
|
||||
ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE
|
||||
iptables-save > /etc/iptables/rules.v4
|
||||
ip6tables-save > /etc/iptables/rules.v6
|
||||
service networking restart
|
||||
systemctl restart networking.service
|
||||
```
|
||||
|
||||
## Verified VPS Providers
|
||||
|
||||
### VPS Providers Offering KVM Virtualization with NAT
|
||||
|
||||
@@ -135,6 +135,11 @@ qm stop 102
|
||||
qm destroy 102
|
||||
iptables -t nat -F
|
||||
iptables -t filter -F
|
||||
iptables -t nat -A POSTROUTING -s 172.16.1.0/24 -o vmbr0 -j MASQUERADE
|
||||
ip6tables -t nat -F
|
||||
ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE
|
||||
iptables-save > /etc/iptables/rules.v4
|
||||
ip6tables-save > /etc/iptables/rules.v6
|
||||
service networking restart
|
||||
systemctl restart networking.service
|
||||
rm -rf vm102
|
||||
@@ -184,6 +189,11 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/pve/mai
|
||||
for vmid in $(qm list | awk '{if(NR>1) print $1}'); do qm stop $vmid; qm destroy $vmid; rm -rf /var/lib/vz/images/$vmid*; done
|
||||
iptables -t nat -F
|
||||
iptables -t filter -F
|
||||
iptables -t nat -A POSTROUTING -s 172.16.1.0/24 -o vmbr0 -j MASQUERADE
|
||||
ip6tables -t nat -F
|
||||
ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE
|
||||
iptables-save > /etc/iptables/rules.v4
|
||||
ip6tables-save > /etc/iptables/rules.v6
|
||||
service networking restart
|
||||
systemctl restart networking.service
|
||||
rm -rf vmlog
|
||||
|
||||
@@ -96,6 +96,11 @@ pct destroy 102
|
||||
rm -rf ct102
|
||||
iptables -t nat -F
|
||||
iptables -t filter -F
|
||||
iptables -t nat -A POSTROUTING -s 172.16.1.0/24 -o vmbr0 -j MASQUERADE
|
||||
ip6tables -t nat -F
|
||||
ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE
|
||||
iptables-save > /etc/iptables/rules.v4
|
||||
ip6tables-save > /etc/iptables/rules.v6
|
||||
service networking restart
|
||||
systemctl restart networking.service
|
||||
```
|
||||
@@ -144,6 +149,11 @@ pct list | awk 'NR>1{print $1}' | xargs -I {} sh -c 'pct stop {}; pct destroy {}
|
||||
rm -rf ct*
|
||||
iptables -t nat -F
|
||||
iptables -t filter -F
|
||||
iptables -t nat -A POSTROUTING -s 172.16.1.0/24 -o vmbr0 -j MASQUERADE
|
||||
ip6tables -t nat -F
|
||||
ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE
|
||||
iptables-save > /etc/iptables/rules.v4
|
||||
ip6tables-save > /etc/iptables/rules.v6
|
||||
service networking restart
|
||||
systemctl restart networking.service
|
||||
```
|
||||
|
||||
@@ -31,6 +31,22 @@ bash <(curl -sSL https://raw.githubusercontent.com/leitbogioro/Tools/master/Linu
|
||||
|
||||
如果有空或者还是不行,请联系 [@spiritlhl_bot](https://t.me/spiritlhl_bot) 尝试
|
||||
|
||||
## 不小心删除了NAT的映射规则怎么办
|
||||
|
||||
使用下面的命令映射回来
|
||||
|
||||
```shell
|
||||
iptables -t nat -F
|
||||
iptables -t filter -F
|
||||
iptables -t nat -A POSTROUTING -s 172.16.1.0/24 -o vmbr0 -j MASQUERADE
|
||||
ip6tables -t nat -F
|
||||
ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -o vmbr0 -j MASQUERADE
|
||||
iptables-save > /etc/iptables/rules.v4
|
||||
ip6tables-save > /etc/iptables/rules.v6
|
||||
service networking restart
|
||||
systemctl restart networking.service
|
||||
```
|
||||
|
||||
## 目前已验证的VPS商家
|
||||
|
||||
### 可开设KVM虚拟化的NAT的商家
|
||||
|
||||
Reference in New Issue
Block a user