Re: iptables

From: Keith Keller (kkeller-usenet_at_wombat.san-francisco.ca.us)
Date: 09/09/05


Date: Thu, 8 Sep 2005 15:49:43 -0700

On 2005-09-08, kenz <kenlec@gmail.com> wrote:
> is anyone know iptables can bind with time like squid to control the
> time of surfing ??

iptables itself can't, but cron can. Just write two firewall scripts:
one to block ''surfing'', one to allow it. Then put into crontab,
something like so:

# let folks browse starting midnight
0 0 * * * /path/to/firewall.browsingOK
# cut off browsing starting 12:01am
1 0 * * * /path/to/firewall.browsingBad

--keith

-- 
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information


Relevant Pages

  • Re: iptables+squid+dhcp+USER_AUTHENTICATION
    ... >iptables (for transparent proxy and to route non-http traffic) ... >if i only use squid then i can provide user authentication, ... requires the extra control. ...
    (comp.os.linux.security)
  • Re: Firewall software for linux
    ... >>meaning it can't control traffic on application level. ... >(viruses, trojans and spyware) that plagues Microsoft products. ... >I'm not saying there aren't any viruses, etc. for Linux, ... >If you're serious about application control for Iptables, ...
    (comp.security.firewalls)
  • Re: Using Squid
    ... way we can use squid. ... Can we control Telnet, FTP and SSH access using squid ... I know we can accomplish this using iptables in linux, ... Squid doesn't listen for telnet/ssh connections, it doesn't listen for ICMP packets, it doesn't listen on UDP ports, it doesn't listen for mail traffic. ...
    (comp.os.linux.misc)
  • Re: 56k dial up on laptop 802.11G ?
    ... Iptables is a packet filter that can stop inbound and outbound. ... NAT and SPI to be a device that's a network FW. ... It doesn't control traffic flow by using ...
    (alt.internet.wireless)
  • Re: Should read: Java bindings for NetFilter
    ... > maybe try working with rulesets for iptables. ... They're also easy to parse ... > and aren't "painfully slow". ... control. ...
    (comp.lang.java.programmer)

Quantcast