So I’m not too sure where exactly my issue lies. I will do my best to explain my setup and what it is that’s not working correctly or at least not how I would expect it to.
Both servers are running Nethserver release 7.9.2009 (final)
Router/firewall/DHCP/DNS/DC/VPN for the LAN network.
Two NIC’s one for red, one for green.
Red interface is PPoE, has two WAN IP’s the 2nd of witch is setup as an alias.
Multiple port forwards for services running on Server2 using the alias IP all working fine when accessed from the internet. E.g. Web,vhost web, Email, Nextcloud
Multiple open ports to Server1 for services also all working fine.
One NIC setup as green with static LAN IP.
Both servers have sub domains pointed at them that work grate externally for access to cockpit and all other services. Server2 all so has a 2nd sub domain pointed to it for a virtual host web page that also works fine externally.
The problem is that this 2nd virtual page dose not work internally from the LAN.
Other information to note is that I have added DNS entry’s to Server1 for all sub domains pointed to Server2.These entry’s point to Server2’s LAN address.
If I ping Server2’s main sub domain (e.g for cockpit) it returns Server2’s LAN address.
When pining the sub domain pointed to the vhost on Server2 it returns with Server1’s LAN IP.
Configuration from cockpit seems to have changed a little from when I originally set this all up. In fact it was orinally done using the old web config system and from memory I had to NAT the WAN IP to Server2 then setup port forwards. The NAT rule I can no longer see, that said I have tried changing the SNAT setting in the firewall setting e.g. adding both sub domains but this make no change situation. I have tried changin this setting both with and with out the DNS rules stated above but no matter what I do the vhost domain all ways points to the wrong server LAN IP. Each time a change is made the computer I’m using gets a DNS flush before testing.
Any advise on how best to implement this setup or if this issue has all ready been covered in the forum by others please point me in the right direction as my searchs have not yielded much.
Thanks in advance