This configuration hairpins the GENEVE traffic from the GWLB to the VyOS instance back to the GWLB. This allows for testing but does not allow for inspection. This configuration should only be used as a POC and not used in production as it allows all traffic.
| Public Interface (EC2 eth0) | 10.0.0.7 |
| Management Interface (EC2 eth1) | 10.0.1.7 |
| GWLB Interface | 10.0.0.49 |
vyos@ip-10-0-0-7:~$ show configuration commands
set interfaces ethernet ens5 address 'dhcp'
set interfaces ethernet ens6 address 'dhcp'
set nat destination rule 100 destination address '10.0.0.7'
set nat destination rule 100 inbound-interface 'ens5'
set nat destination rule 100 protocol 'udp'
set nat destination rule 100 source address '10.0.0.49'
set nat destination rule 100 translation address '10.0.0.49'
set nat destination rule 100 translation port '6081'
set nat source rule 100 destination address '10.0.0.49'
set nat source rule 100 destination port '6081'
set nat source rule 100 outbound-interface 'ens5'
set nat source rule 100 protocol 'udp'
set nat source rule 100 source address '10.0.0.49'
set nat source rule 100 translation address 'masquerade'
set protocols static route 0.0.0.0/0 dhcp-interface 'ens6'
vyos@ip-10-0-0-7:~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
--------- ---------- --- -----------
ens5 10.0.0.7/26 u/u
ens6 10.0.1.7/26 u/u
vyos@ip-10-0-0-7:~$