thesyko
Greetings,
I have established a site2site VPN between two machines but I would like to only route one or two particular machines over the VPN.
Details as below;
Location A is a server in a datacentre (1 Public IP)
Location B is a router that has OpenVPN support built in. (1 Public IP and 1 LAN subnet)
Currently all machines in Location B are routed over the VPN to Location A. I would like only 1 or 2 machines in Location B only to be routed to Location A.
Any suggestions as to how this is achieved?
Mimiko
Use iptables rules for this. Block anyone except the ones you need.
thesyko
Where do I set the rules on?
Client or Server?
Which is advisable to be the server A or B?
Mimiko
Use iptables on Location B, which can differentiate hosts.