Re: Joining subnets



On Mon, 24 Aug 2009, in the Usenet newsgroup comp.os.linux.networking, in
article <69e15fde-f7e6-47fa-85b1-f2cac9cbd517@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
billbo wrote:

NOTE: Posting from groups.google.com (or some web-forums) dramatically
reduces the chance of your post being seen. Find a real news server.

ibupro...@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin) wrote:

Net 1:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 89948 eth0
192.168.11.0 192.168.10.6 255.255.255.0 UG 0 0 32165 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 388 lo
0.0.0.0 192.168.10.248 0.0.0.0 UG 0 0 2673 eth0

NET 2:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.11.0 0.0.0.0 255.255.255.0 U 0 0 89948 eth0
192.168.10.0 192.168.11.6 255.255.255.0 UG 0 0 32165 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 388 lo

This allows net 1 to talk to the world via the gateway at 192.168.10.248
and to net 2 via a different gateway.

The servers subnet and the lan subnet are not physically connected.

That's what it shows above. The world has only been doing this for maybe
24 years - see RFC0950, RFC1122, RFC1219 and RFC1812 available through
your favorite search engine. The box at 192.168.10.6 and 192.168.11.6 is
a router with two NICs.

The linux nat firewall is being used to connect them only at specified
ports and ip addresses like a bridge.

Sounds much more complicated that it needs to be

Each lan client is then routed to this bridge to access services on
the server subnet. By using nat, I do not have to worry about routing
to the lan network from the servers. The nat fw also seems to offer
better isolation as the lan network is being treated as an untrusted
network.

Routing does not have forward every packet for every port/address.

In your response to Wolfgang Draxinger, you state

The fw+nat (fw being iptables) is the security feature and is used to
limit ports and IP addresses, the nat is to avoid having to route from
the server network.

Using a firewall is fine - but the NAT adds nothing and only adds problems.
It also complicates logging and access control.

The NAT is also effective in preventing the spread of broadcast junk
and garbage and prevents my logs from getting filled up with martian
source errors.

Martian source errors are due to a lack of a route. Were this not the
case, don't you think that every computer connected to the Internet
would be reporting martian sources for every OTHER computer in the
world? It doesn't happen if the route exists. Mind you, the router
doesn't have to forward every packet to every address, so security
isn't a problem. Likewise, tcp_wrappers have been around for 15 years
(the last change was March 1997).

Also, JUST a FYI, while NAT in itself is not an acceptable security
solution, most network nasties cannot traverse NAT nor can they scan
through NAT, the same cannot be said about routed networks.

Apparently, no one has ever heard of policy routing - it too has only
been around for over 20 years, such that there are about 12 RFCs on
the subject.

Old guy
.



Relevant Pages

  • RE: can not direct inside network internet request to outside netw
    ... under 'routing internal network IP to outside network'. ... > Configure Windows 2000 RRAS NAT Server ... > When internal network clients send a request for the Internet, ...
    (microsoft.public.win2000.networking)
  • Re: DNS but No Web
    ... Routng how toTo setup Windows 2000/2003 as a router for a LAN, you need to two network adapters. ... To enable LAN routing. ... the server IP routing is disable that is the problem. ...
    (microsoft.public.windows.server.networking)
  • Re: RRAS Routing Problems
    ... erroneously routing through the DSL router. ... How to Setup Windows, Network, VPN & Remote Access on ... -All clients default routed to the RRAS Server ... 192.168.1.29: Cannot ping 192.168.2.29 ...
    (microsoft.public.windows.server.networking)
  • Re: Win2003 - Simple Quest, big Problem - Cant ping anywhere
    ... Post back with the routing table here may help. ... This server is behind the ... are addresses from the same network all of the servers are on. ... the ras server. ...
    (microsoft.public.win2000.ras_routing)
  • Re: RRAS Routing Problems
    ... The routing tables look good to me. ... How to Setup Windows, Network, VPN & Remote Access on ... > -All clients default routed to the RRAS Server ... > --Static route set to the remote route on the 192.168.2.0 network ...
    (microsoft.public.windows.server.networking)

Loading