Server :: Unblock The Sites For A Particular Period Of Time Through Proxy?
May 24, 2011
We are using Red Hat linux 4 .We blocked certain sites through squid for certain ip address.we want to unblock these sites in particular interval ,ie during noon time and after 4.00 pm.
Here we have given
In the sites.txt we have given the names the of those sites that should be blocked
The problem is to unblock sites in sites.txt, for particular intervals
At school we're running edubuntu and some sites are blocked. I've heard that there is way to unblock some sites via terminal. For example facebook is blocked in our school. Is there any way to unblock it via terminal?
I'm not sure if this belongs in the Server or Networking section of the forums. Anyway, last month I upgraded my server to Ubuntu 10.04 LTS. Since then, I've had a recurring problem wherein after a certain period of time, the server stops accepting network connections. Ubuntu 10 will continue to reject network connections until someone logs into the server locally, after which time network connectivity is restored and the cycle begins anew. Essentially, the server goes into a "half sleep mode". I say half because the computer is still on and the fans are running.
I've done some searching around various forms and initially figured this issue was related to problems with the Network Manager service (https://bugs.launchpad.net/ubuntu/lu...er/+bug/524454), so I removed the service altogether. However, this problem is still occurring.
I've poured over /var/log/messages and /var/log/syslog, but have noticed no irregular behavior. Has anyone else experienced this issues? I'd rather not resort to downgrading back to Gusty Gibbon if I can help it.
I am happy to provide more information if its needed
I installed ubuntu 10.0.4 TLS version and my desktop freezes after a period of inactive time: the screen doesn't change and the apps do not response. It will resume after any key-stroke or mouse action. Is it a feature of 'power-saving' or something else? I need my ubuntu keep 'alive' all the time.
Now i am writting one bash script. in that my requirement is i need to create one directory and that the directory details to be stored in one file Ex. date/time and all in one file. after that i need to delete the folder automatically exactly after 3months. between these time period in 2month itself i need to send one mail to admin "regarding this still one month only more to delete the folder" . is it possible to do like that date calculation in script.
I just reinstalled, and can't get the setting set right so that my display does not shut off after a certain period of time. It is shutting off after a while of inactivity, and I do not want it to.
I currently have fedora 15 installed along side windows 7 on my acer aspire d250. So far it runs great, however I was wondering if there is a way to make fedora 15 hibernate after being in suspend for a period of time, just like windows 7 does. This make sense to me as there is no point in wasting battery life if i can hibernate, but I don't want to hibernate all the time, just suspend for a period of time, like 2 hours, in case I need my netbook again i have quick access to it.
I'm trying to block a site for a certain time.How to Block(deny) perticuler website in certain times of the day , by using squid ? and it seemed promising.I added the lines to my squid.conf
acl office_time time MTWHF 3:00-21:00 acl bad url_regex "/etc/squid/block.acl http_access deny bad !office_time
created a block.acl in the same directory and restarted it.
Im looking for an app pr line of code that could let me observe a process, save the info in a number of variable and then put the gathered info on a file.
Ive been trying with variations of top but no luck. I am running several CentOS virtual servers, VM is 2gb ram 2 processor.
Maybe a script that works over a specified amount of time while writing lines with the info on a text file so at the end i can have a sort of table with the data.
The thing is Im going to stress test the server and I would like to have the data to make some statistics.
I install Opensuse 11.4 on KDE environment then I changed to XFCE. I don't know how to configure for computer auto shutdown after a period of time don't use it.
I am having some trouble with my opensuse 11.3 internet connection for two weeks. After a certain period connection drops while using both NetworkManager and ifup. For info, I write the outputs of some codes.
I am running Karmic on my laptop, and I have three 1.5 TB external hard drives which I swap between frequently. My problem is that if I leave the drives in, and do not access them for a period of time, they become inaccessible, i.e. I will click on the icon on the desktop or in Places, and it will tell me there is no device mounted, even though I was using it fine just an hour before.
i have a feeling that it is because the USB drives spin down after a period, and Ubuntu detects them as being 'disconnected'. Would it help if I added individual entries for each in fstab?? Or do I need to adjust some settings elsewhere?
EDIT: If this information helps, the HD's are all Seagate Expansion drives, formatted to ext4.
My power went out for an extended period of time and now my graphics are messed up. I started my computer up and I only can get 640x480, so I was trying to reinstall the drivers but the nvidia drivers on the repositroy do not make sense as far as what goes with what, or descriptions of them. I downloaded the driver off nvidias website instaled it. It went to my desktop same problem.
I skipped over Jaunty on my main desktop because Intrepid had been working perfectly for so long. Finally took the plunge to Karmic, and have had major instability problems. I cannot trace them to any particular program I am using. At first it seemed related to power management, since it would lock up every time it had a period of extended inactivity. I have disabled ACPI in my BIOS (I think), and any power management settings I could find in gnome to try to troubleshoot. That seems to have helped, but it still happens semi-regularly, sometimes when I am in the middle of using it. I have tried checking logs and googled anything that seemed important. ie a message in kern.log reads: Clocksource tsc unstable
I need to block some of my sites with SQUID Proxy. I added following lines to my SQUID configuration file but still the site remains unblocked.How to block it?
The CPU frequency scaling monitor won't stay at 800mhz after reboot or a certain period of time. My goal is to always have my dual core CPU locked at 800mhz to have it run cooler. I'm running Ubuntu 10.10 on my toshiba u300 laptop.
I wanted to know how can I set a period of time to a tcp connection to wait for request or respond for tcp block read. which system call or function I can use? Does any body know a very simple quick and easy reference on web for socket programing that has lots of socket programing examples in it?
I'm using centos 5, kernel 2.6.18-164.11.1.el5I have occasional server network problems (the NIC driver will basically crash/restart causing no connectivity for a period of time) due to the marvell sky2 NIC driver being a problem, as discussed here: This essentially means the server is unreliable when under any kind of reasonable load, to put it mildly.Worse still, the driver problem has not been resolved in 2.6.18.x - but it seems to have been resolved in the latest Linux kernels.I really don't want to compile the kernel from source, etc, but it looks like I may have no choice.Is there a repo which has a pre-compiled 2.6.20+ or 2.6.30+ kernel which I can use,
I need to block some of my sites with SQUID Proxy. I added following lines to my SQUID configuration file but still the site remains unblocked.How to block it?acl blocksites url_regex yahoohttp_access deny blocksitesI have also tried saving some url & filter content in a file and edited configuration as follows,acl blocksites url_regex "/etc/squid/squid-block.acl"http_access deny blocksitesThe squid-block.acl file contents are.cricinfo.commp3
I have a problem with sites or domain blocking by squid proxy server in rehl 5. I have trying lots of time but i'm not succed.pls help me how to block sites or domain in rhel 5.
Currently my DHCP Server is working now what i want to have is auto detection of squid proxy in any browser but I still got an error in my dhcp server when I restart it.
My Config:
# DHCP configuration generated by Firestarter ddns-update-style interim; ignore client-updates;
I am trying to set up my squid3 proxy as a transparent proxy - right now, I have to manually configure browsers to access via proxy. I understand that I have to put some rules into Iptables and also some further directives in the squid.conf.
I have a couple of specific questions. The proxy server is running on a Ubuntu 10.04 workstation and this machine also acts as a dhcp server for the network. I have just one subnet , namely 192.168.0.1-254 There is only 1 network card. Is it much easier to put in a second network card or is it just as easy to configure the existing lan card as a dual IP?
Is it necessary to configure these 2 IP's ( whether they are via 2 lan cards or dual IP on single card ) to be on different subnets. i.e ETH0 192.168.0.1 and ETH1 192.168.1.1 or is ok to have something like ETH0 192.168.0.1 and ETH1 192.168.0.254 ( where ETH0 is the one facing the LAN and ETH1 points to the modem router / switch i.e The Internet ) Where specifically do I save the Iptables rule configuration file and what must I call it ?
On one of my Samba shares on my server I have a folder of mp3 files of my CDs. The one I am having an issue with is "Clarence Carter/Dr. C.C." (yes, the one with the ULTIMATE party song). The "Dr. C.C." folder name is normal locally on the server, but across Samba it comes out "DMOU3A~H". It's definitely Samba doing it, because I get the same result whether accessing the share from Linux or Windoze. I can still access the folder this way, but it would be nice to not have Samba mangle the folder name this way. I am using Samba 3.4.2 on an Athlon64 X2 system running Slackware64.
In the past week or so I've noticed some weird network behaviour. I find accessing some sites such as Amazon, Paypal, and Bigstockphoto really slow. Sometimes the page will not load at all. Other sites are fine. The problem sites are not a problem for others on my LAN at home. When I try to open the problem sites, I can see in Firestarter blocked connections coming from 2.1(8/9).xxx.xxx on various ports such as 36007. This only happens for the problem sites. I attached a typical output from firestarter.
This happens with Firfeox or Chrome. Using Ubuntu 10.10
everytime if more that 10-15 people using internet at same time squid proxy slow to responde everyweb just keep loading and here my squid proxy settings 1 nic squid proxy 2.7 stable 9 ubuntu 64bit intel duo core
In my college many proxy : port (like 144.16.192.245:8080)are using to get Internet connection, performance of each proxy changes, how can i decide which one is working well at particular time. is there any way to switch over them automatically?