Hi
I am new to Sophos UTM and figuring my way around setting things up. So far everything is working fine. However I ran into couple of scenarios, that I am not able to figure out why, how etc. Any help would be appreciated.
My Setup:
Linux Machine - running opensuse 42.3
Windows Machine - running Windows 10
Sophos UTM is a VM in a third machine with two network cards. One connecting to WAN (external internet), other connecting to a switch (internal). Sophos is my DHCP server, with giving dhcp addresses in 192.168.100.0/24 range. Both linux and windows machine are in the same subnet. Linux 192.168.100.1 and Windows 192.168.100.2.
I run samba, print server etc on my linux machines, windows can the samba shares etc. Both machines can go to internet, talk to each other and all, so no issues there.
I installed gitlab on the linux server. The gitlab is configured with URL gitlab.myserver.com listening on port number 9100 (default is 80 for nginix). To make gitlab accessible from my windows machine, I have done so far in Sophos:
a) I created a host definition for my gitlab domain under Definitions & Users
Name : GitLabServer
Type : Host
IPv4 address : 192.168.100.1
Hostname : gitlab.myserver.com
Additional Hostname : gitlab.myserver.com:9100
b) I created a service definition for my gitlab port under Definition & Users
Name : GitServicePort
Type of Definition : TCP
Destination Port : 9100
Source Port : 1:65535
Now from my windows machine (192.168.100.2), i am able to browse to giltab server using gitlab.myserver.com:9100. I can create repositories, git push etc with no problems. From windows cmd prompt I can ping gitlab.myserver.com, use git CLI commands with no issues at all. I tried to do couple of things, and I ran into issues.
a) from within the linux server where the gitlab is running, i am not able to ping gitlab.myserver.com. I can use browser on the linux machine and go to gitlab.myserver.com:9100 and manage my gitlab settings with no issues. I am not able to find gitlab server from the command line in the linux machine, especially git CLI from the linux box itself. git CLI fails saying cannot find gitlab.myserver.com
- To solve this, i edited the /etc/hosts file in the linux server, added 192.168.100.1 gitlab.myserver.com. Now I am able to ping the domain from linux cmd windows and git CLI works
Question : Is this the right way to do this? Why the linux server is not resolving gitlab.myserver.com through the UTM Gateway itself like the windows machine. Linux uses the same gw settings as well (192.168.100.250)
b) I tried to setup NAT rules to resolve/forward gitlab.myserver.com to gitlab.myserver.com:9100. I have tried various NAT combinations (DST NAT, Full NAT etc.), but i cannot browse using just domain name. I tried to understand and follow several suggestions from the following references, none of them seem to work my case.
Can someone please walk me through how to make gitlab.myserver.com resolve to gitlab.myserver.com:9100?
Thanks for your time and help.
Regards
This thread was automatically locked due to age.