[CentOS] routing with 2 public ips

2015-12-25 Thread Joey
Hello, i have a server with 2 public ips on 2 devices. I want that the request of incoming traffic dont use the default gateway. Incoming traffic sould be answered using the gateway of the incoming device Could i realize this with firewalld? Or directly iptables? Greeting J

Re: [CentOS] routing with 2 public ips

2015-12-25 Thread Paul R. Ganci
On 12/25/2015 12:44 PM, Joey wrote: i have a server with 2 public ips on 2 devices. I want that the request of incoming traffic dont use the default gateway. Incoming traffic sould be answered using the gateway of the incoming device Could i realize this with firewalld? Or directly iptables

Re: [CentOS] routing with 2 public ips

2015-12-25 Thread Gordon Messmer
On 12/25/2015 12:28 PM, Paul R. Ganci wrote: you have to tell the packets to go out the proper interface which must be done via routing tables. For that purpose you need ip route. I suggest you take a look at https://kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linu