Writing firewall rules with iptables
- From: bzaman.laskar@xxxxxxxxx
- Date: 27 Feb 2007 01:59:52 -0800
Hi All,
I am writing firewell rules using iptables to allow icmp traffic
from 211.xxx.117.211 to
211.41.125.4 and vice versa . For this I have written rule 2 and
3. But after writing the rule
I cannot ping from either ends. But if I stop the firewall , it
pings . That means the network
is O.K but there is some problem with the rules that I have
written .
Please tell me how to write the rule correctly.
[root@localhost ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 127.0.0.1 0.0.0.0/0
ACCEPT icmp -- 211.xxx.117.211 211.41.125.4
ACCEPT icmp -- 211.41.125.4 211.xxx.117.211
ACCEPT icmp -- 211.xxx.117.0/24 211.xxx.117.211
ACCEPT tcp -- 211.xxx.117.0/28 211.xxx.117.211 tcp dpt:
22
ACCEPT udp -- 211.xxx.117.211 211.41.99.3 udp dpt:
53
ACCEPT udp -- 211.41.99.3 211.xxx.117.211 udp spt:
53
ACCEPT tcp -- 211.xxx.117.211 0.0.0.0/0 tcp dpt:
80
ACCEPT tcp -- 0.0.0.0/0 211.xxx.117.211 tcp spt:
80
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-
with icmp-port-unreachable
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (0 references)
target prot opt source destination
With Thanks.
.
- Follow-Ups:
- Re: Writing firewall rules with iptables
- From: John-Paul Stewart
- Re: Writing firewall rules with iptables
- Prev by Date: Re: suse supports windows key
- Next by Date: Re: creating a backup box, need lots of disk
- Previous by thread: Hey all
- Next by thread: Re: Writing firewall rules with iptables
- Index(es):
Relevant Pages
|