Hi all,
I've just launched a Debian 12 VM in VMware (ESXi 7.0.2) and installed apache2 / php / postgres stack on it + ssh access.
Generally we have 3 subnets (IPv4 only):
- 192.168.4.0/22 (Ethernet LAN) - which starts with 192.168.4.1 and ends
with 192.168.7.254
- 10.10.10.0/24 (VPN1)
- 10.10.20.0/24 (VPN2)
The new VM runs at 192.168.4.12
I'm having a weird issue with accessing it:
DNS resolves fine.
I can ping and arp it from all addresses.
There is nothing is switches' config to restrict traffic.
I can access TCP services (22, 443) from 192.168.4.x, 10.10.10.x and 10.10.20.x but not from 192.168.5.x (a subset of Ethernet LAN).
I have no active 192.168.6.x or 192.168.7.x hosts to test from.
I've done nothing special during OS installation and config.
There is no local iptables running on the VM.
I've run tcpdump on the VM and connections from all 192.168.5.x hosts are rejected with R (reset) flag.
It looks like some OS default or some kind of silent auto-ban causing it. Access rejection only affects TCP services, ICMP - ping go through fine.
I've deployed probably a hundred of various machines in this environment but never had this kind of access issue before.
From your VM can you ping and/or connect to a computer in the 192.168.5.x network?
From at least two computers in the 192.168.5.x network can you ping or connect to your VM ? (I presume not, from what you said).
Hi all,
I've just launched a Debian 12 VM in VMware (ESXi 7.0.2) and installed apache2 / php / postgres stack on it + ssh access.
Generally we have 3 subnets (IPv4 only):
- 192.168.4.0/22 (Ethernet LAN) - which starts with 192.168.4.1 and ends with 192.168.7.254
- 10.10.10.0/24 (VPN1)
- 10.10.20.0/24 (VPN2)
The new VM runs at 192.168.4.12
I'm having a weird issue with accessing it:
DNS resolves fine.
I can ping and arp it from all addresses.
There is nothing is switches' config to restrict traffic.
I can access TCP services (22, 443) from 192.168.4.x, 10.10.10.x and 10.10.20.x but not from 192.168.5.x (a subset of Ethernet LAN).
I have no active 192.168.6.x or 192.168.7.x hosts to test from.
I've done nothing special during OS installation and config.
There is no local iptables running on the VM.
I've run tcpdump on the VM and connections from all 192.168.5.x hosts
are rejected with R (reset) flag.
It looks like some OS default or some kind of silent auto-ban causing it. Access rejection only affects TCP services, ICMP - ping go through fine.
I've deployed probably a hundred of various machines in this environment
but never had this kind of access issue before.
Any ideas?
Regards,
Adam
I've just launched a Debian 12 VM in VMware (ESXi 7.0.2) and installed apache2 / php / postgres stack on it + ssh access.
Generally we have 3 subnets (IPv4 only):
- 192.168.4.0/22 (Ethernet LAN) - which starts with 192.168.4.1 and ends
with 192.168.7.254
- 10.10.10.0/24 (VPN1)
- 10.10.20.0/24 (VPN2)
The new VM runs at 192.168.4.12
I can access TCP services (22, 443) from 192.168.4.x, 10.10.10.x and 10.10.20.x but not from 192.168.5.x (a subset of Ethernet LAN).
What does
ip route show
give you on the VM in question?
On 24/09/2024 22:29, Dan Ritter wrote:
What does
ip route show
give you on the VM in question?
ip route show
default via 192.168.4.1 dev ens192 onlink
192.168.4.0/24 dev ens192 proto kernel scope link src 192.168.4.12
BINGO!
192.168.4.0/24 is wrong, should say 192.168.4.0/22
Do you know why?
In /etc/network/interfaces looks correct:
allow-hotplug ens192
iface ens192 inet static
address 192.168.4.12
mask 255.255.252.0
gateway 192.168.4.1
dns-nameservers 192.168.4.3
dns-search mydomain.co.uk
On 24/09/2024 22:29, Dan Ritter wrote:^^^^
What does
ip route show
give you on the VM in question?
ip route show
default via 192.168.4.1 dev ens192 onlink
192.168.4.0/24 dev ens192 proto kernel scope link src 192.168.4.12
BINGO!
192.168.4.0/24 is wrong, should say 192.168.4.0/22
Do you know why?
In /etc/network/interfaces looks correct:
allow-hotplug ens192
iface ens192 inet static
address 192.168.4.12
mask 255.255.252.0
It should be "netmask 255.255.252.0" or (I prefer) just set
"address 192.168.4.12/22"
without netmask (man says it is deprecated)
Adam Weremczuk wrote:
allow-hotplug ens192^^^^
iface ens192 inet static
address 192.168.4.12
mask 255.255.252.0
Spell this netmask instead.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 158:20:03 |
| Calls: | 12,094 |
| Calls today: | 2 |
| Files: | 15,000 |
| Messages: | 6,517,755 |