MikroTik RouterOS 端口映射甜糖

ros_pppoe是拨号的interface

chain=srcnat action=masquerade out-interface=ros_pppoe log=no log-prefix=””

端口映射,三个端口根据自己的情况来
chain=dstnat action=dst-nat to-addresses=192.168.5.10 protocol=tcp in-interface=ros_pppoe dst-port=38945,12136,42573 log=no log-prefix=””
chain=dstnat action=dst-nat to-addresses=192.168.5.10 protocol=udp in-interface=ros_pppoe dst-port=38945,12136,42573 log=no log-prefix=””

 


原来我的ros一直没有 out-interface=ros_pppoe,加上这个,甜糖就可以了。

Fire TV Stick max 如何安装第三方apk

1,安装amazon store里的 Downloader

2,打开开发者选项。找到  My Fire TV 在  About 上点7次。

3,在开发者选项里找到 Install unknown apps,选中刚安装的Downloader

4,用Downloader 的 Browser打开国内的一些安卓市场主页,当贝,沙发或者蚂蚁市场。

5,之后用下载的市场就能安装app了,当然,要给这些app也安装第三方app的权限。

或者第四步你可以直接下载需要的apk

这种方法比较方便,不需要额外的设备啥的。

 

群晖升级dsm后,vpn套件报不兼容,停止服务。

升级了dsm,本来的vpn套件是1.4.4-2855,没有更新的版本,但是升级后,就停止服务了。说:安装的套件与您的dsm不兼容
找了一圈没有更新的版本,但是说明有,于是拼了个url,

https://global.download.synology.com/download/Package/spk/VPNCenter/1.4.6-2892/VPNCenter-x86_64-1.4.6-2892.spk?model=DS220%2B&bays=2&dsm_version=7.0.1&build_number=42218

下载后手工安装 ok。

之后发现了这个网站。
https://www.synoforum.com/resources/latest-versions-of-dsm-srm-and-packages.165/

How to Test Port [TCP/UDP] Connectivity from a Linux Server with nc

yum install nc

# nc -z -v [hostname/IP address] [port number]

# nc -z -v 192.168.10.12 22
Connection to 192.118.20.95 22 port [tcp/ssh] succeeded!

# nc -z -v 192.168.10.12 22
nc: connect to 192.118.20.95 port 22 (tcp) failed: No route to host

# nc -z -v -u [hostname/IP address] [port number]

# nc -z -v -u 192.168.10.12 123
Connection to 192.118.20.95 123 port [udp/ntp] succeeded!

mikrotik routeros auto send pppoe ip email script

email的发送设置,可以从 Tools / Email 进行设置,测试看是否可以成功发送。
代码如下,代码记得前后要有大括号!!
{#上网接口名称
:local PPPInterface "ros_pppoe";
#设备名称
:local whoami "Hi,";
#发送Email的主题
:local Themes "ROS Email Assistant";
#发送内容
:local Contents "IP Address: ";
:local SendEmailTo "xxxxx@qq.com";
#获取接口IP地址
:local getip [ /ip address get [/ip address find interface=$PPPInterface ] address ];
:global IPAddress [:pick $getip 0 [:find $getip "/" ] ];
#获取system版本
:global ROSVersion ("RouterOS Version: v" . [/system package get [/system package find name=routeros] version] );
#发送Email设置
/tool e-mail send to=$SendEmailTo subject=$Themes body=("$whoami\n$Contents$IPAddress\n$ROSVersion");
#日志提醒
:log warning "系统数据已备份,邮件已发送至($SendEmailTo)";
:log warning ("外网IP =" ."$IPAddress");
}

Create Persistent Cronjobs on VMware ESXi for ghettoVCB Backups

Edit /etc/rc.local.d/local.sh, insert this before the exit 0 line:
/bin/kill $(cat /var/run/crond.pid)
/bin/echo “0 21 * * 5 /opt/ghettovcb/bin/ghettoVCB.sh -a -g /vmfs/volumes/<$DATASTORE>/ghettoVCB.conf > /vmfs/volumes/<$BACKUP_DATASTORE>/Backups/ghettoVCB-\$(date +%s).log” >> /var/spool/cron/crontabs/root
/usr/lib/vmware/busybox/bin/busybox crond
Run the script:
/bin/sh /etc/rc.local.d/local.sh
Make the changes persistent:
/bin/auto-backup.sh

安装指定版本的ne1000网卡驱动
esxcli software vib install -n ne1000:0.8.4-10vmw.700.1.0.15843807 -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
esxcli software vib install -n ne1000:0.8.4-11vmw.703.0.20.19193900 -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml