Experimental topology shown below, host2 3 4 are a host of different networks, wherein there take the host2 and host3 web service, host2 test host, host1 as linux system, and as a gateway.
First, the topology shown, mounted on the httpd service host3 and Host4, arrangement of each host linux ip address after installation
host3 installation services
Configuring Address
host4 installation services, configuration address
host2 configuration address
host1 configuration address, you need to add two network cards, each card configuration respectively
ens33
Copy ens33 profile named ens36 ens37, change the configuration file after copying is finished
Open host1 routing forwarding
Two hosts open httpd service, create a file, set the firewall
Set up a firewall on host1
Test whether access
Do port forwarding, so host4 access host3 website