iptables
Patrick Derwael
pderwael at webandco.be
Fri Sep 15 12:08:47 UTC 2006
Hi list,
I need some help with iptables. I'm trying to block every access to one
RHEL4 box (x.y.z.218), except from 9 IPs (x.y.z.211-219).
Every port from the allowed range should reach x.y.z.218
I've setup the following rules:
iptables -F
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -s x.y.z.211 -j ACCEPT
...
iptables -A INPUT -s x.y.z.219 -j ACCEPT
With those rules, just everything is dropped, even connections coming from
the authorized range.
What am I doing wrong here ??
--
Web and Co
Patrick Derwael
Rue Hubert Larock, 20
4280 Hannut
email: pderwael at webandco.be
http://www.webandco.be
More information about the redhat-list
mailing list