##丁总路由器设置以及401联网
目标:(把丁总的VPN3080ti服务器改到VPN2080服务器电脑上)
查看2080服务器上的IP地址
1.查看VPN2080服务器电脑的虚拟机上的服务器ip
命令:
ip a
或者
ipconfig
(使用ipconfig这个命令查看电脑ip时,需要使用下面的命令安装net-tools工具之后才能使用ipconfig查看ip)
sudo yum install net-tools
2.这便是2080这台电脑的ip
路由器主界面
一、防火墙配置
(1)防火墙:端口转发
1.输入路由器配置更改IP地址:192.168.1.1(路由器的密码长春知道)
2.端口转发主界面:
3.找到“防火墙”,跳转到“端口转发”。
4.点击修改,这三个文件都需要修改。
5.修改第一个
6.在这里选择2080这台电脑上虚拟机的ip,最后点击“保存&应用”
7.修改第二个
8.与修改第一个是同样的操作
9.修改第三个
10.与修改第一个是同样的操作
11.forward其他设置:
12.Forward1701其他设置:
13.Forward4500其他设置:
(2)一般设置:
1.一般设置主界面
2.lan设置
3.wan设置
(3)流量规则
1.流量规则主界面
2.Allow-DHCP-Renew
3.Allow-Ping
4.Allow-IGMP
5.Allow-DHCPv6
6.Allow-MLD
7.Allow-ICMPv6-Input
8.Allow-ICMPv6-Forward
9.Allow-IPSec-ESP
10.Allow-ISAKMP
(4)自定义规则
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.
# Internal uci firewall chains are flushed and recreated on reload, so
# put custom rules into the root chains e.g. INPUT or FORWARD or into the
# special user chains, e.g. input_wan_rule or postrouting_lan_rule.