LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Firewall (https://www.linuxquestions.org/questions/slackware-14/firewall-877681/)

Shao Lung 04-28-2011 02:30 PM

Firewall
 
Well I have apache and mysql set up and just thought about a fire wall, back in the day i used to use firestarter, I think that was about slackware 9. I am not very good at iptables though I do understand it is the way to go. If anyone knows an easy way to set up iptables (for dummies) or know of a good firewall for slackware 13.1, I would appreciate the help. I am sure after many hours of reading I could probably start to build some Iptables but I am just not secure enough in my abilites, currently.
I have done some research on the forums, but I want to make sure the information I am getting is up to date.

Thank you in advance to all helpful replies.

P.S. I really like the slackware community. It is one of the reasons I use it. Everyone here has no problems lending a hand to help out, those who have done their research.

GazL 04-28-2011 02:34 PM

Give Alien Bob's firewall generator a try. ( a lot of good stuff on Eric's site! :) )

http://connie.slackware.com/~alien/efg/

Daedra 04-28-2011 02:35 PM

Try using Alien Bob's firewall generator for slackware

http://connie.slackware.com/~alien/efg/

---------------
GazL Beat me to it, lol ;)

GazL 04-28-2011 02:39 PM

lol. close one there. Could have gone either way daedra. ;)

Shao Lung 04-28-2011 02:49 PM

Well I noticed that firewall generator, and just wanted to be sure, so of course I took the unanimous advice ;) set up using the script copied the generated script, chmod +x firewall after naming my script firewall, then ran firewall. whoa errors comming out the yin yan.
perhaps it was my chmod ???
Code:

Loading kernel modules ...
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
WARNING: Error inserting nf_conntrack (/lib/modules/2.6.33.4-smp/kernel/net/netfilter/nf_conntrack.ko): Operation not permitted
FATAL: Error inserting nf_conntrack_ipv4 (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/nf_conntrack_ipv4.ko): Operation not permitted
WARNING: Error inserting nf_conntrack_ftp (/lib/modules/2.6.33.4-smp/kernel/net/netfilter/nf_conntrack_ftp.ko): Operation not permitted
WARNING: Error inserting nf_defrag_ipv4 (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/nf_defrag_ipv4.ko): Operation not permitted
WARNING: Error inserting nf_conntrack_ipv4 (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/nf_conntrack_ipv4.ko): Operation not permitted
WARNING: Error inserting nf_nat (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/nf_nat.ko): Operation not permitted
FATAL: Error inserting nf_nat_ftp (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/nf_nat_ftp.ko): Operation not permitted
FATAL: Error inserting nf_conntrack_ftp (/lib/modules/2.6.33.4-smp/kernel/net/netfilter/nf_conntrack_ftp.ko): Operation not permitted
FATAL: Error inserting nf_conntrack_irc (/lib/modules/2.6.33.4-smp/kernel/net/netfilter/nf_conntrack_irc.ko): Operation not permitted
error: permission denied on key 'net.ipv4.tcp_syncookies'
error: permission denied on key 'net.ipv4.conf.all.rp_filter'
error: permission denied on key 'net.ipv4.icmp_echo_ignore_broadcasts'
error: permission denied on key 'net.ipv4.conf.all.accept_source_route'
error: permission denied on key 'net.ipv4.conf.all.secure_redirects'
error: permission denied on key 'net.ipv4.conf.all.log_martians'
Flushing Tables ...
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `mangle': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `mangle': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `mangle': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `mangle': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Create and populate custom rule chains ...
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Process INPUT chain ...
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Process FORWARD chain ...
Process OUTPUT chain ...
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
FATAL: Error inserting ip_tables (/lib/modules/2.6.33.4-smp/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.4.7: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Load rules for nat table ...
Load rules for mangle table ...
bash-4.1$


Gerard Lally 04-28-2011 02:58 PM

Quote:

Originally Posted by shao Lung (Post 4339766)
bash-4.1$

You tried to start the firewall script as a non-root user?

Shao Lung 04-28-2011 02:58 PM

Alright I redid the firewall script from the given site, renamed it, ran it as su,,, no errors,,, so fixed thanks everyone.
Lesson learned run firewall as su. lol ;)

GazL 04-28-2011 03:05 PM

If you put the script in /etc/rc.d/rc.firewall then it'll be run on every boot automatically for you.

Shao Lung 04-28-2011 03:08 PM

Quote:

Originally Posted by GazL (Post 4339782)
If you put the script in /etc/rc.d/rc.firewall then it'll be run on every boot automatically for you.

hot dang I was gonna build a script to run it. but that is even better. Much appreciated.

mRgOBLIN 04-28-2011 07:25 PM

You'll also need to make it executable... just sayin ;)

Shao Lung 04-28-2011 08:54 PM

Quote:

Originally Posted by mRgOBLIN (Post 4340028)
You'll also need to make it executable... just sayin ;)

or reboot the machine ??

mRgOBLIN 04-29-2011 07:44 PM

I should explain a little better I think.

For the /etc/rc.d/rc.firewall script to be run at boot time it needs to be set executable or it will not be started.

Code:

chmod +x /etc/rc.d/rc.firewall
You can use that script to start it manually too (without the need to reboot) but a reboot is a good test to be sure it's working as expected.

Code:

iptables -vnL
will confirm that.

Shao Lung 04-29-2011 07:55 PM

Quote:

Originally Posted by mRgOBLIN (Post 4341388)
I should explain a little better I think.

For the /etc/rc.d/rc.firewall script to be run at boot time it needs to be set executable or it will not be started.

Code:

chmod +x /etc/rc.d/rc.firewall
You can use that script to start it manually too (without the need to reboot) but a reboot is a good test to be sure it's working as expected.

Code:

iptables -vnL
will confirm that.

Ahh thank you very very much ... confirmation affirmative .


All times are GMT -5. The time now is 11:53 AM.