Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Sep 15, 2011 4:47 pm 
Offline
Senior Newbie

Joined: Wed Jul 01, 2009 8:12 pm
Posts: 16
I swear there used to be a step-by-step guide for configuring iptables in the Linode Library. It took you through creating the configuration files, and getting iptables to start up at each boot. Now all I can find is a document that tells you a lot about iptables commands but not how to set everything up for a basic firewall and have it enabled after every boot.

Also, what do we need to do to secure IPv6?

Thanks,

CT


Top
   
 Post subject:
PostPosted: Fri Sep 16, 2011 3:14 am 
Offline
Senior Newbie

Joined: Mon Mar 21, 2011 2:04 am
Posts: 9
Website: http://www.voidfaction.com
Location: Noblesville, IN
There is a very minimal iptables how to in the linode library.

ip6tables for ipv6.


Top
   
 Post subject:
PostPosted: Fri Sep 16, 2011 2:50 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
Once you set the iptables rules using the commands in the Linode Library, log in as root and run the following command (or use sudo):
Code:
root@li283-45:~# iptables-save > /root/default.fw

You can change default.fw to whatever you want to call the file. It doesn't need to be in /root either, just put it in a place where nobody can access it.

Some distributions will have the file called "/etc/rc.local", if you have it, you can add the command "iptables-restore /root/default.fw" (remove the quotes), replacing /root/default.fw with the firewall file. It will execute anything in /etc/rc.local at boot. You should also be able to do an init script, though I'm not experienced with writing init scripts, so I'm not going to attempt a sample script in case it messes up for you.

(edited to remove stray code tag)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group