BLACK FRIDAY DEALS

Knowledge Base

Allows you to search a variety of questions and answers

Search

Search results

Debian/Ubuntu

After you add the rules and issue the 'iptables-save' command, you want those rules to remain there after a reboot. This is a bit trickier to do than on a RH based system. Here is one way:

1. Save your iptables to a file using the following command:

Code:

iptables-save > /etc/iptables.conf

2. Then edit the /etc/network/interfaces file by adding the following line right after 'iface eth0 inet static':
 

Code:

  pre-up iptables-restore < /etc/iptables.conf

That should do it!

This is also how you change the firewall rule on Debian, essentially restarting the firewall.

A good how-to is also located here: http://wiki.debian.org/iptables

See What Our Customers Say

Leave review
H

holidaypropertyrental.com

England, United Kingdom

I have a two small shared hosting packages and the price I pay I don't expect to receive very good s...

Read full review
K

kkodev

London, United Kingdom

After getting a dedicated server from AYK for almost 2 years, I couldn't be more happy. The prices...

Read full review
D

Diego

Even though I only have a shared hosting plan, their technical support team responded to my tech sup...

Read full review
C

Craig D

NC, United States

I have had my hosting with AYK since 2006, and it has by far been the best experience I have ever ha...

Read full review
ARIN Cisco Supermicro cPanel Intel Microsoft