Server :: Allow Access To Specific Files Only?

May 12, 2011

I want to restrict the type of files that can be accessed on my web server.For example only flash movies (SWF files) and one specific PHP file.I can think of a number of ways of doing this:1. Linux file permissions, but since the SWF files need to access various PHP files and those PHP files need access to other files themselves that may not work.2. Using mod_rewrite if that is possible, I don't know as I have never used it.

View 1 Replies


ADVERTISEMENT

Server :: Allow Specific IP To Access A Download On Squid?

Feb 28, 2010

i have been studying linux for 3 month ,so i have solved some problems related with server part.The problem i have is the squid access.Can I allow some IP's to download files on squid.I mean i already give access to download by reply_body tag,andwant to give permission only one specific IP for unlimit access to download.Is there any solution

View 3 Replies View Related

Server :: Internet Access Only For Specific IP Addresses In LAN

Feb 20, 2010

I have configured squid server and it is working fine. I want that only specific ip addresses in my LAN should be able to access internet and for that I have given these entries in access control lists in squid.conf file:

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
acl QUERY urlpath_regex cgi-bin ?
acl apache rep_header Server ^Apache
acl our_networks src 192.168.0.181/255.255.255.0 192.168.0.182/255.255.255.0

And in http access I have given this:
http_access allow our_networks
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all

In this I want that only 192.168.0.181 and .182 should be able to access internet but Now the problem is that all the IPs in the LAN like 192.168.0.20 are also able to access internet. What changes I need to do to allow access to specific IP addresses. I am not using any firewall or iptables entries and i am manually changing in the firefox at client side to access internet.

View 3 Replies View Related

CentOS 5 Server :: Allow Only Specific LDAP Group Access?

Apr 26, 2010

I've several servers (windows+linux) that authenticate to an LDAP server. There is one machine that I would like to allow only certain groups from LDAP server to have access and I am not sure where to start.

If that cannot be done, is it possible to disable LDAP root user to access these machines?

View 4 Replies View Related

Security :: Iptables - Limit Access To Port 8443 On Server To 2 Specific IP Addresses

Dec 23, 2010

I'm trying to limit access to port 8443 on our server to 2 specific IP addresses. For some reason, access is still being allowed even though I drop all packets that aren't from the named IP addresses. The default policy is ACCEPT on the INPUT chain and this is how we want to keep it for various reasons I wont get into here. Here's the output from iptables -vnL

[Code]...

Note the actual IP we are using is masked here with 123.123.123.123. Until I can get everything working properly, we're only allowing access from 1 IP instead of 2. We can add the other one once it all works right. I haven't worked with iptables very much. So I'm quite confused about why packets matching the DROP criteria are still being allowed.

View 10 Replies View Related

Programming :: Search A Bunch Of Files In A Specific Folder For A Specific Number?

Jul 24, 2010

I need to search a bunch of files in a specific folder for a specific number and add all the numbers together to a total sum. I use Rsync everyday, everytime I run rsync i get a logfile (rsync output) witch contains the textstring "Total bytes sent: xxxxxx".

The "xxxxx" can vary in lenght. I need to extract the "xxxxxx" from each file and add the numbers together to a total size over a week or a month. Is this possible? And I wish to only use bash. One way of doing stuff at a time my friends .

View 5 Replies View Related

Server :: Create A File From Two Files With Specific Search Conditions?

May 5, 2010

I need to create a report ,

The data is spread across two files in below format,

File 1
=========
<Class Name1>
Ph: 001
Place: place001
</class>

[Code]....

View 4 Replies View Related

OpenSUSE Network :: Setup An Apache Server On Computer Which Will Allow Browsing Of Files In A Specific Directory And Subdirectories?

Jun 13, 2011

I'm trying to setup an Apache server on my computer which will allow browsing of files in a specific directory and subdirectories, without needing any sort of authentication.

I've got the Apache2 server up and running through yast, and everything works fine as long as I try to point it to the /www/htdocs folder. However, I want to point it at another folder, which is on another partition. This partition is formatted as NTFS, if that matters at all (here's some background on some permissions issues I had with the NTFS partitions recently).

When I change the "Directory" setting in the Yast http server configuration utility to the directory on the NTFS partition I wish to use, attempting to access the server results in the following error:

Code: Access Forbidden: You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster.

