由 bulebell2222 在 05-21-2003 20:52 发表:
我用iptables设计防火墙遇到一些难题:
我用iptables设计防火墙遇到一些难题:
我是这样做的:for f in /proc/sys/net/ipv4/conf/*/accept_redirects; do
echo 0>$ f
错误显示如下:/proc/sys/net/ipv4/conf/*/accept_redirects:no such of file or directory
iptables -A INPUT -i eth1 -s
1<address mask=""> -j DROP
2
3错误显示如下:address/mask:no such of file or directory
4
5iptables -A INPUT -i eth1 -p icmp -s 0.0.0.0 --sport 4 -d 192.168.19.41 -j ACCEPT
6
7错误显示如下:unknown arg'--sport'
8
9iptables -A OUTPUT -i eth1 -p icmp -s 192.168.19.41 \
10
11fragmantation-needed -d 0.0.0.0 -j ACCEPT
12
13错误显示如下:bad argument 'fragmantation-needed'
14
15iptables -A OUTPUT -i eth1 -p tcp --syn -s 192.168.19.41 -d 0.0.0.0 \
16
17\--dport 1080 -j REJECT
18
19错误显示如下:iptables :no chain/target/match by that name
20
21iptables -A OUTPUT -o eth1 -p udp -d 0.0.0.0 \
22
23\--dport 2049 -j REJECT
24
25错误显示如下:bad argument ' '
26
27\--dport:command not found
28
29iptables -A OUTPUT -i eth1 -p tcp -s 192.168.19.41 --sport 1024:65535 \
30
31-d 0.0.0.0 --dport 210 -j REJECT
32
33错误显示如下:command not found
34
35iptables -A OUTPUT -i eth1 -p udp -s $BROADCAST_0 --sport 68 \
36
37-d $BROADCAST_0 -dport 67 -j ACCEPT
38
39错误显示如下:bad argment "68"
40
41iptables -A INPU</address>