目录

要设置 OpenWrt 网络,可以按照以下步骤进行

步骤 1:确定服务器位置 主服务器 IP:右上角,168.1.1。 子服务器 IP:左下角,168.1.2。 步骤 2:创建 OpenWrt 环境 在终端中输入 sudo create env 来创建一个新环境。 步骤 3:配置环境变量 sudo create env 在服务器上复制并修改以下环境变量: echo -e &...

步骤 1:确定服务器位置

  • 主服务器 IP:右上角,168.1.1
  • 子服务器 IP:左下角,168.1.2

步骤 2:创建 OpenWrt 环境

  • 在终端中输入 sudo create env 来创建一个新环境。

步骤 3:配置环境变量

sudo create env

在服务器上复制并修改以下环境变量:

echo -e "name=主服务器 version=223.1 username=your_username password=你的密码 host=192.168.1.1 port=88" > config/versions/versions.conf
echo -e "name=子服务器 version=223.1 username=your_username password=你的密码 host=192.168.1.2 port=88" > config/versions/versions.conf

步骤 4:创建服务器

  • 主服务器:
    sudo systemctl create server
    sudo systemctl start server
  • 子服务器:
    sudo systemctl create subserver
    sudo systemctl start subserver

步骤 5:启动服务器

  • 主服务器:
    sudo systemctl start server
  • 子服务器:
    sudo systemctl start subserver

步骤 6:创建网络

  • 主服务器:
    sudo systemctl create ipbin
    sudo systemctl start ipbin
  • 子服务器:
    sudo systemctl create subipbin
    sudo systemctl start subipbin

步骤 7:配置 HTTPbin

sudo systemctl set ipbin httpbin:88
sudo systemctl start httpbin

步骤 8:创建防火墙

主服务器:

sudo systemctl create http防火wall
sudo systemctl set http防火wall httpbin:88
sudo systemctl start http防火wall

子服务器:

sudo systemctl create subhttp防火wall
sudo systemctl set subhttp防火wall httpbin:88
sudo systemctl start subhttp防火wall

步骤 9:创建网络包过滤器

sudo systemctl create ipfilter
sudo systemctl set ipfilter httpbin:88
sudo systemctl start ipfilter

步骤 1:创建服务器实例

主服务器:

sudo systemctl create server instance
sudo systemctl start server instance

步骤 11:启动网络配置

主服务器:

sudo systemctl start httpbin

子服务器:

sudo systemctl start subhttpbin

注意事项

  • 确保所有防火墙、过滤器和子服务器防火墙都正确设置,防止数据窃取。
  • 使用工具如 WTFirewall 或 Netcat 帮助配置网络防火墙和过滤器。

通过以上步骤,你可以成功设置 OpenWrt 网络,管理服务器、防火墙、过滤器和网络包过滤器,确保数据安全。

要设置 OpenWrt 网络,可以按照以下步骤进行

扫描二维码推送至手机访问。

本文转载自互联网,如有侵权,联系删除。

本文链接:https://kuailianapp-m.com.cn/post/5300.html

扫描二维码手机访问

文章目录
网站地图