Community discussions

MikroTik App
 
leofezollari
just joined
Topic Author
Posts: 1
Joined: Mon Apr 17, 2006 12:43 pm

bloch p2p only in 5 ip addresses.

Mon Apr 17, 2006 12:52 pm

Hi Mikrotik.
I have a question.I want that in my local network to allow only 5 ip to connect to p2p , for example i want that only : 192.168.0.10; 192.168.0.15; 192.168.0.21; 192.168.0.50; 192.168.0.88 , can access p2p network from internet and all another ip to block p2p,how to do these rules in my firewall.
Please help me .

Best regards
Leonard
 
bushy
Member Candidate
Member Candidate
Posts: 135
Joined: Thu Oct 20, 2005 11:56 pm
Location: Ireland

Mon Apr 17, 2006 4:48 pm

Set a firewall rule (using address list instead of 5 separate rules) to allow p2p , then set another to block p2p to everyone else,if your still lost i'll post it in more detail for you
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Mon Apr 17, 2006 4:54 pm

Use firewall to allow p2p traffic for 5 users,
1. create address-list, where add 5 addresses.
2. create firewall rule, that contain following parameters,
'ip firewall filter add src-address-list=list_name p2p=all-p2p chain=forward action=accept'.
3. drop p2p traffic for other users.
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Mon Apr 17, 2006 5:54 pm

Use firewall to allow p2p traffic for 5 users,
1. create address-list, where add 5 addresses.
2. create firewall rule, that contain following parameters,
'ip firewall filter add src-address-list=list_name p2p=all-p2p chain=forward action=accept'.
3. drop p2p traffic for other users.
Or combine 2 and 3 for less work

'ip firewall filter add src-address-list=!list_name p2p=all-p2p chain=forward action=reject' :)

Who is online

Users browsing this forum: erlinden, massinia, sindy and 46 guests