I would like to implement DSR (direct server return) this is my current test scenario:
Any ideas how if using PF I could forward the packet from the Alicloud VM to the VM in Hetzner and from there return the response but using instead the IPv4 Public of Hetzner the public IP of alicloud (8.08.20.138) I am aware that BCP38 filter needs to be disabled since eventually from hetzner side they will not allow sending packets from an src that doesn't match my IP
Code:
Client <------------------------------------+
src: client IP |
dest: 8.208.20.138 |
| |
| |
(Internet) |
| |
| |
Alicloud return traffic to the client from this VM
EIP: 8.208.20.138 [ src: 8.208.20.138, dest: client IP]
| ^
VM (DHCP) |
+-------------------+ +----VM Hetzner---+
|IPv4: 192.168.60.89| <--- wireguad ---> | IPv4: Public IP |
|IPv6: 240b:4005::30| ipip | IPv6: Public /64|
+-------------------+ (any tunnel) +-----------------+
Any ideas how if using PF I could forward the packet from the Alicloud VM to the VM in Hetzner and from there return the response but using instead the IPv4 Public of Hetzner the public IP of alicloud (8.08.20.138) I am aware that BCP38 filter needs to be disabled since eventually from hetzner side they will not allow sending packets from an src that doesn't match my IP