Networking Forums

Networking Forums > Computer Networking > Linux Networking > Advanced routing, two ISP's

Reply
Thread Tools Display Modes

Advanced routing, two ISP's

 
 
Dariusz Malec
Guest
Posts: n/a

 
      05-13-2010, 12:03 AM
Hi,
I have a scenario, where my linux gateway has access to internet via to
ISP connections. I've prepared source routing for my private networks
based on static routing tables.
I have a server behind NAT and i'm using DNAT to access it, but it's
only avalible via ISP connection selected as default.
Is there possible to have the DNATed server accessible using both ISP
connections? Maybe there is a way with connmark or something.
Waiting for yours suggestions.
It's a pity that none of my ISPs provides BGP protocol

--
Regards
Dariusz Malec
(E-Mail Removed)
 
Reply With Quote
 
 
 
 
Mart Frauenlob
Guest
Posts: n/a

 
      05-13-2010, 05:09 AM
On 13.05.2010 02:03, Dariusz Malec wrote:
> Hi,
> I have a scenario, where my linux gateway has access to internet via to
> ISP connections. I've prepared source routing for my private networks
> based on static routing tables.
> I have a server behind NAT and i'm using DNAT to access it, but it's
> only avalible via ISP connection selected as default.
> Is there possible to have the DNATed server accessible using both ISP
> connections? Maybe there is a way with connmark or something.
> Waiting for yours suggestions.
> It's a pity that none of my ISPs provides BGP protocol
>


http://www.mentby.com/Group/netfilte...t-problem.html

provided by g00gle...
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      05-13-2010, 09:26 AM
Hello,

Mart Frauenlob a écrit :
> On 13.05.2010 02:03, Dariusz Malec wrote:
>> Hi,
>> I have a scenario, where my linux gateway has access to internet via to
>> ISP connections. I've prepared source routing for my private networks
>> based on static routing tables.
>> I have a server behind NAT and i'm using DNAT to access it, but it's
>> only avalible via ISP connection selected as default.
>> Is there possible to have the DNATed server accessible using both ISP
>> connections? Maybe there is a way with connmark or something.
>> Waiting for yours suggestions.
>> It's a pity that none of my ISPs provides BGP protocol


I don't see how BGP would help here.

> http://www.mentby.com/Group/netfilte...t-problem.html


Thanks for digging this out, I don't need to repeat myself. :-)
 
Reply With Quote
 
Dariusz Malec
Guest
Posts: n/a

 
      05-15-2010, 12:03 PM
Mart Frauenlob pisze:
> On 13.05.2010 02:03, Dariusz Malec wrote:
>> Hi,
>> I have a scenario, where my linux gateway has access to internet via to
>> ISP connections. I've prepared source routing for my private networks
>> based on static routing tables.
>> I have a server behind NAT and i'm using DNAT to access it, but it's
>> only avalible via ISP connection selected as default.
>> Is there possible to have the DNATed server accessible using both ISP
>> connections? Maybe there is a way with connmark or something.
>> Waiting for yours suggestions.
>> It's a pity that none of my ISPs provides BGP protocol
>>

>
> http://www.mentby.com/Group/netfilte...t-problem.html
>
> provided by g00gle...


Well i had some problems but i figured it out
I've found out that DNAT works ok when using ISP connection which is set
as default gateway in main routing table. When using the second one i
figured it out that the packers passes PREROUTING chain in mangle table
and PREROUTING in nat table, and then they are dropped.
I found out that disabling rp_filter on public interfaces solves the
problem.
echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter

--
Regards
Dariusz Malec
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      05-16-2010, 10:18 AM
Dariusz Malec a écrit :
>
> Well i had some problems but i figured it out
> I've found out that DNAT works ok when using ISP connection which is set
> as default gateway in main routing table. When using the second one i
> figured it out that the packers passes PREROUTING chain in mangle table
> and PREROUTING in nat table, and then they are dropped.
> I found out that disabling rp_filter on public interfaces solves the
> problem.
> echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
> echo 0 > /proc/sys/net/ipv4/conf/eth2/rp_filter


This problem is well known and not specific to DNAT. It affects all
incoming and outgoing connections going through the non-default interface.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help from Advanced IP Routing Tech razor Windows Networking 5 08-01-2007 01:35 PM
Advanced routing Tomasz Plebanski Linux Networking 2 12-15-2004 03:42 PM
Advanced routing: multiple FIREWALLED IPs Rudolf Potucek Linux Networking 1 06-03-2004 08:43 PM
Advanced routing question Hans Linux Networking 5 05-08-2004 12:45 AM
advanced routing Henrik Gram Linux Networking 2 09-14-2003 02:58 AM



1 2 3 4 5 6 7 8 9 10 11