From: Alexander Samad <alex@samad.com.au>
To: netfilter@lists.netfilter.org
Subject: Re: Trying to use NETMAP for 1-1 NAT
Date: Mon, 15 Mar 2004 15:13:48 +1100 [thread overview]
Message-ID: <20040315041348.GT26800@samad.com.au> (raw)
In-Reply-To: <Pine.GSU.4.58.0403142225080.22714@adore.lightlink.com>
[-- Attachment #1: Type: text/plain, Size: 3905 bytes --]
Okay, my answer is not really a netfiler answer, but why not run an
IPSEC tunnel between each site and then route over the ipsec tunnel.
If you want to aggregate the head end you could use an equaliser devices
to pull 2 or more xDSL lines together.
As you stated you will need an interaface per ADSL modem in bridge mode.
On Sun, Mar 14, 2004 at 10:57:18PM -0500, Nick Taylor wrote:
> I am posting a newbie question here, so I hope for your patience with me.
> We have had an unsolved problem which is driving us crazy for quite a
> while, and I stumbled upon the NETMAP patch, which seems to do exactly
> what we require. Unfortunately, I haven't been able to use the module,
> and I'm hoping someone on the list can point me in the right direction.
> Thanks in advance for your help.
>
> We have a remote office with a T1 line, which is quite expensive for us to
> maintain, and saturates frequently. We wish to increase the bandwidth
> available to us, and our remote office is close enough to use DSL over
> bare copper which our telco will provision for us, so the problem is
> multiplexing over the various DSL modems. If someone has a clever scheme
> for this already, I would love to hear about it, I could obviate the need
> for the NETMAP module. However, the following details what I want to do,
> and where in the process I stopped...
>
> Many, many netblocks are routed from our main office to the remote
> office. The DSL modems we use, however, are only capable of storing 8
> routes, so we figured we could 1:1 NAT each of the subnets of interest into
> a large private space, send it across the DSL modems, and 1:1 NAT it back
> to the real IP addresses at the other end. The other option we thought of
> was to use the modems as bridges, but it seems this would require a
> seperate (physical) interface in the linux box at each end for each modem.
> While this solution would work right now, it doesn't scale well.
>
> So, enter NETMAP...
>
> I downloaded linux-2.4.25.tar.gz from ftp.kernel.org, and after a few
> attempts got a kernel that worked for everything else I needed. I got the
> patch-o-matic as per the instructions in
> http://www.netfilter.org/documentation/HOWTO//netfilter-extensions-HOWTO.html
> .
>
> I patched my kernel with NETMAP, turned it on in make menuconfig, did:
> make dep && make bzImage && make modules && make modules_install
> cp arch/i386/boot/bzImage /boot/vmlinux-2.4.25-patched
> lilo
> reboot
>
>
> Then I played with:
> iptables -t nat -A POSTROUTING -s 192.168.33.0/24 -j NETMAP --to \
> 192.168.44.0/24
>
> which gives the error:
> iptables v1.2.7a: Unknown arg `--to'
>
> so, I try:
> iptables -t nat -A POSTROUTING -s 192.168.33.0/24 -j NETMAP
> iptables v1.2.7a: Couldn't load target
> `NETMAP':/usr/lib/iptables/libipt_NETMAP.so: cannot open shared object file: No such file or directory
>
> Right...
> find / -regex '.*NETMAP.*' -print
> ...
> /lib/modules/2.4.25/kernel/net/ipv4/netfilter/ipt_NETMAP.o
> ...
>
> Okay, so it's a kernel module, not a shared object, and that's what I
> expected... so, maybe I need to modprobe it? That has exactly the
> same results. Maybe the userspace tool needs an update? Following
> instructions again found in
> http://www.netfilter.org/documentation/HOWTO//netfilter-extensions-HOWTO.html,
> I do:
> cvs -d :pserver:cvs@pserver.netfilter.org:/cvspublic login
> cvs -d :pserver:cvs@pserver.netfilter.org:/cvspublic co netfilter/userspace
> cvs server: warning: new-born netfilter/userspace has disappeared
>
> Uh, oh! Now I am stuck. Is there a new location I should be looking for
> the userspace? Is updating the userspace the right thing to be doing? Is
> this patch "not right" on 2.4.25? Anyone have any other suggestions what
> I should do?
>
> Thanks for your help!
>
>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-03-15 4:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-15 3:57 Trying to use NETMAP for 1-1 NAT Nick Taylor
2004-03-15 4:13 ` Alexander Samad [this message]
2004-03-15 7:33 ` Antony Stone
2004-03-16 6:29 ` Nick Taylor
2004-03-16 9:27 ` patch-o-matic and modules Ming-Ching Tiew
2004-03-16 9:46 ` Frederic de Villamil
2004-03-15 4:46 ` Trying to use NETMAP for 1-1 NAT Philip Craig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040315041348.GT26800@samad.com.au \
--to=alex@samad.com.au \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox