[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: IPTABLES doesn't work
- From: Luciano Miguel Ferreira Rocha <strange nsk no-ip org>
- To: fedora-list redhat com
- Subject: Re: IPTABLES doesn't work
- Date: Thu, 29 Jan 2004 21:58:21 +0000
On Thu, Jan 29, 2004 at 01:34:34PM -0800, smoothmilk wrote:
> anything? I dont understand how it just flat out doesn't work. I have no
> idea how iptables works, and because there's no documentation out there
> for beginners who just want a script that's for eth0 with a simple www,
> ssh and ftp server(s), Im stuck using rh's tools, which don't do
> anything. there's no security here.
Shameless plug: http://strange.nsk.pt/mine/ipconf
Or a simple script:
#! /bin/sh
/sbin/modprobe ip_conntrack_ftp &> /dev/null
/sbin/iptables -F
/sbin/iptables -X
/sbin/iptables -P FORWARD DROP
/sbin/iptables -P INPUT DROP
/sbin/iptables -P OUTPUT ACCEPT
/sbin/iptables -A INPUT -p all -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A INPUT -p IMCP -j ACCEPT
/sbin/iptables -A INPUT -p TCP --syn --dport http -j ACCEPT
/sbin/iptables -A INPUT -p TCP --syn --dport ssh -j ACCEPT
/sbin/iptables -A INPUT -p TCP --syn --dport ftp -j ACCEPT
/sbin/iptables -A INPUT -p TCP --syn --dport ftp-data -j ACCEPT
Regards,
Luciano Rocha
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]