DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st March 2022
perfopt perfopt is offline
New User
 
Join Date: Apr 2017
Posts: 3
Exclamation Dual ISP Equal Cost Multi-path routing

Hello

I have an OpenBSD firewall router for my home. Currently it works fine connected to an ISP and my home network. The firewall also runs DHCPD and DNS (Unbound). I followed instructions at https://openbsdrouterguide.net/ along with relevant man pages.

I have two ISPs and want to set up the router to do Equal Cost Multi Path routing. I followed instructions here:

https://www.openbsd.org/faq/faq6.html#Multipath

I first deleted the existing default routes. Then added the two multipath routes to both ISPs.

I enabled multipath option uusing sysctl

I tried the traceroute example in the FAQ but I see traffic going through only one default route.

With both ISPs connected I am able to ping google.com from the firewall but web browsers behind the firewall are unable to access websites. Some websites work and some don't.

How can I debug this problem? I would like to get ECMP working and later use ifstated for handling ISP failure.

Last edited by perfopt; 23rd March 2022 at 02:38 AM.
Reply With Quote
  #2   (View Single Post)  
Old 21st March 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,020
Default

Hello, and welcome!


The only time I tested equal-cost routing, I used two NICs, following the FAQ. A clear difference with your scenario appears to be your single-NIC outbound provisioning. I don't know if that is the reason for the problems you are experiencing, but it is certainly something to consider.
Reply With Quote
  #3   (View Single Post)  
Old 22nd March 2022
perfopt perfopt is offline
New User
 
Join Date: Apr 2017
Posts: 3
Default

Hello

My router uses multiple physical NICs - ISO1 is on em0 and ISP2 on em1. My home network is on em3. Currently em2 is unused and will be setup later as a DMZ
Reply With Quote
  #4   (View Single Post)  
Old 22nd March 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,020
Default

Sorry, I'd misread your post when I had too much blood in my caffeine system. I'd thought I saw two gateway addresses sharing the same subnet. I've looked again, and now see my error of assumption.
Reply With Quote
  #5   (View Single Post)  
Old 23rd March 2022
perfopt perfopt is offline
New User
 
Join Date: Apr 2017
Posts: 3
Default

Found the error. I had incorrectly setup NAT

Below is the corrected version:

Excerpts from my pf.conf

ext_if= "{ em0, em1 }" #WAN ports for ISPs
ext_if0="em0" #ISP1
ext_if1="em1" #ISP2

#------------------------#
# NAT
#------------------------#

pass out on $ext_if0 inet from $g_lan:network to any nat-to ($ext_if0)
pass out on $ext_if1 inet from $g_lan:network to any nat-to ($ext_if1)

Earlier I had
pass out on $ext_if inet from $g_lan:network to any nat-to ($ext_if)

That was screwing things up.
Reply With Quote
Reply


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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTC:Romance scams will cost you e1-531g News 0 14th February 2019 07:55 PM
Multi-Path or Route-To? SlyM OpenBSD General 25 1st July 2016 04:21 PM
Snowden Used Low-Cost Tool to Best N.S.A. J65nko News 1 9th February 2014 09:24 PM
Altq on multi wan and multi zone environment apsaras OpenBSD Security 0 26th May 2012 11:19 PM
OpenBSD: equal-cost multipath routing Lexus45 OpenBSD General 0 31st August 2010 08:13 AM


All times are GMT. The time now is 07:50 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick