All of lore.kernel.org
 help / color / mirror / Atom feed
* restricting connections from a single connection to a single destination
@ 2005-08-25 14:11 Todd Landfried
  2005-08-26  2:05 ` Grant Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: Todd Landfried @ 2005-08-25 14:11 UTC (permalink / raw)
  To: netfilter

I'm trying to protect some people from themselves and I want to set  
up a rule that allows a single IP on the network to connect only to  
the gateway's internal IP, thereby restricting as much as possible  
user's ability to connect to other PCs on the network. Yes, I know  
about VLANs and I know about port isolation on the hardware side, and  
I've tried explaining how to do it these folks, but they're just not  
getting it.

 From what I have read, this should work, but it doesn't. I'm not  
sure which loopback this refers to, the host or the source. Any  
suggestions?

-A PREROUTING -i lo -p icmp -d gateway-internal-private-ip -j ACCEPT
-A PREROUTING -i lo -p tcp -d gateway-internal-private-ip -j ACCEPT
-A PREROUTING -i lo -p udp -d gateway-internal-private-ip -j ACCEPT

Thanks


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: restricting connections from a single connection to a single destination
@ 2005-08-26  8:21 psihozefir
  2005-08-26 21:25 ` Taylor, Grant
  0 siblings, 1 reply; 4+ messages in thread
From: psihozefir @ 2005-08-26  8:21 UTC (permalink / raw)
  To: netfilter

Grant Taylor wrote:

> P.S.  If you would like help trying to explain
> the VLAN concept let me know as I'm having to
> implement this at one of my clients now.  In fact I may just write a How-To
> on it and see about
> submitting it somewhere b/c I think it will be rather interesting
> (read "fun" to those of us who like > challenges) to do.

I have a small LAN with my neighbours and they have access to the
Internet through my router. I once needed to block pc to pc traffic
because the LAN is made of about 10 low cost ethernet switching hubs
on four level tree and they could not manage the connections between
machines. So I had a lot of unuseful traffic in the network. They
started to act like non-switching hubs. The maximum transfer speed
dropped to 2.5 Mbyte/s (that's unacceptable). [ They are 48 neighbours
connected to this LAN. ]

Solution:
Each switch has its own subnet and the router is virtually on all
subnets with the lowest address on that subnet. The router has aliases
for eth1 (10 aliases). Problem: the traffic between subnets goes
through the router. The router has one 100 Mbit/s connection to LAN.
Concurrent connections slow each other, if they are all betweeen
different subnets. The router is unnecesarily loaded.

I had to develop the solution fast, and I know nothing about vlans. I
googled for docs but none I've found was short and step-oriented. I
also looked for solutions that explaind in terms of "for this feature
to work these are the minimum requirements: a), b) and c)". This could
improve troubleshooting in case of something is not working. I just
verify the a), b) and c) conditions to be fulfilled.

I've found sites where the concept was explained, but it was too much
to read and experiment until I could be able to do something useful.
The network should be operational during the tests with short times of
inoperability.

Sorin...
P.S. If you can explain the VLAN concepts and write a How-to I would
very much appreciate your effort. Thank you.


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

end of thread, other threads:[~2005-08-26 21:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25 14:11 restricting connections from a single connection to a single destination Todd Landfried
2005-08-26  2:05 ` Grant Taylor
  -- strict thread matches above, loose matches on Subject: below --
2005-08-26  8:21 psihozefir
2005-08-26 21:25 ` Taylor, Grant

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.