The scenario is I want to use Expect to automatize some daily routine tasks to check log servers with private IP addresses. Telnet/SSH to those servers from a Linux server with public IP address won't work. Any way to set up a workable linux environment to run shell scripts + install packages (eg. expect) + get private IP address from the PC? Simplest method which can achieve the goal is welcomed.
Two simplest options:
The simplest way to do this if you want to use an external server is to create a VPN between your public Linux server and the internal corporate network. Look into installing the open source OpenVPN product on your server and creating a VPN tunnel into your corporate network. This is not an encouragement to use their commercial service. What you want to do is create a VPN tunnel from your Linux server to your corporate network, regardless of what VPN server software you use.
Another option is to create port forwarding rules on the corporate network's firewall for your
Finally, you could create a bastion server in the DMZ that collects information, and then passes it off to the external
Put a VPN server on your public
Yes, I am ashamed of my pun.