IPTables won't start
Joost Waversveld
joost at waversveld.nl
Wed Jan 18 08:58:39 UTC 2006
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 at rnibncw.ac.uk> 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 at ntlworld.com -->
>
>
> 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 at redhat.com
>> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>>
>
>
>
> --
> As a boy I jumped through Windows, as a man I play with Penguins.
>
More information about the fedora-list
mailing list