public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: johnzeng <johnzeng2013@yahoo.com>
Cc: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] how to config gateway ?
Date: Tue, 01 Nov 2016 16:25:12 +0100	[thread overview]
Message-ID: <28433126.Mo1qHJxRqg@bentobox> (raw)
In-Reply-To: <5818B129.7090509@yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

On Dienstag, 1. November 2016 23:13:45 CET johnzeng wrote:
[...]
>                              but i have a question ,   there are two 
> interface bat0( wlan0 and face HostB) and eth0 ( no batman interface and 
> link to internet )  at hostA
> 
>                              echo 1 >/proc/sys/net/ipv4/ip_forward
>                              iptables -t nat -A POSTROUTING -o bat0 -j 
> MASQUERADE

No, masquerading has to be done on the outgoing interface (towards the next
hop which should not see the internal IP addresses - in your example eth0).

Kind regards,
	Sven

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  parent reply	other threads:[~2016-11-01 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-01 13:28 how to config gateway ? johnzeng
2016-11-01 13:39 ` [B.A.T.M.A.N.] " Sven Eckelmann
     [not found]   ` <5818B129.7090509@yahoo.com>
2016-11-01 15:25     ` Sven Eckelmann [this message]
2016-11-01 15:34       ` johnzeng

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=28433126.Mo1qHJxRqg@bentobox \
    --to=sven@narfation.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=johnzeng2013@yahoo.com \
    /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