Re: IPTABLES doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux