Page 1 of 1

Internet Connection Sharing blocking - how to?

Posted: Sun Jan 15, 2006 11:46 am
by kjagus
Hi!
I try to block connection sharing for users from one of th hotspot user profile.
I try to set outgoing-packet-mark in specified hotspot user profile
 2   name="BASIC" keepalive-timeout=10m status-autorefresh=1m 
     shared-users=unlimited rate-limit="32k/256k" incoming-filter="no-p2p" 
     outgoing-filter="no-p2p" incoming-packet-mark="ttl" 
     outgoing-packet-mark="ttl" transparent-proxy=yes open-status-page=always 
     advertise=no 
and then set ttl value in mangle rule based on the packet mark set in hotspot.
 0   chain=postrouting out-interface==Klienci-bridge packet-mark=ttl 
     action=change-ttl new-ttl=set:2
But there is no one packet in mangle rule statistics - it seems most likely packets are not marked - so ANY rule based on mark have nothing to do.
Is there any good way to avoid Internet sharing for specified (by hotspot profile) user?

thanks and regards!
kjagus

Re: Internet Connection Sharing blocking - how to?

Posted: Mon Jan 23, 2006 7:58 am
by cibernet
Hi!
I try to block connection sharing for users from one of th hotspot user profile.
I try to set outgoing-packet-mark in specified hotspot user profile
 2   name="BASIC" keepalive-timeout=10m status-autorefresh=1m 
     shared-users=unlimited rate-limit="32k/256k" incoming-filter="no-p2p" 
     outgoing-filter="no-p2p" incoming-packet-mark="ttl" 
     outgoing-packet-mark="ttl" transparent-proxy=yes open-status-page=always 
     advertise=no 
and then set ttl value in mangle rule based on the packet mark set in hotspot.
 0   chain=postrouting out-interface==Klienci-bridge packet-mark=ttl 
     action=change-ttl new-ttl=set:2
But there is no one packet in mangle rule statistics - it seems most likely packets are not marked - so ANY rule based on mark have nothing to do.
Is there any good way to avoid Internet sharing for specified (by hotspot profile) user?

thanks and regards!
kjagus
You cant block ICS...

Posted: Mon Jan 23, 2006 1:02 pm
by maroon
serious!!!

no option to stop ICS or NAT on the client side?

if there is any option... how to set it up !

thank u

Posted: Tue Jan 24, 2006 9:09 am
by savage
not possible at all...

Posted: Tue Jan 24, 2006 9:12 am
by normis
of course not - how can you tell what your client is doing in his local network?

Posted: Tue Jan 24, 2006 9:19 am
by savage
exactly my point :wink:

Once the packet is properly translated, there is nothing in the packet to identify it as coming from a different network...

Posted: Tue Jan 24, 2006 12:36 pm
by driton
ttl is decremented

Posted: Tue Jan 24, 2006 1:47 pm
by normis
"ONLY" if you use ICS ???

Posted: Wed Jan 25, 2006 2:25 am
by nazemg
i think the best way around this is to use session limitation.

Posted: Wed Jan 25, 2006 8:43 am
by maroon
Nazem you're Lebanese and you have your work in Iraq? what kind of work?

thanks

Posted: Fri Jan 27, 2006 8:03 pm
by sroa
Perhaps the only way could be to limit the number of simoultaneous connections (connlimit) that one user could do (40-60) if your client is sharing with others there would be more connections and they are going to be droped, the only problem is that if the other users use all the connections the ICS computer wont be able to use the internet.

Posted: Sat Jan 28, 2006 1:45 am
by kjagus
In most cases TTL limit is good... until user don't know how to modify ttl value. I know, that it is no problem for anybody on this forum, but TTL limit IS problem for most of my customers. They are "ordinary people", not guru

Its possible bloc ICS or nat

Posted: Sat Jan 28, 2006 9:17 pm
by kleber
I block ics on iptables :

I use in linux box :

iptables -I FORWARD -m ttl --ttl-lt 127 -j DROP (block nat in windows)

or

iptables -I FORWARD -m ttl --ttl-lt 63 -j DROP (block nat in linux)


And Mikrotik?

How translate this rules to Mikrotik?

Posted: Sat Jan 28, 2006 11:04 pm
by driton
Or drop all packets if ttl is lower than 128 if you`ve got only windows hosts.

Re: Internet Connection Sharing blocking - how to?

Posted: Sun Jan 29, 2006 12:58 pm
by sten
Hi!
I try to block connection sharing for users from one of th hotspot user profile.
I try to set outgoing-packet-mark in specified hotspot user profile
 2   name="BASIC" keepalive-timeout=10m status-autorefresh=1m 
     shared-users=unlimited rate-limit="32k/256k" incoming-filter="no-p2p" 
     outgoing-filter="no-p2p" incoming-packet-mark="ttl" 
     outgoing-packet-mark="ttl" transparent-proxy=yes open-status-page=always 
     advertise=no 
and then set ttl value in mangle rule based on the packet mark set in hotspot.
 0   chain=postrouting out-interface==Klienci-bridge packet-mark=ttl 
     action=change-ttl new-ttl=set:2
But there is no one packet in mangle rule statistics - it seems most likely packets are not marked - so ANY rule based on mark have nothing to do.
Is there any good way to avoid Internet sharing for specified (by hotspot profile) user?

thanks and regards!
kjagus
What is the problem exactly? I think you are on the wrong way to solving it.