Linux Netfilter discussions
 help / color / mirror / Atom feed
* Routing problem
@ 2004-02-13 15:39 Carlos Fernandez Sanz
  2004-02-13 15:50 ` Antony Stone
  2004-02-13 16:53 ` John A. Sullivan III
  0 siblings, 2 replies; 18+ messages in thread
From: Carlos Fernandez Sanz @ 2004-02-13 15:39 UTC (permalink / raw)
  To: netfilter

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

I have a small problem setting up a routing exception here.

We have a small LAN with NAT-based internet access. Nothing special here. 
The router is a Linux box, with two NICs. One of them has a private address. The other one has a WAN address (it's a requirement of our provider that we use this address even if we have public addresses). 

Anyway, one of our users needs to go out using a public IP, and NAT doesn't do, because he needs to establish a connection encrypted where the IP address is part of a signature.

We do have spare IPs. The problem is that I can't add a route to him, route returns "network is unreachable".

Suppose NIC A in the linux box (route) is 192.168.21.1. NIC B is our public IP 1 (of a pool of five) A.B.C.1. Everyone gets out using this IP and NAT.
Now I want someone in the LAN to own the public IP A.B.C.2, however he is connected to the internal switch. 
I tried to do this

route add A.B.C.2 gw A.B.C.2 dev eth0 

But I get "network unreachable".

Before you ask: I can't connect this special computer to the same place I connect the linux box (which would be the obvious solution) because the carrier expects traffic to come from one WAN IP, owned by the linux box. 

All suggestions welcome.

[-- Attachment #2: Type: text/html, Size: 2443 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2004-02-16 14:05 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-13 15:39 Routing problem Carlos Fernandez Sanz
2004-02-13 15:50 ` Antony Stone
2004-02-13 16:30   ` Carlos Fernandez Sanz
2004-02-13 17:12     ` Antony Stone
2004-02-14  8:41       ` Carlos Fernandez Sanz
2004-02-14  9:09         ` Antony Stone
2004-02-14 15:15           ` Carlos Fernandez Sanz
2004-02-14 15:19           ` Carlos Fernandez Sanz
2004-02-14 15:38             ` Antony Stone
2004-02-16 10:13       ` Problems with kernel 2.6.1 and iptables Jan Kaastrup
2004-02-16 10:26         ` Ray Leach
2004-02-16 10:47           ` Antony Stone
2004-02-16 11:19             ` Ray Leach
2004-02-16 13:18         ` Alexis
2004-02-16 14:05           ` Jan Kaastrup
2004-02-13 17:16     ` Routing problem Scott MacKay
2004-02-14  8:47       ` Carlos Fernandez Sanz
2004-02-13 16:53 ` John A. Sullivan III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox