Community discussions

MikroTik App
 
kjagus
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Jan 30, 2005 11:29 pm
Location: Poland

Internet Connection Sharing blocking - how to?

Sun Jan 15, 2006 11:46 am

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
 
cibernet
Long time Member
Long time Member
Posts: 610
Joined: Fri Jan 28, 2005 7:22 pm
Location: Marcos Juárez, Córdoba, Argentina
Contact:

Re: Internet Connection Sharing blocking - how to?

Mon Jan 23, 2006 7:58 am

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...
 
User avatar
maroon
Member Candidate
Member Candidate
Posts: 230
Joined: Thu Oct 07, 2004 11:15 am
Location: Lebanon
Contact:

Mon Jan 23, 2006 1:02 pm

serious!!!

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

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

thank u
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Tue Jan 24, 2006 9:09 am

not possible at all...
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26954
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Tue Jan 24, 2006 9:12 am

of course not - how can you tell what your client is doing in his local network?
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Tue Jan 24, 2006 9:19 am

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...
 
driton
Frequent Visitor
Frequent Visitor
Posts: 52
Joined: Wed Mar 30, 2005 4:12 pm

Tue Jan 24, 2006 12:36 pm

ttl is decremented
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26954
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Tue Jan 24, 2006 1:47 pm

"ONLY" if you use ICS ???
 
nazemg
newbie
Posts: 45
Joined: Tue Jun 08, 2004 8:40 am
Location: Baghdad Iraq, Tripoli Lebanon
Contact:

Wed Jan 25, 2006 2:25 am

i think the best way around this is to use session limitation.
 
User avatar
maroon
Member Candidate
Member Candidate
Posts: 230
Joined: Thu Oct 07, 2004 11:15 am
Location: Lebanon
Contact:

Wed Jan 25, 2006 8:43 am

Nazem you're Lebanese and you have your work in Iraq? what kind of work?

thanks
 
sroa
just joined
Posts: 14
Joined: Mon Dec 19, 2005 10:09 pm
Location: Puebla Mexico
Contact:

Fri Jan 27, 2006 8:03 pm

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.
 
kjagus
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Sun Jan 30, 2005 11:29 pm
Location: Poland

Sat Jan 28, 2006 1:45 am

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
 
kleber
just joined
Posts: 16
Joined: Thu Jan 05, 2006 12:15 am

Its possible bloc ICS or nat

Sat Jan 28, 2006 9:17 pm

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?
 
driton
Frequent Visitor
Frequent Visitor
Posts: 52
Joined: Wed Mar 30, 2005 4:12 pm

Sat Jan 28, 2006 11:04 pm

Or drop all packets if ttl is lower than 128 if you`ve got only windows hosts.
 
sten
Forum Veteran
Forum Veteran
Posts: 923
Joined: Tue Jun 01, 2004 12:10 pm

Re: Internet Connection Sharing blocking - how to?

Sun Jan 29, 2006 12:58 pm

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.