Could anybody help me?
I have problem with port translation from internal web server through vyos router.
My configuration work fine when someone try connect to that from internet, but I can’t connect to web server on WAN IP from internal LAN.
I think I need some additional NAT rule(s), but I dont see it in documentation.
My NAT rules:
set nat destination rule 10 description ‘Port Forward: HTTP to 192.168.5.128’
set nat destination rule 10 destination port ‘80’
set nat destination rule 10 inbound-interface ‘eth0’
set nat destination rule 10 protocol ‘tcp’
set nat destination rule 10 source address ‘10.10.10.54’
set nat destination rule 10 translation address ‘192.168.5.128’
set nat source rule 100 outbound-interface ‘eth0’
set nat source rule 100 source address ‘192.168.5.0/24’
set nat source rule 100 translation address ‘10.10.10.111’
I think what you are trying to do is “hairpin NAT”
you could also think about using DNS to resolve internal clients to the webserver’s internal address, and external clients resolving to the webserver’s external address