-
关于软路由中的
tx
和
rx
是
什么含义的理解
1
、在
INTTERFACE
中
我们查看
WAN
< br>网卡的流量时
RX
为下行流量
TX
为上行流量
2
、在
SIMPLE QUEUES<
/p>
中,当目的地址为工作站
IP
,网卡为<
/p>
WAN
时,
TX
为下行流量限制
tx
是发送
(
transport
)
,
rx
是接收
(receive)
。
以
ros<
/p>
为中心。
比如你的外网网卡,
p>
wan,rx
是
wan
接受
ISP
的
传输数据,
即下载速度。
wan
的
tx,
是工作站
经
ros wan
网卡向
isp
上传的速度,既上传速
度。
内网网卡
lan
的
rx
,
应该是
ros
接受
来之内网工作站的上传,
既是上传速度。
tx
< br>是
lan
网卡
传给工作站的速<
/p>
度,即工作站经内网网卡下载的速度
(以
ros
为中心)
< br>。
有没有分啊
tx rx
每个版本都不一样的啊
而且相对于外网和内网的解释又是相反的
你就记住一般
RX
外网指的是下载,
TX
指的是上传
而内网相反就行
关于
ROS
中
TX RX
的理解
RX
:接收
TX
:传送
1
、在
INTTERFACE
中
我们查看
WAN
网
卡的流量时
RX
为下行流量
TX
为上行流量
查看
LAN
网卡的流量时
RX
为上行流量
TX
为下行流量
原因,以
ROS
为中心,
WAN
网
卡接收的流量,即从
ISP
进来的流量,则为下行
以
ROS
为中心,
LAN
网卡接收的流量,即从工作站进来的流量,则为上行。
TX
同理。
2
、在
SIMPLE QUEUES<
/p>
中,当目的地址为工作站
IP
,网卡为<
/p>
WAN
时,
TX
为下行流量限制
原因,以
ROS
p>
为中心,向工作站传送数据,即为工作站的下行流量
RX
同理。
个人理解:以
ROS
为中心,
RX
p>
就是向
ROS
发送数据包,
TX
就是
ROS
发出的数据包
。
更改
W
INBOX
端口
ip
service> set www port=81 disabled=no
这条命令就可以给
IP
192.168.0.2--192.168.0.254
分别设置流量控制,真的很简单
:for i from 1 to 219 do={/queue simple
add name=(p . $$i) dst-address=(192.168.1. .
$$i)
max-limit=40000/512000
interface=all
parent=none
priority=8
queue=default/default
burst-
limit=800000/1024000
burst-
threshold=25000/300000
burst-time=6s/6s
total-queue=default target-address=0.0.0.0/0
disabled=no}
删除所有流量控制
:foreach i in [/queue simple find] do
{/queue simple remove $$i}
ROUTEROS
改本机
MAC
的方法
/ interface ethernet
set
lan name="lan" mtu=1500 mac-
address=00:10:AA:3F:45:41 arp=enabled
disable-running-check=yes auto-
negotiation=yes full-duplex=yes
日志:节省磁盘资源
:foreach i in=[/system logging facility
find local=memory ] do=[/system logging
facility set $$i local=none]
RO
防
syn
ip-firewall-connections
Tracking:TCP Syn Sent Timeout:50
TCP syn received timeout:30
RO
端口的屏蔽
ip-firewall-Filer
Rules
里面选择
forward
的意思代表包的转发
firewall rule-General
s:
要屏蔽的端口
Protocol:tcp
Action:drop(
丢弃
)
RO
限速
Queues-Simple Queues
name:
可以任意
Dst.
Address:
内网
IP/32
Limit At (tx/rx)
:
最小传输
Max Limit
(tx/rx) :
最
大传输
RO
映射
ip-firewall-Destination NAT
General-In. Interface all(
如果
你是拨号的就选择
pppoe
的、固定
IP
选择
all
即可
< br>
Dst.
Address:
外网
IP/32
Dst. Port:
要映射的端口
Protocol:tcp(
如果映射反恐的就用
udp)
Action action:nat
TO ses:
你的内网
IP
TO :
要映射的端口
RO
IP
伪装
ip-firewall-
Source NAT
Action
Action:masquerade(IP
伪装)
回流(因为假如说在本网吧做
SF
需要回流)<
/p>
ip-firewall-Source NAT
在
s
:
192.168.0.0/24
RO
的
IP:mac
绑定
:foreach i in=[/ip arp find dynamic=yes
] do=[/ip arp add copy-from=$$i]
:foreach i in=[/ip arp find ] do=[/ip
arp remove $$i]
完了在
interfaces
里面选择内网在选择
reply-only
RO
设置的备份(两总方法)
files-file list
backup
即可(可以到你的
ftp
里面找)
< br>
背份资料命令行:
system
回车
backup
回车
save name=
设置文件名
回车
资料恢复命令
system
回车
backup
回车
load name=
文件名
回车
RO
禁
ping
/ ip firewall rule input add
protocol=icmp action=drop comment="Drop
excess
pings" disabled=no
解
ping
ip-
firewall-filter rules
input:
将其屏蔽或者删掉
关于
mac
地址扫描
/tool mac-
scan all
VPN
与
ppp<
/p>
建立用户
在
interfaces--settings-pptp
server
Enabled
选择
mtu1500 mru
:
1500
keepalive
Timeout
:
disabled
default Profiles
:
default
Authentication
:
下面打上四个对号(这也代表服务器启动)
ip-pool-ip pool
pptp=192.168
.0.150-192.168.0.160(
此
IP
段为内网中没有在用的段)
pptp1=19
2.168.0.170-192.168.0.180(
此
I
P
段为内网中没有在用的段)
自己
总结出来的,有人问,为什么要写
2
个
ip
段一个不也行吗。
。
。
这也是我自己的心得,我想看到这个资料的人也不是一般人。呵呵
p>
因为在
vpn
连
接的时候我们要给他分配一个远程的主机
ip
做为网关。
在本配一个本地的做为
ip
。所以选择了
2
个,往下看在
ppp-Secrets
new ppp secret
service:pptp
routes:
< br>可以添加网关(一般
VPN
都是默认录找网关可添可不添
)
Profiles:
Local
Address:
在这里我添加的是
pptp
Remote
Address:
在这里我添加的是
pptp1
dns
,建议最好填写:
下面有两个
use Encryption
Require Encryption
代表加密
Limits:
Tx bit
Rate:()
用来限速的最大值
Rx bit
Rate:()
用来限速的最小值
这也就表明了,远程给他一个地址,本地给他一个地址,这样可以更好的来识别
最重要的,就是,基本每次都能拨上来。可能有很多人说我能拨你家电
信,为啥不
能拨网通,我来告诉你答案因为
< br>isp
的关系。在这里我就不详细说明了。
自动切换脚本:
系统
-
脚本:
cncdown:
source:/ip
policy-routing
table
cnc
set
[
ip
policy-routing
table
cnc
find
dst-address=0.0.0.0] gateway
222.168.11.165(
电信的网关
)
cncup:
source:/ip
policy-routing
table
cnc
set
[
ip
polic
-routing
table
cnc
find
dst-address=0.0.0.0] gateway 2
18.62.26.137(
网通的网关)
maindow:
source:/ip
policy-routing
table
main
set
[
ip
policy-routing
table
main
find
dst-address=0.0.0.0] gateway
218.62.26.137(
网通的网关
mainup:
source:/ip
policy-routing
table
main
set
[
ip
policy-routing
table
main
find
dst-address=0.0.0.0] gateway
222.168.11.165(
电信的网关
)
RO
监控流
tools-netwatch
netwatch
host:
host:218.62.26.137(
网通
的网关)
up:cncup down:cncdown
双网的就加一条电信的网关(做法同上)
怎么样把
ROS
的各种设定导出
使用
export
命令导出,使用
import
p>
命令导入
如:导出全部配置命令为:
/export file=xxx
导入配置命令:
/import file=xxx
导出防火墙配置的命令:
/ip firewall
export file=xxx
备份设置:
files-->backup
再用
ftp client
download
备份文件
恢复设置:
ftp client upload
备份文件;
files --> restore
检查磁盘
在路由或终端模拟下用下面命令:
system
check-disk
检查磁盘,要重启。
但是很慢,一分
钟一
G
。
。
。
哈哈
关机
可以在
WINBOX
中关机,也可以用命令关:
system
sh
即
可。
。
。自我感觉不好使
如果有一些网页打不开,你
ISP<
/p>
的
MTU=1492
,请在
IP > Firewall > Mangle >
单
击红加号
>
Protocol
选择
TCP > Tcp
Options
选择
sync >
Actions
选择
accept
>TCP MSS:1448
ip
-
firewall
-filter fules
,选择
+
号,
in
interface
选择内网网卡(
local
)
,其他
默认
这条路由允许来自内网的连接,
如果有限制,
可
以修改
src
address
的
ip
段,
或者
content
内容过滤
ip
-》
firewall
-》
filter chains
选中
input
,选择
drop
这条规则禁止所有的外部连接
以上两条规则,屏蔽来自外网的所有连接
一些恶意网站和广告,也可以从这里屏蔽
-
-
-
-
-
-
-
-
-
上一篇:dxp学习笔记
下一篇:ArcGIS中英对照