sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #17993
Tidsbegrænsning på ppp0 eller Opsætning af diald
Hejsa.
Jeg arbejder i en fritidsklub hvor jeg har sat en linux box op som
router og proxy og med pppd (Demand Dialing)
Problemet er at internet skal være begrænset så man kun kan surfe i
visse tidsrum. F.eks.
Mandag - Onsdag + Søndagkl. 19:00 - 22:00
Torsdag kl. 19:00 - 00:00
Jeg har prøvet at sætte det op i /etc/crontab med "ifup ppp0" og "ifdown
ppp0". Men problemet er at maskinen nogle gange kan være lukket ned, så
jeg satte den til at køre "ifdown ppp0" hvert 5 minut fra F.eks
19:00-22:00 og "ifup ppp0" hvert 5. min i den resterende tid. Men hvis
man kører "ifup ppp0" to gange i træk starter ppp0 på interfacet ppp1 og
ppp2 osv.
Jeg har fusket lidt med diald-0.99.2 som burde klare problemet men jeg
får bare en masse fejlbeskedder.
Output fra syslog:
----------------SNIP--------------------
Feb 2 00:18:42 incubuz last message repeated 2 times
Feb 2 00:18:52 incubuz modprobe: can't locate module tap0
Feb 2 00:18:52 incubuz modprobe: can't locate module tap1
Feb 2 00:18:52 incubuz modprobe: can't locate module tap2
Feb 2 00:18:53 incubuz modprobe: can't locate module tap3
Feb 2 00:18:53 incubuz modprobe: can't locate module tap4
Feb 2 00:18:53 incubuz modprobe: can't locate module tap5
Feb 2 00:18:53 incubuz modprobe: can't locate module tap6
Feb 2 00:18:53 incubuz modprobe: can't locate module tap7
Feb 2 00:18:53 incubuz modprobe: can't locate module tap8
Feb 2 00:18:53 incubuz modprobe: can't locate module tap9
Feb 2 00:18:53 incubuz modprobe: can't locate module tap10
Feb 2 00:18:53 incubuz modprobe: can't locate module tap11
Feb 2 00:18:53 incubuz modprobe: can't locate module tap12
Feb 2 00:18:53 incubuz modprobe: can't locate module tap13
Feb 2 00:18:54 incubuz modprobe: can't locate module tap14
Feb 2 00:18:54 incubuz modprobe: can't locate module tap15
Feb 2 00:18:54 incubuz kernel: SLIP: version
0.8.4-NET3.019-NEWTTY-MODULAR (dynamic channels, max=256) (6 bit
encapsulation enabled).
Feb 2 00:18:54 incubuz kernel: SLIP linefill/keepalive option.
Feb 2 00:18:54 incubuz diald[16473]: start sl0: SIOCSIFMETRIC:
Operation
not supported
------------SNIP-----------
Den ser ud til at virke noglelunde aligevel men jeg ville blive glad
hvis jeg kunne få hjæp til diald som jeg ville foretrække p.g.a. de
mange muligheder.
M.V.H.
Morten Larsen