Error 403
192.168.1.100
Mon Jun 13 23:43:29 2011
Apache/2.2.17 (Linux/SUSE)

View 4 Replies View Related

Server :: Sendmail: Block Specific Sender To Specific Recipient?

Oct 1, 2009

I'm trying to configure our mail server to block email from a specific sender reaching a specific recipient. In other words, if one of our employees is getting harassed by a 'stalker', how would one go about blocking, at the MTA (Sendmail) level, a specific sender email address from reaching a particular users inbox? We do not want to capture the email - simply block it before it consumes server resources.The Sendmail server (MTA) is a front end to our Exchange server so no user accounts exist on the Linux server. We simply use it as a SPAM and Virus scanner then forward clean email to the Exchange server.

View 6 Replies View Related

Server :: Redirect Specific Ip To Specific Web Page?

Jul 1, 2009

I configure squid to work with squidGuard , and all thing work properly , but there is problemfirst look to this squidGuard.confdhhome /usr/local/squidGuard/dblogdir /usr/local/squidGuard/log

src blacklist {
ip 10.0.0.5
}

[code]...

View 1 Replies View Related

Server :: Server With NFS Configured Would Be Able To Access Files By MAC Clients?

Dec 29, 2010

if I use Linux File server with NFS Configured, Can MAC clients (workstations) access the files on Linux server over the LAN network

View 7 Replies View Related

Server :: Remote IP To Access Various Files?

Nov 27, 2010

I have a computer set up running an apache httpd server with the basic LAMP functionality. I logged into the server today and noticed numerous attempts by a remote IP to access various files on my server.

Code:
[Fri Nov 26 07:37:56 2010] [error] [client 72.167.161.46] File does not exist: /var/www/html/phpMyAdmin-2.8.1-rc1
[Fri Nov 26 07:37:56 2010] [error] [client 72.167.161.46] File does not exist: /var/www/html/phpMyAdmin-2.8.1
[Fri Nov 26 07:37:57 2010] [error] [client 72.167.161.46] File does not exist: /var/www/html/phpMyAdmin-2.8.2
[Fri Nov 26 07:37:57 2010] [error] [client 72.167.161.46] File does not exist: /var/www/html/sqlmanager

[Code]...

There are many many more lines similar to this but its obvious that a remote host was attempting to run my phpmyadmin page and gain access. My question is that since I'm a novice at running httpd what sort of things should I be looking out for in regards to security and configuration to prevent any attacks or is this common and should just be ignored? I do run phpMyAdmin on the server and have configured MySQL to not have blank passwords or user accounts. The database had no new changes to it so I doubt they actually accessed it.

View 6 Replies View Related

Ubuntu Servers :: Access To Web Server Files ?

Jul 24, 2011

I'm new to Linux and have taken over at a company where the linux admin walked out. he has several older linux based servers running version 8.1 i tried running the command sudo apt-get install swat xinetd to setup swat but i get an error that it can't find the package. in addition, this directory xinetd is no where to be found under the etc directory. i've verified that samba is in fact installed on these servers but for some reason the xinetd and inetd directories are not on these servers.

Could it be possible that this older version of linux does not support Swat? i'm considering upgrading very soon to the latest but my main problem right now is i need to copy all web server html files that he had on the web Server i know there are different ways to copy files from linux systems but need the best way to copy all the files so none of the website links get broke off this linux server over to my windows server.

Since i don't have access to anything of the directories nor files on the web server, what is the best way to copy these files and folders off this server?

View 7 Replies View Related

Server :: Access The Log Files For Multiple Websites?

Apr 1, 2010

I have managed to configure AWstats to work from one server to access the log files for multiple websites on multiple servers and even managed to write a little front end php site to access all the different conf files. I want to know if there is a way of combing two conf files for the same site but are on two different servers in a loadbalanced situation. so my conf files look something like: [URL].. I have to monitor bandwidth for our websites and its gets tedious switching between the various conf files for the same site and totaling it up so I was hoping I could combine the output of both conf files on screen using some funky command in the awstats.pl script

View 1 Replies View Related

Server :: Access Samba Shared Files

Feb 11, 2010

I have installed samba server one month ago and it was working fine till yesterday but today morning when any network client is trying to access samba shared files by giving smb://<serveripaddress> it is asking for password...that is ok but when he is giving the password it is again opening the same password window to enter password again.The clients are giving correct password that is confirm. At the server side i have run smbclient -L localhost -U% and that is giving proper response so that also means that samba server is working fine so i dont know what could be the problem and what its solution.

