From: "Fonz" <shorewall@incisoft.com>
To: netfilter@lists.netfilter.org
Subject: 2 internet ip numbers on eth0
Date: Fri, 28 Feb 2003 22:04:25 +0100 [thread overview]
Message-ID: <000201c2df6c$f964a5a0$fe00000a@laptop> (raw)
Hi,
I am migrating from one ISP to another, and would like to run both
simultaneously for a while.
So:
(both netmask 255.255.255.248)
[ISP1] 24.106.62.180 [ISP2] 209.181.237.230
| |
| |
\ /
-----[ HUB ]-----
|
|
-------- eth0 ---------
| Linux FW/Server |
---------eth1 ---------
|
|
[ HUB ]
|
10.0.0.x/255.255.255.0
The default IP on eth0 in my RedHat 7.2 box is ISP1 and it's default route
to ISP1's gateway.
I am getting rid of ISP2 in the future. Until then, I want to either forward
all request coming in on ISP2 to ISP1 so all ISP1 firewall rules will apply,
or just maintain separate rules for them, whichever is easier.
So both internet ip's are on eth0, and I tried manually setting ISP2 as an
alias for ISP1, giving me eth0 and eth0:0 under ifconfig. This allows me to
ping both ip's from my FW, but only ISP1 is pingable from the internet.
I am assuming it is a routing issue, where requests coming in on ISP2 try to
go back out via ISP1's default route.
I am using iptables 1.2.6a (also shorewall.net's shorewall 1.3.14)
I have spent a week reading docs and about routing, but am too much of a
rookie to figure this out. So I am hoping someone can help me out more than
referencing to more docs I don't understand.
I tried DNATting one internet ip to another, not knowig if that is even
possible, using something like
Iptables -t nat -A PREROUTING -d 209.181.237.230
-j DNAT --to-destination 24.106.62.180
But to no avail. Iptraf shows I am hitting 209.181.237.230 on eth0, but the
pinging/telnetting clients on the internet never get a reply from my
machine.
I'd appreciate it extra much if I'd get a CC on my shorewall at incisoft dot
com address.
Thanks,
Fonz
reply other threads:[~2003-02-28 21:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='000201c2df6c$f964a5a0$fe00000a@laptop' \
--to=shorewall@incisoft.com \
--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