Re: Routing with 2 Subnets on one NIC
From: David Efflandt (efflandt_at_xnet.com)
Date: 12/09/03
- Next message: TLann: "Re: Samba Printing Problem"
- Previous message: TLann: "Re: Samba Printing Problem"
- In reply to: Rusty Phillips: "Routing with 2 Subnets on one NIC"
- Next in thread: Rusty Phillips: "Re: Routing with 2 Subnets on one NIC"
- Reply: Rusty Phillips: "Re: Routing with 2 Subnets on one NIC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 9 Dec 2003 01:57:43 +0000 (UTC)
On Mon, 08 Dec 2003 12:51:03 -0500, Rusty Phillips <rustyp@freeshell.org> wrote:
> I have a computer that serves as a router for six other computers.
>
> It has it's own public IP address, and four of the six other
> computers also have their own public addresses (all on the same
> subnet).
>
> The other two computers have private addresses, and I use a
> firewall script called gShield to do the routing and NAT. Supposedly
> it also has support for public addresses, which I have enabled.
>
> I've also manually added routes (using route) to the public addresses to
> go through the internal interface.
>
> I have the internal interface set up with two addresses -
> the first address (normally the gateway) for both subnets.
> At the moment, the private addresses work completely, but while
> the publicly addressed computers are only able to ping all of the NICs on the
> internal network (and the external interface which connects to
> the net), and they cannot access anything beyond.
>
> Does anyone have any thoughts about what I'm doing wrong, or what I'm
> missing?
Most likely an incorrect netmask on your real public interface resulting
in duplicate or incorrect network route(s) for your public IPs. If you
have a block of IPs that include your actual public interface, that
interface should probably have netmask 255.255.255.255, host route to your
ISP's gateway, and default route to that gateway. That way anything to
any of your other public IPs would be routed to your internal interface
instead of external (assuming proper network route).
Of course your firewall/masq also has to be set up correctly so it
masquerades any of your private IPs going to internet, but not your public
IPs.
SuSE has an easy to configure SuSEfirewall2 that can be configured for DMZ
(for public IPs), but I have not had public IPs to try that with. Also
not sure if it recognizes alias interfaces, or if it would require IP
ranges for DMZ and internal.
-- David Efflandt - All spam ignored http://www.de-srv.com/ http://www.autox.chicago.il.us/ http://www.berniesfloral.net/ http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
- Next message: TLann: "Re: Samba Printing Problem"
- Previous message: TLann: "Re: Samba Printing Problem"
- In reply to: Rusty Phillips: "Routing with 2 Subnets on one NIC"
- Next in thread: Rusty Phillips: "Re: Routing with 2 Subnets on one NIC"
- Reply: Rusty Phillips: "Re: Routing with 2 Subnets on one NIC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|