nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

iptables under debian

This is a discussion on iptables under debian within the Linux software forums, part of the Linux Getting Started category; I have loaded Ubuntu 6.10 Edgy Eft in my Laptop and it is working fine. I wanted to setup IPTABLES ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 04-17-2007, 01:10 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default iptables under debian

I have loaded Ubuntu 6.10 Edgy Eft in my Laptop and it is working fine. I wanted to setup IPTABLES to protect it

I have noticed that there is no way I can save the iptables config in Ubuntu. I have tried iptables-save but whenever I restart the system, I need to set the rules again.

I have also noticed that I have there is no /etc/sysconfig/iptables file like the one we have in RH or FC. As Ubuntu is based on Debian Sarge, I think it (/etc/sysconfig) is not a part of Debian.

How to permanently save the iptables config so that it loads the configuration whenever it gets restarted ?

I think it would also be helpful for everyone if we know where the different config files are stored in debian and redhat/fedora.

I am very new to Debian and know very little about Linux in general. I am sure it will be helpful for me.

ricc
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-22-2007, 09:26 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Type the following commands:
Code:
iptables-save > /root/dsl.fw
Load iptables rules
Code:
vi /etc/network/interfaces
Append following line to eth0
Code:
post-up iptables-restore < /root/dsl.fw
Save the file. Reboot the system
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Monitoring traffic with debian raj Linux software 2 03-24-2008 08:37 PM
Acetoneiso 2 Debian Linux sweta Ubuntu / Debian 0 11-01-2007 03:49 AM
Debian d-link dwl 510 configuration chimu Linux hardware 0 01-26-2007 08:15 PM
debian apache2 cgi-bin location Linux software 1 01-24-2006 07:44 PM
passwd command on debian ac007 Linux software 1 12-28-2005 01:15 AM


All times are GMT +5.5. The time now is 08:39 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36