
February 22nd, 2002, 12:13 AM
|
|
Contributing User
|
|
Join Date: Dec 2001
Location: entlegen
Posts: 442
Time spent in forums: < 1 sec
Reputation Power: 7
|
|
|
why this rule ( IPCHAINS ) is error???
man ipchains and set up some rules for testing according to text.
Quote:
#!/bin/sh
clear
/sbin/ipchains -L
/sbin/ipchains -F
/sbin/ipchains -P forward REJECT
...
...
....
MY_IP = "192.168.1.199"
EXT="eth0"
/sbin/ipchains -A input -i eth0 -p tcp -d $MY_IP 80 -j DENY -l
/sbin/ipchains -A input -p tcp -s 0/0 -d eth0 23 -j ACCEPT # accept any IP to port 23
/sbin/ipchains -A input -p tcp -s 0/0 -d $EXT 23 -j DENY # deny any IP to port 23 |
error msg: ry `/sbin/ipchains -h' or '/sbin/ipchains --help' for more information and I do this according to text for experiment.
the last four stmts are all error while all other stmts are ok?
I watch carefully myself and see no error, correct me please!!!!!!
__________________
regards,
wish to use AT 89c51 single chip computer to do remote sensing and send the data back from woods to office via nokie 3330 and internet. HOW?
first I must revise C program thro' example, what's next?
Last edited by pentium5 : February 22nd, 2002 at 12:24 AM.
|