PdfPrep.com

Which of the following commands changes the source IP address to 192.0.2.11 for all IPv4 packets which go through the network interface eth0?

Which of the following commands changes the source IP address to 192.0.2.11 for all IPv4 packets which go through the network interface eth0?
A . iptables ~t nat -A POSTROUTING ~o eth0 -j SNAT -to-source 192.0.2.11
B . iptables ~t nat -A PREROUT1NG – eth0 -j SNAT -to-source 192.0.2.11
C . iptables -t nat -A POSTROUTING H eth0 -j DNAT -to-source 192.0.2.11
D . iptables -t mangle -A POSTROUTING -i eth0 -j SNAT -to-source 192.0.2.11
E . iptables -t mangle -A POSTROUTING -0 eth0 -j SNAT -to-source 192.0.2.11

Answer: A

Exit mobile version