Forward ports to be MITM'ed between two hosts



I have two hosts on different virtualbox LANs (intnet1 and vmnet1). VyOS has an interface in both LANs. I would like to connect the two lans such that bidirectional HTTP communication on port 8443 can occur, but after it passes through Burp, which has an interface on vmnet1. How do I accomplish this with VyOS?

(Network Diagram Link)


just for my understanding:

  • you have a Service (8443) on the server and the client or just on the server?
  • each traffic should go through the burp machine?
    Request: Client --> Burp --> Server
    Reply: Server --> Burp --> Client

you can take a look here: