Problema pe care ai putea-o avea ar fi ca fix la ora la care se insereaza regula sa fie masina oprita... dar si asta se poate rezolva printr-un script de initializare bine scris.
Patrascu Eugeniu wrote:
On Thu, 2003-02-13 at 09:33, cristi wrote:Cum pot bloca un port intre anumite ore ale zilei?firewall?Daca se poate...
patch-ul il gaseste in patch-o-matic http://www.netfilter.org/files/patch-o-matic-20030107.tar.bz2
CONFIG_IP_NF_MATCH_TOS
TIME patch support
CONFIG_IP_NF_MATCH_TIME
This option adds a `time' match, which allows you
to matchbased on the packet arrival time
(arrival time at the machine which the netfilter is running on) or
departure time (for locally generated packets).
If you say Y here, try iptables -m time --help for more information.
If you want to compile it as a module, say M here and read
Documentation/modules.txt. If unsure, say `N'.
Example:
-A INPUT -m time --timestart 8:00 --timestop 18:00 --days
Mon,Tue,Wed,Thu,Fri
will match packets that have an arrival timestamp in the range
8:00->18:00 fro
m Monday
to Friday.
-A OUTPUT -m time --timestart 8:00 --timestop 18:00 --Days Mon
will match the packets (locally generated) that have a departure
timestamp
in the range 8:00->18:00 on Monday only.
--
Pentru dezabonare, trimiteti mail la [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
