I have a Linux server A with a block of 5 public IP addresses,
220.127.116.11 is assigned to
18.104.22.168 is assigned to
I have another Linux machine B in a remote location, behind NAT. I would like to set up an tunnel between the two so that B can use the IP address
22.214.171.124 as its primary IP address.
OpenVPN is probably the answer, but I can't quite figure out how to set things up (
topology subnet or
topology p2p might be appropriate. Or should I be using Ethernet bridging?). Security and encryption is not a big concern at this point, so GRE would be fine too -- machine B will be coming from a known IP address and can be authenticated based on that.
How can I do this? Can anyone suggest an OpenVPN config, or some other approach, that could work in this situation? Ideally, it would also be able to handle multiple clients (e.g. share all four of spare IPs with other machines), without letting those clients use IPs to which they are not entitled.