全球主机交流论坛

标题: 付费请大佬安装proxmox虚拟系统 [打印本页]

作者: sandao    时间: 2021-6-26 10:30
标题: 付费请大佬安装proxmox虚拟系统
本帖最后由 sandao 于 2021-6-26 10:33 编辑

ikoula杜甫  I3 8G 4T
单IP,估计安装成nat

RMB 50
作者: ://iplc.best    时间: 2021-6-26 10:35
试试,联系TG:@iplcbest
作者: tibbs    时间: 2021-6-26 10:56
这玩意还用付费请教 ????
如何安装
1 安装 debian
2 参考以下链接安装 proxmox
  https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Buster
3 配置网络
  https://community.hetzner.com/tutorials/install-and-configure-proxmox_ve/
4 配置 net 网络以及转发
https://blog.e9china.net/share/proxmox-ve-setting-up-nat-port-forwarding.html

作者: sandao    时间: 2021-6-26 11:00
tibbs 发表于 2021-6-26 10:56
这玩意还用付费请教 ????
如何安装
1 安装 debian

我之前稿过一次,虚拟机内网跟宿主机能PING通,但是虚拟机无法访问外网........
作者: tibbs    时间: 2021-6-26 11:01
sandao 发表于 2021-6-26 11:00
我之前稿过一次,虚拟机内网跟宿主机能PING通,但是虚拟机无法访问外网........ ...

net没有配置好  ,参考最后一个链接重新搞搞  
1 母鸡网络配置

  1. source /etc/network/interfaces.d/*

  2. auto lo
  3. iface lo inet loopback
  4. iface lo inet6 loopback

  5. auto enp2s0
  6. iface enp2s0 inet static
  7.   address 主IP
  8.   netmask 子网掩码
  9.   pointopoint 网关
  10.   gateway 网关

  11. iface enp2s0 inet6 static
  12.   address IPV6前缀::2
  13.   netmask 128
  14.   gateway fe80::1
  15.   up sysctl -p

  16. auto vmbr0
  17. iface vmbr0 inet static
  18.   address 10.10.0.1  //内网IP
  19.   netmask 255.255.255.0 //内网子网掩码
  20.   bridge_ports none
  21.   bridge_stp off
  22.   bridge_fd 0
  23.   
  24. iface vmbr0 inet6 static
  25.   address IPV6前缀::3
  26.   netmask 64
  27.   up ip -6 route add IPV6前缀::/64 dev vmbr0
复制代码


二 配置允许转发
  1. sysctl -w net.ipv4.ip_forward=1
  2. sysctl -w net.ipv6.conf.all.forwarding=1
复制代码


三 配置转发规则

  1. iptables -t nat -A POSTROUTING -s '10.10.0.0/24' -o enp2s0 -j MASQUERADE //设置转发的IP段
  2. iptables -t nat -A PREROUTING -i enp2s0 -p tcp --dport 80 -j DNAT --to 10.10.0.10:88  //小鸡IP的端口88转发到母鸡的80
  3. apt-get install iptables-persistent //安装 iptables-persistent
  4. iptables-save > /etc/iptables/rules.v4  //保存规则
  5. iptables-restore < /etc/iptables/rules.v4 //使规则生效
复制代码

其中  enp2s0 根据实际修改

四 配置开机自动配置转发
  1. touch /etc/network/if-pre-up.d/iptables
  2. chmod +x /etc/network/if-pre-up.d/iptables
  3. vi /etc/network/if-pre-up.d/iptables
复制代码


在打开的编辑器里面输入以下文本,然后保存退出
#!/bin/sh
/sbin/iptables-restore < /etc/iptables/rules.v4


五 重启网卡
  1. /etc/init.d/networking restart
复制代码


六 关于小鸡的IP配置
  IP 为 10.10.0.X
  子网掩码为 255.255.255.0 或者 /24
  网关为 10.10.0.1

  IPV6 为 IPV6前缀::X
  子网掩码 大于64 均可
   网关为 IPV6前缀::3


作者: zxxx    时间: 2021-6-26 11:03
tibbs 发表于 2021-6-26 11:01
net没有配置好  ,参考最后一个链接重新搞搞  
1 母鸡网络配置
  

收藏学习。感谢乐于分享的大佬!
作者: zxxx    时间: 2021-6-26 11:09
这个教程详细,可以参考参考。

Hetzner实战安装proxmox开独立IP小鸡

https://blog.bobo1998.com/tech-share/214.html

2018-12-11 in 技术分享 read (4584) 文章转载请注明来源!


作者: sandao    时间: 2021-6-26 20:57
我顶
作者: gger    时间: 2021-6-26 21:15
主要是不想动手




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4