Re: [CentOS] routing with 2 public ips

2015-12-31 Thread Eliezer Croitoru
On 30/12/2015 18:37, Joey wrote: Hello, i follow your discussion. The first 2 posts using multiple default routes solve my problem perfect. Thank you all. J Thanks for clearing it out Joey! ___ CentOS mailing list CentOS@centos.org https://lists.cen

Re: [CentOS] routing with 2 public ips

2015-12-30 Thread Joey
Hello, i follow your discussion. The first 2 posts using multiple default routes solve my problem perfect. Thank you all. J Am 2015-12-30 17:21, schrieb Eliezer Croitoru: On 30/12/2015 10:22, Paul R. Ganci wrote: On 12/30/2015 12:44 AM, Eliezer Croitoru wrote: "I want that the request o

Re: [CentOS] routing with 2 public ips

2015-12-30 Thread Eliezer Croitoru
On 30/12/2015 10:22, Paul R. Ganci wrote: On 12/30/2015 12:44 AM, Eliezer Croitoru wrote: "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 " I'm sorry but I have been following this thread fo

Re: [CentOS] routing with 2 public ips

2015-12-30 Thread Paul R. Ganci
On 12/30/2015 12:44 AM, Eliezer Croitoru wrote: "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 " I'm sorry but I have been following this thread for a while and everything that Gordon (a

Re: [CentOS] routing with 2 public ips

2015-12-30 Thread Александр Кириллов
I'm struggling to understand what you meant when you said that the destination is the gateway. If you just mean that the traffic is NATed, then again, I was not assuming that in any of my explanations. I said that, assuming the host with 2 public ips mentioned in the OP could be the gateway fo

Re: [CentOS] routing with 2 public ips

2015-12-29 Thread Eliezer Croitoru
I may not understood\interpreted the scenario pretty well. I will try again: "i have a server with 2 public ips on 2 devices." He has two servers or two gateways or both?? "I want that the request of incoming traffic dont use the default gateway. Incoming traffic sould be answered using the gate

Re: [CentOS] routing with 2 public ips

2015-12-29 Thread Gordon Messmer
On 12/29/2015 07:18 AM, Eliezer Croitoru wrote: ... Basic 1:1 NAT ... you have two gateways while you have two ip addresses or one on the interface. Just to illustrate the issue: AWS instance with two interfaces which have two ip addresses NATTED to them by AWS front tier using some kind of vir

Re: [CentOS] routing with 2 public ips

2015-12-29 Thread Eliezer Croitoru
On 28/12/2015 22:47, Gordon Messmer wrote: Can you explain what you mean? Not only am I not assuming that, I can hardly conceive of any situation in which a host will receive traffic for its own gateway. ... Basic 1:1 NAT ... you have two gateways while you have two ip addresses or one on the

Re: [CentOS] routing with 2 public ips

2015-12-28 Thread Gordon Messmer
On 12/28/2015 04:50 AM, Eliezer Croitoru wrote: Which means he has 1 server with two gateway devices which each has it's own broadcast space\network. It's not clear to me if there are two gateways in the same broadcast\network or not. I think it's safe to assume that the two addresses and, nec

Re: [CentOS] routing with 2 public ips

2015-12-28 Thread Gordon Messmer
On 12/28/2015 01:19 AM, Александр Кириллов wrote: Are you sure? You assume the destination of the incoming traffic is > the gateway. What if it isn't? Can you explain what you mean? Not only am I not assuming that, I can hardly conceive of any situation in which a host will receive traffic

Re: [CentOS] routing with 2 public ips

2015-12-28 Thread Eliezer Croitoru
I still do not understand something. The thread started with: 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 firewal

Re: [CentOS] routing with 2 public ips

2015-12-27 Thread Gordon Messmer
On 12/27/2015 07:49 PM, Eliezer Croitoru wrote: On 27/12/2015 22:49, Gordon Messmer wrote: While that's true, you still have to select the default route using "ip rule". And since you can do that using the source address for outgoing packets, there's no reason to mark them. It's completely red

Re: [CentOS] routing with 2 public ips

2015-12-27 Thread Eliezer Croitoru
On 27/12/2015 22:49, Gordon Messmer wrote: While that's true, you still have to select the default route using "ip rule". And since you can do that using the source address for outgoing packets, there's no reason to mark them. It's completely redundant. Can you match the MAC address?? in ip ru

Re: [CentOS] routing with 2 public ips

2015-12-27 Thread Gordon Messmer
On 12/26/2015 08:16 PM, Eliezer Croitoru wrote: you could use some iptables rules to mark a connection for example by the source MAC address per new connections which would be a specific router and by that mark the connection, then in the routing level decide which default gateway to use for th

Re: [CentOS] routing with 2 public ips

2015-12-27 Thread Anthony K
On 26/12/15 06:44, Joey wrote: Hello, i have a server with 2 public ips on 2 devices. This is most likely what you are after: Routing for multiple uplinks/providers - http://lartc.org/howto/lartc.rpdb.multiple-links.html Cheers, ak. ___ CentOS

Re: [CentOS] routing with 2 public ips

2015-12-26 Thread Eliezer Croitoru
This is half true. Depends on the application or the way that the network traffic is flowing you could use some iptables rules to mark a connection for example by the source MAC address per new connections which would be a specific router and by that mark the connection, then in the routing le

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

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

[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