View 7 Replies View Related

OpenSUSE Network :: Access Files On Windows Server

Jan 19, 2010

i work in an office with individual p/c's (all with windows xp) connected to a windows server. i have installed opensuse 11.2 on my work's p/c (as a dual boot) but have no idea what to do so that i can access files on the windows server. can some kind person point me in the right direction.

View 3 Replies View Related

Ubuntu Networking :: Access Files On Windows Server - VPN

Mar 2, 2010

My company runs a Windows server. I can connect remotely via a very slow desktop emulator program in VirtualBox or I can just VPN and access whatever files I need. #2 is the preferred option.

So far I have officially setup the VPN and everything. It logs in. It gives me the little lock symbol above the Network Manger icon. I'm connected!

But...

How do I actually access the darn files available via the VPN? We keep most files on a single server for the company. Internally, it looks something like "//Bob/Folder/". At the office I have the shortcut set to the "folder" portion of the above since that's where things are located.

I'm not seeing anything related to the VPN in Nautilus, under Network... squat. I've tried several methods of using the "Places > Connect to Server" function while setting it to "Windows Share" as well. Honestly, I'm unsure if this is appropriate nor what to put in the fields (Server, Share, Folder, User Name, Domain Name) if this is the right place to be.

View 4 Replies View Related

Ubuntu Networking :: Access Files On Server Remotely?

Mar 27, 2010

I have a Linux server and a static IP address. I want to access data on my server remotely using this IP address. How do I do it?

View 3 Replies View Related

Ubuntu Networking :: Sharing Internet Access And Local Files/server

Jan 16, 2011

i would like to setup one of my old pcs as a file server and internet gateway; we are living in a large building shared with 40 others. the ubuntu box would be the one connected to the internet via ethernet and sharing connexion via wifi. i haven't started yet - presently, i am doing the ground work and reading before to start i understand sharing the internet is relatively simple and can be done from the GUI

What we would like is slightly like BT Fon or BT Open Zone in the UK: you can hook on a free network but in order to access outside (internet: email, web, ftp, etc) you need to login login would help us monitor fair usage. I imagine something with username and password for each user would do: as we are a few in the same building not everyone is actually paying for the connection and we don't want to end up with rather large excess bills. So the ones who are paying access both files and internet; those who dont just have access to the files on the local server.

Do i need Ubuntu server to set this up? What hardware would be ideal - given we are all far from rich but willing to have a nice setup

