6、Ubuntu系统
开放所有端口
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
Ubuntu镜像默认设置了Iptable规则,关闭它,
apt-get purge netfilter-persistent
reboot
知道越多,语言越少。明白一点真理就看到太多虚妄。
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
Ubuntu镜像默认设置了Iptable规则,关闭它,
apt-get purge netfilter-persistent
reboot
https://notesail.com/posts/macvlan-host.html
# 以下操作都在宿主机上运行,新增一个叫mynet(不要和容器的macvlan重名)的macvlan接口
ip link add mynet link eth0 type macvlan mode bridge
# 为该接口分配ip,并启用
ip addr add 192.168.0.10 dev mynet
ip link set mynet up
# 修改路由,使宿主机到192.168.0.100的通信全部经由mynet进行
ip route add 192.168.0.100 dev mynet
rsync -ah --progress source-file destination-file
sending incremental file list
source-file
621.22M 57% 283.86MB/s 0:00:01
显示进度时,这将保留文件的权限/所有权。
from https://blog.csdn.net/ID_Rin/article/details/105341206
前提:
设备安装了esxi6.7包括U1,U2,U3版本,设置显卡直通后卡开机界面dma_mapper_iommu loaded successfully
等待3分钟,ping 设置的ip地址依然超时,不可以登录的问题!
设备:一台win电脑,一个U盘,
软件:UltraISO安装包 以及 ubuntu18.04.ISO镜像
操作:
1. win电脑下载安装UltraISO后,把Ubuntu的iso刻录到U盘,iso建议为18.04版本;
2. U盘插入设备,开机启动电脑选择U盘启动;
3. 打开Terminal
4. 输入:
输入lspci 快速查找
我的是NVIDIA 的GM107 GTX960 id:0000:01:00.0 #vendor:10de #device :139b
英特尔核显的pcie的id是00:02.0 #vendor:8086 #device :416
sudo parted -l #查看硬盘
sudo mount /dev/sda5 /mnt #挂载
ls /mnt/
cp /mnt/state.tgz ~/
cd ~
tar xvf state.tgz
tar xvf local.tgz
cd etc/vmware/
nano esx.conf
找到 /device/<PCI_ID>/owner = "passthru" #PCI_ID就是上面找到的0000:01:00.0 和 0000:00:02.0
使用 vmkernel 代替 passthru
按ctrl+X 退出 按Y确认回车 不放心的可以再nano一次进去看看
cd ~
tar czf local.tgz etc/
tar czf state.tgz local.tgz
sudo cp state.tgz /mnt/
重启电脑 拔U盘
大功告成!
1
2 3 4 5 6 7 |
:global ipaddr [/ip address get [/ip address find interface=pppoe4plex] address]
:set ipaddr [:pick $ipaddr 0 ([len $ipaddr] -3)] :global oldip [/ip firewall nat get [/ip firewall nat find comment="plexdstnat"] dst-address] :if ($ipaddr != $oldip) do={ :log info [/ip firewall nat set [/ip firewall nat find comment="plexdstnat"] dst-address=$ipaddr] :log info [/ip firewall nat set [/ip firewall nat find comment="plexsrcnat"] to-addresses=$ipaddr] } |
also here
备忘
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | ################# CloudFlare variables ################# :local CFDebug "true" :global WANInterface "pppoe4plex" :local CFdomain "*****.lingbo.me" :local CFzone "lingbo.me" :local CFrecordType "A" :local CFemail "****************@gmail.com" :local CFtkn "bc24e143b3840****************9e13a5" :local CFzoneid "a926a****************accb8" :local CFid "661c43a****************95994087" ######################################################################### ######################## DO NOT EDIT BELOW ############################ ######################################################################### ################# Internal variables ################# :local resolvedIP "" :global WANip "" ################# Resolve and set IP-variables ################# :local currentIP [/ip address get [/ip address find interface=$WANInterface ] address]; :set WANip [:pick $currentIP 0 [:find $currentIP "/"]]; :set resolvedIP [:resolve $CFdomain]; ################# Build CF API Url (v4) ################# :local CFurl "https://api.cloudflare.com/client/v4/zones/" :set CFurl ($CFurl . "$CFzoneid/dns_records/$CFid"); ######## Write debug info to log ################# :if ($CFDebug = "true") do={ :log info ("CF: hostname = $CFdomain") :log info ("CF: resolvedIP = $resolvedIP") :log info ("CF: currentIP = $currentIP") :log info ("CF: WANip = $WANip") :log info ("CF: CFurl = $CFurl&content=$WANip") }; ######## Compare and update CF if necessary ##### :if ($resolvedIP != $WANip) do={ :log info ("CF: Updating CF, setting $CFDomain = $WANip") /tool fetch http-method=put mode=https url="$CFurl" http-header-field="X-Auth-Email:$CFemail,X-Auth-Key:$CFtkn,content-type:application/json" output=none http-data="{"type":"$CFrecordType","name":"$CFdomain","content":"$WANip"}" /ip dns cache flush } else={ :log info "CF: No Update Needed!" } |
6、Ubuntu系统 开放所有端口 iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -F Ubuntu镜像默认设置了Iptable规则,关闭它, ap...