2O的路由配置?(转)

网卡部分
vmbr1是内部的网桥,这里给他添加了ipv6地址作为网管

# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface enp1s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address  51.158.*
        netmask  24
        gateway  51.158.*
        bridge-ports enp1s0
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address  192.168.1.1
        netmask  24
        bridge-ports none
        bridge-stp off
        bridge-fd 0

iface vmbr1 inet6 static
        address  2001:bc8:*:c800::
        netmask  56

vmbr1的NAT转发

iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o vmbr0  -j MASQUERA

添加一个新的ipv6地址到vmbr0

ip -6 a a 2001:bc8:*:c800::cafe/56 dev vmbr0

iptables转发内部端口

iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 10689 -j DNAT --to 192.168.1.106::3389

小鸡ipv6的外部访问

ip -f inet6 neigh add proxy 2001:bc8:*:c800::cafe:103 dev vmbr0
ip -f inet6 route add 2001:bc8:*:c800::cafe:103 dev vmbr1

lxc小鸡nat+ipv6的网卡设置,小鸡的ipv6是随便写的,我这里设置的尾数和小鸡编号一样
2O的路由配置?(转)
母鸡的vmbr1
2O的路由配置?(转)
这里要注意小鸡的ipv6和ipv4网关要和vmbr1对应

https://www.hostloc.com/thread-608541-1-1.html

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

栗子博客 程序 2O的路由配置?(转) https://www.lizi.tw/program/7168.html

建筑工地上施工员,闲暇时弄个博客打发时间,

常见问题
  • 1、杰齐1.7仅适用于PHP5.2 2、需Zend支持 3、尽量使用宝塔面板 4、尽量使用Windows 系统,关关对Linux支持不太友好。
查看详情

相关文章

评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务

2O的路由配置?(转)-海报

分享本文封面