Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-26-2005, 02:15 AM
|
#1
|
LQ Newbie
Registered: Oct 2005
Posts: 18
Rep:
|
Debian iptables
When i type "iptables -L" under command line that login as root.
It displayed below messages:
Note: /etc/modules.conf is more recent than /lib/modules/2.2.20-idepci/modules.dep
modprobe: Can't locate module ip_tables iptables v1.2.11: can't initialize iptables table 'filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
What should I do?
thx....
|
|
|
10-26-2005, 03:17 AM
|
#2
|
Member
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848
Rep:
|
Hi,
What do you want to do ?
Install a firewall ?
Then install guarddog, sets iptables for you with
a gui.
# apt-get install guarddog
cheers
|
|
|
10-26-2005, 04:16 AM
|
#3
|
LQ Newbie
Registered: Oct 2005
Posts: 18
Original Poster
Rep:
|
I want to set up the iptables.
I solve the above problem by updated the kernel.
But i have any other problem, how to save the change after i set the iptables rules?
I used the command:
"iptables-save -c" <---- but cannot work after i reboot the debian once.
"/etc/init.d/iptables save active" <----- it displayed "Bad argument 'save'"
have anyone know how can i do ?
|
|
|
10-26-2005, 04:58 AM
|
#4
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
I used
Code:
iptables-save > /etc/my-iptable-rules
and the load on boot with
Code:
iptables-restore < /etc/my-iptable-rules
|
|
|
10-26-2005, 06:08 AM
|
#5
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
You need create a bash script with an editor and then save the script as say rc.firewall in either /etc or /etc/init.d/.
Having saved the script cd to the directory and do chmod 700 ./rc.firewall . To get it running at boot time and say you saved it in /etc/init.d then do from a console;
ln -s /etc/init.d/rc.firewall /etc/rc2.d/S89rc.firewall. Now you need to do this in the runlevels rc3.d -> rc5.d so use the up arrow key so the line appears again and use the back arrow key and just change the runlevel from 2 to 3.
|
|
|
10-26-2005, 06:20 AM
|
#6
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
TigerOC - just a comment a good explanation for loading up the firewall at boot, but shouldn't the firewall be initiated a little earlier, before any network services such as Apache, MySQL, etc. would be started?
|
|
|
All times are GMT -5. The time now is 11:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|