From: "Flávio Costa" <fcosta75@gmail.com>
To: netfilter@vger.kernel.org
Subject: Router with 2 public interfaces
Date: Wed, 21 May 2008 16:36:25 -0800 [thread overview]
Message-ID: <9b7febdd0805211736k3f34b85i659d4aa761e09bda@mail.gmail.com> (raw)
Hi.
I have a router with 3 interfaces. One is connected to an internal
LAN. The other 2 are connected to internet.
I have the following interfaces:
eth0 -> (internal ex. 192.168.0.1)
eth1 -> (fixed ex. 200.213.105.108)
eth2 -> (dynamic ex. 201.10.10.11)
The default route is configured for interface eth2.
Inside LAN I have a webserver listening on 192.168.0.10:80
People reaching my webserver by interface eth2 is all working fine.
When someone connect to webserver by interface eth1 I doesn't work,
because packets go back by default route (eth2), which is not the same
they arrive (eth1).
I tried marking packets and forcing transverse by original interface,
but it does not worked.
Can someone give me an example of "iptable" and "ip" commands to
configure this? I do not want balanced traffic, because in future I
may block incoming requests to eth2 and keep it default route to
people in LAN connect to webservers by that interface, which is less
expensive.
Thanks in advance
Flavio Costa
next reply other threads:[~2008-05-22 0:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-22 0:36 Flávio Costa [this message]
2008-06-05 12:09 ` Router with 2 public interfaces Thomas Bätzler
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=9b7febdd0805211736k3f34b85i659d4aa761e09bda@mail.gmail.com \
--to=fcosta75@gmail.com \
--cc=netfilter@vger.kernel.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