单项选择题
配置nat表的规则的命令是()。
A.iptables -I nat -A POSTROUTING -p tcp --dport 80-s 192.168.10.0/24-j SNAT --to 20.0.0.1
B.iptables -t nat -A POSTROUTING -p tcp --dport 80-s 192.168.10.0/24-j SNAT --to 20.0.0.1
C.iptables -t nat -A POSTROUTING -q tcp --dport 80-s 192.168.10.0/24-j SNAT --to 20.0.0.1
D.iptables -t nat -o POSTROUTING -p tcp --dport 80-s 192.168.10.0/24-j SNAT --to 20.0.0.1
相关考题
-
单项选择题
允许客户端访问http服务上的网站的命令是()。
A.iptables -t filter -A FORWARD -s 192.168.10.0/24-p tcp --dport 80-j ACCEPT
B.iptables -y filter -A FORWARD -s 192.168.10.0/24-p tcp --dport 80-j ACCEPT
C.iptables -t filter -A FORWARD -d 192.168.10.0/24-p tcp --dport 80-j ACCEPT
D.iptables -t filter -L FORWARD -s 192.168.10.0/24-q tcp --dport 80-j ACCEPT -
单项选择题
添加规则,允许客户端ping外网,外网服务器不能ping客户端的命令是()。
A.iptables -t filter -A FORWARD -s 192.168.10.0/24-p icmp --icmp-type 8-j ACCEPT
B.iptables -t filter -A FORWARD -o 192.168.10.0/24-p icmp --icmp-type 8-j ACCEPT
C.iptables -t filter -O FORWARD -s 192.168.10.0/24-p icmp --icmp-type 8-j ACCEPT
D.iptables -t filter -A FORWARD -s 192.168.10.0/24-p icmp --icmp-type 8-l ACCEPT -
单项选择题
iptables中清除以前的规则()。
A.iptables -t 表-F
B.iptables -t 表-L
C.iptables -t 表-P
D.iptables -t 表-A
