Hi i have configured Centos 7 server which have 4 nic's.
My requirement is to access the Centos 7 server from separate 2 LAN networks internally and from outside using their public IP's.
Can someone please advice me how to do the configuration.
Thanks in advance
Need to access Centos 7 from two public IP's
Re: Need to access Centos 7 from two public IP's
What's the current config of the four NICs?
What do you mean by access; ssh, http ...?
What do you mean by access; ssh, http ...?
Re: Need to access Centos 7 from two public IP's
no any configuration, i need full accesstunk wrote:What's the current config of the four NICs?
What do you mean by access; ssh, http ...?
Re: Need to access Centos 7 from two public IP's
There is always a configuration. At least a default config. (You wrote: "i have configured Centos 7 server".)
Exception: a brand new machine that has never been powered on and nothing at all has ever been written on its drives. That is a "no configuration" (except that its firmware -- BIOS or UEFI -- does have some default config).
The default configuration does allow ssh access via every interface.
You do mention 4 nics and 3 subnets. However, you did not tell which (if any) are link-local.
Exception: a brand new machine that has never been powered on and nothing at all has ever been written on its drives. That is a "no configuration" (except that its firmware -- BIOS or UEFI -- does have some default config).
The default configuration does allow ssh access via every interface.
You do mention 4 nics and 3 subnets. However, you did not tell which (if any) are link-local.
Re: Need to access Centos 7 from two public IP's
You can add matching rules to different routing tables with different default routes for each source IP address.
I think you may be able to do this with ip command.
I think you may be able to do this with ip command.
Re: Need to access Centos 7 from two public IP's
Routing and netfilter are intertwined features, but until the OP provides more data we don't know what is actually needed.evantkh wrote:You can add matching rules to different routing tables with different default routes for each source IP address.
Routing decides whose problem a packet is.
Netfilter can shovel the packet into a tarpit.
tcpwrappers can block the packet from reaching a listening service.
Selinux can deny a service from listening a port.
A service can simply not listen an interface.
Yes, utility programs can modify active configuration. One should prefer to create permanent configurations that are (re)applied on (every) boot.