Networking Forums

Networking Forums > Computer Networking > Linux Networking > Two NICs, Two networks, secure websites

Reply
Thread Tools Display Modes

Two NICs, Two networks, secure websites

 
 
dwed
Guest
Posts: n/a

 
      10-29-2006, 03:28 PM
Hi!

I have a Cisco router (provided by the ISP) that offers 29 usable IP's.
One of the public IP's is set to be the WAN IP of a simple SOHO
Linksys router that then creates a private network 192.168.1.0. There
is a Linux server with Apache on the private network. Port forwarding
on the Linksys router allows SSL access to secure web pages,
unencrypted HTTP, SSH, etc. to the Linux server. This all is working
OK.

I need to have a 2nd SSL site running on the same Linux server. So, I
installed a 2nd NIC and connected it to the Cisco router and used one
of the available public IP's. I cannot connect to the new public IP
(via the new NIC), but can still connect to everything described in the
1st paragraph above.

I can ping out each of the interfaces (e.g. ping -I eth0 yahoo.com and
ping -I eth1 yahoo.com both work). The results of route are:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
AAA.BBB.CCC.160 * 255.255.255.224 U 0 0 0
eth1
192.168.1.0 * 255.255.255.0 U 0 0 0
eth0
127.0.0.0 * 255.0.0.0 U 0 0 0
lo
default 192.168.1.1 0.0.0.0 UG 0 0 0
eth0

On the server, I can do lynx https://192.168.1.2 and lynx
https://AAA.BBB.CCC.164.

>From outside of the server, https://AAA.BBB.CCC.163 works now, but

https://AAA.BBB.CCC.164 does not. What needs to be done to allow
https://AAA.BBB.CCC.164 to work? And/or, what can I do to troubleshoot
the problem?

eth0 Link encap:Ethernet HWaddr 00:40:F4:E9:3F:3D
inet addr:192.168.1.2 Bcast:192.168.1.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6335 errors:0 dropped:0 overruns:0 frame:0
TX packets:5026 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1373872 (1.3 Mb) TX bytes:2199390 (2.0 Mb)
Interrupt:16 Base address:0xf000

eth1 Link encap:Ethernet HWaddr 00:0C:76:B4:CA:82
inet addr:AAA.BBB.CCC.164 Bcast:AAA.BBB.CCC.191
Mask:255.255.255.224
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1582 errors:0 dropped:0 overruns:0 frame:0
TX packets:2133 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:100305 (97.9 Kb) TX bytes:166007 (162.1 Kb)
Interrupt:21 Base address:0x1000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:209 errors:0 dropped:0 overruns:0 frame:0
TX packets:209 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22394 (21.8 Kb) TX bytes:22394 (21.8 Kb)


Thanks!

 
Reply With Quote
 
 
 
 
dwed
Guest
Posts: n/a

 
      10-31-2006, 12:44 PM
I've solved my problem regarding this. I put the two public IP's on
the same NIC and kept the local network on the other NIC. Now the
publicly accessible services are available and the local network is
also accessible.

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Servers with two NICS and two networks sverne Windows Networking 7 01-16-2010 01:05 AM
Unable to Access Secure Websites with Computers running Windows XP Christina Broadband Hardware 4 04-09-2008 02:47 PM
Unable to access secure websites, Invalid IP address?t Granite Windows Networking 0 11-23-2005 05:58 PM
SSL on networks and websites? Justin Tyme Home Networking 9 05-04-2005 01:35 PM
two dsl connections, two routers, dual nics on linux box , want to run two websites Laitkor Linux Networking 1 06-19-2004 07:27 PM



1 2 3 4 5 6 7 8 9 10 11