Re: IPTables won't start

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

 



If you use the iptables service you must define your rules defined in /etc/sysconfig/iptables. You can edit some defaults in /etc/sysconfig/iptables-config.

Otherwise you can make an shell-script which loads the rules. Quick example:
=================
#!/bin/sh

echo

echo "Loading some modules"
/sbin/modprobe ip_conntrack
/sbin/modprobe ip_nat_ftp
/sbin/modprobe ip_conntrack_ftp

echo

echo "Deleting all existing rules"
iptables -F
iptables -t nat -F

echo

echo "chain defaults"
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

# HTTP
iptables -A INPUT -p 6 -s 0/0 -d 1.2.3.4--dport  80 -j ACCEPT
iptables -A INPUT -p 6 -s 0/0 -d 1.2.3.4--dport 443 -j ACCEPT

=================

You can just execute this script to load the firewall... check with "iptables -L".

Goodluck,

Joost Waversveld

On 1/18/06, Chris Norman <cnorman@xxxxxxxxxxxxx> wrote:

Hi,
The subject says it all really. I can't get IPTables to start.

Neither the command "service iptables start" or "/etc/init.d/iptables
start"
does anything.

Can anyone help please?

Cheers,

Chris Norman
<!-- chris.norman4@xxxxxxxxxxxx -->


To my knowledge, iptables is not a service, but a part of the kernel. Why do
you think that it is not working?

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list




--
As a boy I jumped through Windows, as a man I play with Penguins.




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

  Powered by Linux