Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
pfSense Forum
pfSense English Support
»
General Questions
»
block traffic from specific sites.
Username:
Password:
1 Hour
1 Day
1 Week
1 Month
Forever
Home
Help
Search
Login
Register
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: block traffic from specific sites. (Read 925 times)
0 Members and 1 Guest are viewing this topic.
cylent
Full Member
Offline
Posts: 101
block traffic from specific sites.
«
on:
April 06, 2012, 10:06:44 am »
this may sound too easy for some but its not something i can figure out.
lets say i want to block
windowsupdate.com
or download.windowsupdate.com
or phobos.apple.com
the problem is these sites dont have one ip address. most have 10 or even more and theres no way to figure them all out to drop traffic from one or two ips.
i found a method to use the dns forwarder and add a 127.0.0.1 to a domain however...
what do you do when you have a1410.phobos.apple.com and then it changes to a736.phobos.apple.com
obviously here i dont want to block all apple.com.... just these update sites.
please advise.
«
Last Edit: April 06, 2012, 10:11:57 am by cylent
»
Logged
dhatz
Hero Member
Offline
Posts: 921
Re: block traffic from specific sites.
«
Reply #1 on:
April 06, 2012, 10:38:38 am »
Probably the easiest way would be to create bogus wildcard DNS records.
Logged
cylent
Full Member
Offline
Posts: 101
Re: block traffic from specific sites.
«
Reply #2 on:
April 06, 2012, 10:51:44 am »
that sounds great but i wouldnt know how to do that.
for example my top taffic sites according to lightsquid are:
ardownload.adobe.com
a1410.phobos.apple.com
au.download.windowsupdate.com
swcdn.apple.com
a474.phobos.apple.com
wl.dlservice.microsoft.com
as you can see from above phobos.apple.com has two links above. and more and more.
my users are literally ignorant. they dont know even basic computer knowledge. and because i set speed limits for their internet access they will complain their connection is slow. little do they know that their computer is running an update in the background sucking the speed thats allowed to them.
Logged
M.I.Bovrd
Jr. Member
Offline
Posts: 55
M.I.Bovrd
Re: block traffic from specific sites.
«
Reply #3 on:
April 06, 2012, 01:14:34 pm »
Services -> Proxy Server -> Access Control tab -> Blacklist Box
(^|\.)windowsupdate\.com$
(^|\.)download\.windowsupdate\.com$
(^|\.)phobos\.apple\.com$
Logged
Tweet: MIBovrd@cqrite
http://www.cqrite.com
cylent
Full Member
Offline
Posts: 101
Re: block traffic from specific sites.
«
Reply #4 on:
April 06, 2012, 10:56:05 pm »
Thank you.
can you please tell me how to enter in these characters so i can make my own syntax?
also
is there a file squid uses to show the blocked sites in a log?
Logged
M.I.Bovrd
Jr. Member
Offline
Posts: 55
M.I.Bovrd
Re: block traffic from specific sites.
«
Reply #5 on:
April 07, 2012, 10:22:33 am »
Sorry, not sure what you mean? Type them, as you see them in the Blacklist Box.
Select - Services -> Proxy Server -> Access Control tab -> Blacklist Box
here is another couple you might want to try from your list.
(^|\.)dlservice\.microsoft\.com$
(^|\.)swcdn\.apple\.com$
(^|\.)ardownload\.adobe\.com$
The characters are regular expressions: the backslash is a delimiter for the '.' because it is a reserved character.
the '^' matches anything in front of the line with a '.'
The '$' matches anything after.
in syslog?
Logged
Tweet: MIBovrd@cqrite
http://www.cqrite.com
cylent
Full Member
Offline
Posts: 101
Re: block traffic from specific sites.
«
Reply #6 on:
April 07, 2012, 12:44:15 pm »
ya what i mean is how do you know the characters.
Logged
M.I.Bovrd
Jr. Member
Offline
Posts: 55
M.I.Bovrd
Re: block traffic from specific sites.
«
Reply #7 on:
April 07, 2012, 10:15:58 pm »
As I said they are 'regular expressions' used in unix and other OS's. Many OS's use a subset of the main expressions. A Google search for them will reveal many examples.
Logged
Tweet: MIBovrd@cqrite
http://www.cqrite.com
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Administrative
-----------------------------
=> Forum rules
=> Messages from the pfSense Team
=> Feedback
-----------------------------
pfSense English Support
-----------------------------
=> Installation and Upgrades
=> General Questions
=> 2.1 Snapshot Feedback and Problems
=> Post a bounty
===> Completed Bounties
===> Expired/Withdrawn Bounties
=> Hardware
=> Firewalling
=> NAT
=> CARP/VIPs
=> Routing and Multi WAN
=> Traffic Shaping
=> DHCP and DNS
=> IPv6
=> IPsec
=> PPTP
=> PPPoE Server
=> Captive Portal
=> webGUI
=> Wireless
=> SNMP
=> Packages
=> Virtualization installations and techniques
=> OpenVPN
=> Gaming
-----------------------------
Development/Documentation
-----------------------------
=> Documentation
=> Development
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
International Support
-----------------------------
=> Indonesian
=> Deutsch
=> Español
=> Français
=> Italiano
=> Russian
=> Nederlands
=> Norwegian
=> Portuguese
=> Polish
=> Romanian
=> Swedish
=> Turkish
-----------------------------
Retired
-----------------------------
=> 1.2.3-PRERELEASE-TESTING snapshots - RETIRED
=> 1.2.1-RC Snapshot Feedback and Problems-RETIRED
=> 2.0-RC Snapshot Feedback and Problems - RETIRED
=> DNS Server testing area - RETIRED
Loading...