SCIENTIFIC-LINUX-USERS Archives

May 2012

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tam Nguyen <[log in to unmask]>
Reply To:
Tam Nguyen <[log in to unmask]>
Date:
Fri, 11 May 2012 16:31:21 -0400
Content-Type:
multipart/alternative
Parts/Attachments:
text/plain (1047 bytes) , text/html (1476 bytes)
Hi Christopher,
-You can ALLOW vs. DENY, REJECT using /etc/sysconfig/iptables rules.

-You can also, in the httpd.conf file, under the directives *Order
allow,deny*, you can specify allow or deny access to ip address

To deal with DHCP or IPs change, you should research RARP on how to request
IP address from Physical address.  Then you will have to come up with a
script that will updated your server.

Good luck


On Fri, May 11, 2012 at 3:33 PM, Christopher Tooley <[log in to unmask]> wrote:

> Hello All,
>
> I've been requested to whitelist websites for a local user here,
> apparently the internet is extremely distracting for work, save for certain
> sites - has anyone done something like this before? I know I could put IPs
> and website addresses in /etc/hosts, but I don't want to have to fix the
> hosts file whenever IPs change.
>
> This will be entirely for one computer.
>
> The only thing I can think of is to have a cron script that will
> periodically update the /etc/hosts file with the correct IPs and addresses
> - any other suggestions?
>
> Thanks,
> -Chris
>


ATOM RSS1 RSS2