It would be great if you could share some knowledge around the topic and eventually provide some tutorial; also any heads-up on the hardware side would be great! (signal booster, etc - there's 3 floors and 3 buildings)

View 1 Replies View Related

General :: Connect And Access Files Remotely To Samba Server Over Internet

May 31, 2010

I have a server at home running as a file server and DHCP connected to a switch with a wireless AP in there as-well. with this setup I can access the files and do some configurations via SSH on the actual server anytime I'm able to get the wireless signal, now lately I felt the need to be able to do the same but this time over the internet. I've read somewhere already that I'm gonna need a router with port forwarding and NAT, then know the IP address of the server but my problem is once you start talking about routers then you need broadband connection which is something I don't have. Getting a router is not much of a problem but without ADSL like connection I guess its useless, what do I need to do?

View 7 Replies View Related

General :: Access Windows Files And Folders From Enterprise System Server?

Sep 17, 2009

I am new to Linux.I have installed dual boot, XP(NTFS) and Enterprise Linux Server on same desktop.Now how can I access windows files & folders from Enterprise Linux Server?

View 4 Replies View Related

General :: Share Files In System Server And Access Them From Windows Xp Machine?

Aug 18, 2009

I have 30 systems in a LAN . My users need to login as domain user from their XP clients and store their files in the Linux server. They should not be allowed to store in local machine and also should be granted a particular size of space in server.

what are the procedures to be done in linux server and

just like in windows we access shared files in by typing in run command

\192.168.0.1 is there a provision to view shared files from xp to Linux

View 5 Replies View Related

Security :: Access Dom0 Files During Vsftpd Server From DomU During Ftp Client

Aug 24, 2010

I have CentOS 5.5 distribution with Dom0 and DomU installed. I try to access Dom0 files during vsftpd server from DomU during ftp client. I successfully login with root and simple user, but when I try to list (or cd to some directory) in user home the SELinux prevent it from me. I get this in audit.log:

[Code]....

View 2 Replies View Related

Server :: NFS Export Giving A Computer Access To Root-owned Files?

Oct 8, 2009

Yes, I know this is not a good practice, and this is only a short-term solution.I have a server with a web-file-server daemon running internally as root, so the permissions for all files it transfers/creates have a uid/gid of 0:0.This is fine for the daemon, but I would like to manage those files from another workstation - actually a few workstations on a very limited LAN subnet - through NFS. How would it be possible to have users from a certain subnet mount NFS with root read/write abilities?I have seen the anonuid/anongid options (for the /etc/exports file), but I'm not so sure this is the right way to go.

View 5 Replies View Related

Software :: Configure Samba Server To Access System Files From Windows?

Oct 12, 2010

I am new to Linux and want to setup Samba server in my CentOS 5.3. I have downloaded samba server from yum repository with command

yum install samba

I then followed the steps which i got by some googling on

http://crazytoon.com/2007/05/22/samb...centos-fedora/

this site which contains steps like code...

How to resolve it ?

View 5 Replies View Related

Ubuntu Servers :: Setting SAMBA Server Correctly - Can Only Access Files From The Win 7 Machine

May 31, 2010

Im having trouble setting my SAMBA server correctly. I have two Win machines, one with WIN7 and one with XP. I have one Ubuntu machine and Ubuntu Server 10.04. My problem is that I can only acess files from the Win 7 Machine. When I try to map out the shared dirs on my serverI get asked for user and password, when I enter my creditensials it dosent help.. What to do? I used the sample smb.conf file and open for no restrictions..

[Code]....

View 9 Replies View Related

General :: Can't Edit Files While Using Ssh To Remotely Access Linux Server From A Windows Comp?

Oct 9, 2010

I can ssh to the server but it wont allow me edit files, even though I have basic text editors like gedit and notepad installed on my windows computer. Anyone have an idea what the problem is? (I get an error message like this-(gedit:23978): Gtk-WARNING **: cannot open display

View 3 Replies View Related

Networking :: Firewall Access For A Specific Mac Address?

Jan 6, 2010

I have my firewall setup so that only specific subnets/IP addresses can access the system. My issue is that I have remote user/laptop who needs to access the system, but is constantly on a different subnet/dhcp IP address. Is there configuration for iptables where I can enter the mac address of the laptop to allow access to the system and not specify a subnet or IP address?

View 3 Replies View Related

Fedora :: Disable Access Time Specific FOLDERS?

Apr 27, 2011

Can anyone shed some light in this? Using Fedora 14-64, new install, 185 Opteron x 2 gig ram, sata hard drives formatted Ext4.However, in my home directory I have a folder for all my digital photos of which I have more than 20,000, and in another folder I have images and clipart of which I have almost 8,000. That is a lot of read only access to a significant number of files in my home directory.

How can I tell Fedora to not update the LAST ACCESS TIME of those files (specifically images) that will never actually be changed other than just being read. I want to leave that feature enabled for the rest of my home directory. I am trying t; improve my disk performance in Nautilus because whenever I access the folders with my images the system literally slows to a crawl and sometimes even the mouse stops working for several minutes until Nautilus has finished having its heart attack.

View 6 Replies View Related

OpenSUSE Network :: Can't Access Specific Domains After Some Time

Nov 26, 2009

I am using openSUSE 11.2 and had the same issue once before in openSUSE 11.1 After some time, two domains I use very often can't be accessed any more, these are: Google and [URL]... (am doing some OO development recently). At the time where I write this post, only these two are "blocked".

When I try to access these two domains using Firefox, w3m or telnet, it tries to open the connection forever. Ping works fine. I tried opening the IP directly in the browser, but same problem, the connection never reaches. I know it's not a router issue, as the other computers can access these domains. Still, I tried to restart the router, but the issue persists. I tried restarting the network service (/etc/init.d/network stop + start), also nscd, without success. The only way I found to make it work again is to reboot. This problem reappears from time to time, after using the computer for a long time, and accessing these domains a lot of times. Note that I also use suspend to disk, so the "blocked" state is kept after resume. Only reboot "cures" it.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved