博文

目前显示的是 四月, 2019的博文

最新版Ubuntu19.04+v2ray官方一键脚本安装+防火墙firewall相关命令

时间校准 查看时间 $ date -R 时间设置为UTC+8 首先执行 rm /etc/localtime 然后执行 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 时间同步;误差在90秒之内 debian: apt-get install ntpdate  centos: yum install ntpdate ntpdate [ntp时间服务器地址]  ntpdate time.nuri.net ntpdate 0.asia.pool.ntp.org ntpdate 1.asia.pool.ntp.org ntpdate 2.asia.pool.ntp.org ntpdate 3.asia.pool.ntp.org ntpdate time.nist.gov 官方安装脚本 https://www.v2ray.com/chapter_00/install.html bash <(curl -L -s https://install.direct/go.sh) 此脚本会自动安装以下文件: /usr/bin/v2ray/v2ray:V2Ray 程序; /usr/bin/v2ray/v2ctl:V2Ray 工具; /etc/v2ray/config.json:配置文件; /usr/bin/v2ray/geoip.dat:IP 数据文件 /usr/bin/v2ray/geosite.dat:域名数据文件 编辑 /etc/v2ray/config.json 文件来配置你需要的代理方式; 运行 service v2ray start 来启动 V2Ray 进程 service v2ray start service v2ray stop service v2ray status service v2ray reload service v2ray restart service v2ray force-reload BBR BBR自带自启动 lsmod | grep bbr 返回值有 tcp_bbr 模块即说明 bbr 已启动 防火墙 安装ufw sudo apt-get install ufw

debian9防火墙firewall安装&端口配置

图片
安装sudo # apt-get install sudo 安装ufw # sudo apt-get install ufw 启用firewall # sudo ufw enable # sudo ufw default deny 系统启动时自动开启。关闭所有外部对本机的访问,但本机访问外部正常 允许端口 # sudo ufw allow 22/tcp 用于SSH连接 # sudo ufw allow 2844/udp 开放vmess端口 查看防火墙状态 # sudo ufw status 关闭防火墙 # sudo  ufw disable 禁用端口 # sudo ufw delete allow 53

服务器时间校正相关命令

图片
一、查看时间 # date -R 二、时区设置为UTC+8 首先执行 rm /etc/localtime 然后执行 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 三、同步时间服务器,校正时间 安装 debian: apt-get install ntpdate  centos: yum install ntpdate 校正 ntpdate [ntp时间服务器地址] 以下,选一个即可 ntpdate time.nuri.net ntpdate 0.asia.pool.ntp.org ntpdate 1.asia.pool.ntp.org ntpdate 2.asia.pool.ntp.org ntpdate 3.asia.pool.ntp.org ntpdate time.nist.gov

BBR相关命令

图片
一、查看BBR状态,是否安装启动? # lsmod | grep bbr 返回值有 tcp_bbr 模块即说明 bbr 已启动 二、安装BBR 谷歌BBR主页 https://github.com/google/bbr 网上有很多一键代码安装BBR各类版本。请自行选择。本人对对安全性不做保证。 本人使用的代码,来自网上。 root用户,运行以下命令 # wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

CentOS7+v2ray官方一键脚本安装用到的相关命令及软件

图片
查看时间 $ date -R 时区设置为UTC+8 首先执行 rm /etc/localtime 然后执行 ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 分秒同步;误差在90秒之内 centos: yum install ntpdate ntpdate [ntp时间服务器地址]   ntpdate time.nuri.net             或 0.asia.pool.ntp.org              或 1.asia.pool.ntp.org             或 2.asia.pool.ntp.org             或 3.asia.pool.ntp.org 官网一键脚本https://www.v2ray.com/chapter_00/inst... 配置生成器https://intmainreturn0.com/v2ray-conf... Notepad++编辑器https://notepad-plus-plus.org Xshell&Xftp:https://www.netsarang.com/zh/ 现在注册DigitalOcean云主机VPS送$100刀(支持paypal银联卡) 注册网址 https://m.do.co/c/927b03987854 现在注册Vultr云主机VPS就送$50,发推再送$3(支持支付宝微信) 注册网址 http://bit.ly/2Uv44wq 如果你注册后用了半年以上,我将收到一些推荐费,你不会增加额外费用。

V2ray服务器233一键安装的优化:BBR加速+firewall安全

     V2ray服务器233一键安装是目前最简单快速的办法,在实际使用过程中结合不同的云平台VPS和64位操作系统denbian9,ubuntu18.1,centOS7还需要优化.     BBR加速       denbian9,ubuntu18.1自带启用BBR,所以不用另外安装       centOS7需要另外安装代码,使用root用户登录,运行以下命令 wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh 安装后,需重启VPS服务器          重启后,查看BBR状态        lsmod | grep bbr       返回值有 tcp_bbr 模块即说明 bbr 已启动      防火墙firewall      denbian9,ubuntu18.1需要安装配置       安装sudo     apt-get install sudo     安装ufw     sudo apt-get install ufw     启用     sudo ufw enable    sudo ufw default deny    系统启动时自动开启。关闭所有外部对本机的访问,但本机访问外部正常     允许端口     sudo ufw allow 22/tcp    sudo ufw allow 34145/udp     这个端口VMESS端口,未必都一样。     查看防火墙状态     sudo ufw status      centOS7自启动防火墙,只要配置开放相关端口即可,配置后须重启一下防火墙       查看防火墙状态       firewall-cmd --state       查看已经开放的端口:      firewall-cmd --list-ports       开启端口      firewall-cmd --zone=public --add-port=33146/udp --permanent       这个端口VM