I have 2 IP addresses on the same network interface: 192.168.1.100 & 192.168.1.101. I want to be able to access SSH via 192.168.1.100 and HTTP via 192.168.1.101. I'm using Debian 9.8 and firewalld to control the firewall.
Below are current zone configurations.
Zone: Public
root@server ~ # firewall-cmd --list-all --zone=public
public (active)
target: default
icmp-block-inversion: no
interfaces:
sources: 192.168.1.100
services: ssh
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
Zone: Special
root@server ~ # firewall-cmd --list-all --zone=special
special(active)
target: default
icmp-block-inversion: no
interfaces:
sources: 192.168.1.101
services: http
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
Reloading Firewall
root@server ~ # firewall-cmd --reload
For some reason, I'm able to access SSH via 92.168.1.100 & 192.168.1.101 and I'm unable to access HTTP from neither 192.168.1.100 nor 192.168.1.101.
Please help.