I've got 2 IP addresses for my machine, examples:
My current server address is x.x.x.1 and the server is running service A, B & C.
I would like to provide service A & B on x.x.x.1 and..
I would like to provide service C on x.x.x.2
It should not be possible to reach services assigned to another IP address (i.e. reaching service C on x.x.x.1 should not be possible).
I've already added the secondary IP address to my interface.
Contents of /etc/network/interfaces.d/eth0.cfg:
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth0:0
iface eth0:0 inet static
address x.x.x.2
netmask 255.255.255.255
broadcast x.x.x.2
How can I achieve my goal described above? Do I need to configure service C to bind on x.x.x.2 only? And/or is it possible to configure this in the firewall?
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 302
تاريخ: پنجشنبه
7 مرداد
1395 ساعت: 16:58