Assume two CentOS instances are connected to the internet (Say server A: 5.200.200.5 and B: 46.30.7.20).
I want to create a setup on servers in which all network traffic of server A passes through server B. So that when server A sends a request to a third server, for example, Google, the IP of server B is transmitted. I have SSH access to both servers.
For this purpose, I prefer not to use OpenVPN. I read many articles on Google and StackExchange about SSH Tunneling
or Port Forwarding
in Linux. But none of them explain a step by step solution or are written for highly expert users.