Host B: 192.168.10.20
Host B building web services,
A host configuration is as follows:
The ifconfig lo add 10.10.10.10
The iptables -f -t NAT
Echo 1 & gt; The/proc/sys/net/ipv4/ip_forward
Iptables -t NAT - A POSTROUTING -p TCP -- dport 80 - j SNAT - to - source 10.10.10.10
The iptables -t NAT - A PREROUTING -p TCP -- sport 80 - j DNAT - to - destionation 10.10.10.10
A host can ping 10.10.10.10
Q: why is still can't access the host B on A host of web page? A great god, please specify
CodePudding user response:
Directly modify/etc/sysconfig/iptables file, set the iptables- A INPUT - d 10.10.10.10 -p TCP -m TCP -- dport 80 - j ACCEPT, and then restart the service and try
CodePudding user response:
Or no, do not add these two rules is original, but added the impassability,CodePudding user response:
What is your network topology connection?CodePudding user response:
The