ros固定上网 1)普通上网:ip --firewall--nat +general chain=srcnat action action=masquerade(2)回流;ip --firewall--nat +general chain=srcnat src-address=192.168.0.0/16 dst-address=0.0.0.0/0 action action=masquerade(3)固定上网:ip --fir
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/13 07:15:35
![ros固定上网 1)普通上网:ip --firewall--nat +general chain=srcnat action action=masquerade(2)回流;ip --firewall--nat +general chain=srcnat src-address=192.168.0.0/16 dst-address=0.0.0.0/0 action action=masquerade(3)固定上网:ip --fir](/uploads/image/z/9530475-51-5.jpg?t=ros%E5%9B%BA%E5%AE%9A%E4%B8%8A%E7%BD%91+1%29%E6%99%AE%E9%80%9A%E4%B8%8A%E7%BD%91%EF%BC%9Aip+--firewall--nat+%2Bgeneral+chain%3Dsrcnat+action+action%3Dmasquerade%282%29%E5%9B%9E%E6%B5%81%EF%BC%9Bip+--firewall--nat+%2Bgeneral+chain%3Dsrcnat+src-address%3D192.168.0.0%2F16+dst-address%3D0.0.0.0%2F0+action+action%3Dmasquerade%283%29%E5%9B%BA%E5%AE%9A%E4%B8%8A%E7%BD%91%EF%BC%9Aip+--fir)
ros固定上网 1)普通上网:ip --firewall--nat +general chain=srcnat action action=masquerade(2)回流;ip --firewall--nat +general chain=srcnat src-address=192.168.0.0/16 dst-address=0.0.0.0/0 action action=masquerade(3)固定上网:ip --fir
ros固定上网
1)普通上网:ip --firewall--nat +general chain=srcnat action action=masquerade
(2)回流;ip --firewall--nat +general chain=srcnat src-address=192.168.0.0/16 dst-address=0.0.0.0/0 action action=masquerade
(3)固定上网:ip --firewall--nat +general chain=srcnat src-address=192.168.0.0/16 action action=src-nat to ADDRESSES=外网IP to-ports=0-65535
(4)端口映射:ip --firewall--nat +general chain=dstnat dst-address=外网IP protocol=协议 dst-prot=映射端口 action action=dst-nat to ADDRESSES=映射内网IP to-ports=映射端口
第2个 固定上网
ros固定上网 1)普通上网:ip --firewall--nat +general chain=srcnat action action=masquerade(2)回流;ip --firewall--nat +general chain=srcnat src-address=192.168.0.0/16 dst-address=0.0.0.0/0 action action=masquerade(3)固定上网:ip --fir
第一条、没有原IP的限制,原IP根据WAN口的IP自动伪装,网内所有IP都能上网
第二条、回流,就是网内IP访问自己WAN口IP,这个设置不知道有没有效,
第三条、限于192.168.0.0/16(192.168.x.x)才能上网,而且WAN口IP是固定的
第四条、端口映射,就是外网访问时,路由器将数据转发到内网的固定IP上