🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.openbsd-pf
Article #91

NAT out to two DSL modems

#91
From: Ben Harper
Date: Tue, 19 Jul 2011 13:49
26 lines
2170 bytes
Hi,
I'm trying to NAT out to two DSL modems.
I have three network cards on three subnets:
re0: 192.168.4.0/24         Internal
re1: 41.134.100.222/29    DSL_A
re2: 10.10.10.5/24           DSL_B

I can NAT out to either re1 or re2, but I have to make my default
gateway point to the relevant gateway on that network.
How can I tell the route tables or the nat-to command what the gateway
machine is?

So I can do this, but ***only if my default gateway is
41.134.100.217*** (which is the gateway for that net):
pass out on re1 proto tcp from 192.168.4.0/24 to any nat-to re1

Likewise, I can do this, but once again, ***only if my default gateway
is 10.10.10.1*** (which is the gateway for that net):
pass out on re2 proto tcp from 192.168.4.0/24 to any nat-to re2

I believe I should be able to make this work without ANY default
gateway. But then where do I tell the system
what these two gateway machines are?

Thanks,
Ben
Technical Details
Message-ID: <f1394e60-e3dd-434b-ad6c-536705d2738d@s17g2000yqs.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!s17g2000yqs.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: ff4ef,c6212e92901498ac,start
X-Google-NewGroupId: yes
X-Google-Attributes: gidbffa70e3,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!s17g2000yqs.googlegroups.com!not-for-mail
From: Ben Harper <rogojin@gmail.com>
Newsgroups: bit.listserv.openbsd-pf
Subject: NAT out to two DSL modems
Date: Tue, 19 Jul 2011 06:49:45 -0700 (PDT)
Organization: http://groups.google.com
Lines: 26
Message-ID: <f1394e60-e3dd-434b-ad6c-536705d2738d@s17g2000yqs.googlegroups.com>
NNTP-Posting-Host: 196.209.236.31
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1311083474 26206 127.0.0.1 (19 Jul 2011 13:51:14 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 19 Jul 2011 13:51:14 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: s17g2000yqs.googlegroups.com; posting-host=196.209.236.31; posting-account=qX5rxQoAAABaNfCsclxuqfzao1v4PK5A
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HNKRUAELSC
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30
 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30,gzip(gfe)