This is slightly confusing for me. I have 1 VPS server, which has 2 IP addresses (WAN) What i want to do is NAT each ip to route traffic to certain peers. What i have done is I made 2 wg interfaces (wg0 & wg1) Each of them has 1 peer, 2 computers at home. Something like:
+------------+
| |
+-------------------------+ Home PC 1 +------- Wan IP: 195.201.143.231 (When checked trough What is My IP)
| | | WG: 10.9.0.2
+------+-----------------+ +------------+
| wg0 - 10.9.0.1/24 |
| |
+ eth0 195.201.143.231 |
| eht0:1 195.201.143.232 |
| |
| wg1 - 10.8.0.1/24 |
+------+-----------------+ +------------+
| | |
+--------------------------+ Home PC 2 +------- Wan IP: 195.201.143.232 (When checked trough What is My IP)
| | WG: 10.8.0.2
+------------+
Currently it works quite like this no matter what i try:
+------------+
| |
+-------------------------+ Home PC 1 +------- Wan IP: 195.201.143.231 (When checked trough What is My IP)
| | | WG: 10.9.0.2
+------+-----------------+ +------------+
| wg0 - 10.9.0.1/24 |
| |
+ eth0 195.201.143.231 |
| eht0:1 195.201.143.232 |
| |
| wg1 - 10.8.0.1/24 |
+------+-----------------+ +------------+
| | |
+--------------------------+ Home PC 2 +------- Wan IP: 195.201.143.231 (When checked trough What is My IP)
| | WG: 10.8.0.2
+------------+
Any ideas will be appreciated.
Sorry if I made some mistakes, my primary language is not English.