From: Glaucius Djalma Pereira Junior <glaucius@gmail.com>
To: Fabian Wolter <netfilter-ml@fabian-wolter.de>
Cc: netfilter@lists.netfilter.org
Subject: Re: How to masquerade when using ROUTE
Date: Sun, 8 May 2005 18:12:21 -0300 [thread overview]
Message-ID: <f48e768e0505081412da12405@mail.gmail.com> (raw)
In-Reply-To: <427E3CDE.1030008@fabian-wolter.de>
On 5/8/05, Fabian Wolter <netfilter-ml@fabian-wolter.de> wrote:
> Hi,
>
> Glaucius Djalma Pereira Junior wrote:
> > 1) create an entry in /etc/iproute2/rt_tables
> >
> > echo "200 fabian
>
> I named it mail.out.
>
> # echo "200 mail.out" >>/etc/iproute2/rt_tables
>
> > 2) create the route default to route fabian
> > ip route add default via x.x.x.x dev ethX table fabian
>
> I think you meant ppp1 instead of ethX?
>
> # ip route add default via 217.5.98.57 dev eth0 table mail.out
> RTNETLINK answers: Network is unreachable
> # ip route add default via 217.5.98.57 dev ppp1 table mail.out
> #
>
> 217.5.98.57 is my default gateway on ppp1.
>
> # route
> [...]
> 217.5.98.57 * 255.255.255.255 UH 0 0 0 ppp1
> [...]
>
> > ip rule add from fwmark 3 lookup fabian prio 1
>
> I had to remove the string "from". Then I could apply it without any
> error messages.
>
> I did the other steps as you said. But tcpdump on ppp1 shows no traffic
> and in syslog the following message appears:
hummm, but no errors has happened when you did it ?
try to test it using the CHAIN OUTPUT, just packets from your host
if you need help, I can help you, take my MSN -> glauciusjunior@hotmail.com
best regards !!!
>
> May 8 17:55:20 eis kernel: MASQUERADE: Route sent us somewhere else.
>
> Regards,
> Fabian
>
>
--
Glaucius Djalma Pereira Junior
glaucius@gmail.com
next prev parent reply other threads:[~2005-05-08 21:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-07 23:44 How to masquerade when using ROUTE Fabian Wolter
2005-05-08 14:55 ` Glaucius Djalma Pereira Junior
2005-05-08 16:22 ` Fabian Wolter
2005-05-08 21:12 ` Glaucius Djalma Pereira Junior [this message]
2005-05-09 6:14 ` Taylor, Grant
2005-05-09 12:19 ` Glaucius Djalma Pereira Junior
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=f48e768e0505081412da12405@mail.gmail.com \
--to=glaucius@gmail.com \
--cc=netfilter-ml@fabian-wolter.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.