All of lore.kernel.org
 help / color / mirror / Atom feed
* Dual WAN setup redux
@ 2012-01-27 23:03 Dimitri Yioulos
  2012-01-31  1:50 ` Lloyd Standish
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Dimitri Yioulos @ 2012-01-27 23:03 UTC (permalink / raw)
  To: netfilter@vger.kernel.org

Hi, folks.

Well, here I am, again, asking for help setting up a dual WAN.  With a kind nod 
to Lloyd and Andy, I'm simply not getting this to work.  And, my deadline for 
getting to good is now.  So, even though this is a bit off-topic, I'm 
appealing, once again, for your help.

Let me see if I can provide all of the information you might need to assist me:

LAN: 192.168.100.0/24
DMZ: 192.168.1.0/24
WAN1 (up and working for a long time): 65.x.x.160/27, gw 65.x.x.161
WAN2 (new connection): 75.x.x.24/29, gw 75.x.x.30

eth0 - WAN1: 65.x.x.162
eth0:0-eth0:6: 65.x.x.163, 164, etc.
eth1 - LAN: 192.168.100.1
eth2 - DMZ: 192.168.1.1
eth3 - WAN2: 75.x.x.25
eth3:0-eth3:1: 75.x.x.26, 27

SNAT current DMZ hosts WAN1 addresses

I want to use WAN2 for a new Web server and test server living in the DMZ.

I created a new routing table called WAN2.  Here's the output of "ip route show 
table WAN2":

75.x.x.24/29 dev eth3  scope link  src 75.x.x.25
default via 75.x.x.30 dev eth3

Netstat -ar produces the following ourput:

75.x.x.24   *               255.255.255.248 U         0 0          0 eth3
65.x.x.160  *               255.255.255.224 U         0 0          0 eth0
10.8.0.0        vpn.mydomain.c 255.255.255.0   UG        0 0          0 eth2
192.168.1.0     *               255.255.255.0   U         0 0          0 eth2
192.168.100.0   *               255.255.252.0   U         0 0          0 eth1
default         65.x.x.161. 0.0.0.0                UG        0 0          0 eth0

The following are probably stupid noob questions, but here goes:

I can ping the WAN2 gateway address from our firewall/router, but not from any 
other network device (I can ping the gateway address of WAN1 just fine).  Don't 
I have to be able to do that first?

I'm not sure what internal ip addresses to give the new Web server and test 
server (192.100.1.x, or 75.x.x.26-29.

I'm thinking that once I can get the above straight, iptables rules will be 
relatively simple to set up(I'll probably regret having said that :-) ).

Thanks.

Dimitri


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Dual WAN setup redux
@ 2012-02-02 17:52 Dimitri Yioulos
  2012-02-02 23:11 ` Andrew Beverley
  0 siblings, 1 reply; 13+ messages in thread
From: Dimitri Yioulos @ 2012-02-02 17:52 UTC (permalink / raw)
  To: netfilter@vger.kernel.org; +Cc: DiCecca, Caitlin

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

On Thursday 02 February 2012 2:35:20 am Andrew Beverley wrote:
> On Wed, 2012-02-01 at 17:08 -0500, Dimitri Yioulos wrote:
> > On the test machine (call it box 3 in the diagram), I changed the ip to
> > be 75.x.x.28, netmask 255.255.255.248, network 75.x.x.24.  I set the
> > gateway to be 75.x.x.25 (eth3 address on the firewall/router).  I can't
> > ping anything.
>
> I wasn't very clear in my last post. You'll need to separate out that
> small block into different subnets, as they're on different interfaces.
>
> > If I had my choice, though, I'd rather assign an address of 192.168.1.x
> > to the test machine (as with the rest of the devices in the DMZ), and
> > make it use the WAN2 connection instead of WAN1 that the other devices
> > are using.
>
> Actually, it's probably as easy to do this. Set the 192.168.1.x IP
> address on the test machine, then try pinging eth3's IP address from the
> test machine. That should work. Then try the gateway on the same subnet.
> That should also work.
>
> Once that's working, then you should be able to do a DNAT on the
> firewall to send packets coming in on eth3 to the test machine
> (192.168.1.x).
>
> Andy
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


I changed the ip addy of the test server to 192.168.1.11, back on the 
DMZ subnet.  I now have partial success, as I can ping the gateway 
(75.x.x.30).  I think I have the correct SNAT and DNAT rules to reach this 
on port 80, but I can't reach it via 75.x.x.27, which is its external 
address.  Nor can I ping it.  And, I can ping anything outbound from that host.  
Arrgh.

I don't know if it's helpful, but I've attached what I hope is a new, better 
network map.

Thanks and regards,

Dimitri

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


[-- Attachment #2: Network Diagram_01302012_A.png --]
[-- Type: image/png, Size: 11836 bytes --]

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

end of thread, other threads:[~2012-02-02 23:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27 23:03 Dual WAN setup redux Dimitri Yioulos
2012-01-31  1:50 ` Lloyd Standish
2012-01-31 17:15 ` Andrew Beverley
2012-02-01 16:51   ` Dimitri Yioulos
2012-02-01 18:49     ` Andrew Beverley
2012-02-01 19:46       ` Dimitri Yioulos
2012-02-01 20:25         ` Andrew Beverley
2012-02-01 20:35 ` Andrew Beverley
2012-02-01 22:08   ` Dimitri Yioulos
2012-02-01 23:32     ` Andrew Beverley
2012-02-02  7:35     ` Andrew Beverley
  -- strict thread matches above, loose matches on Subject: below --
2012-02-02 17:52 Dimitri Yioulos
2012-02-02 23:11 ` Andrew Beverley

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.