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
E

ephi

QC, Canada

Hi guys, I am pretty satisfied with your service. Yes, I have experienced some downtime issues wi...

Read full review
R

RatePoint R

Good Cooperation The datacenter is very co-operating, and provides immediate response.

Read full review
M

Miles S

WA, United States

I had never heard of AYK Solutions before, but they had an awesome deal I couldn't pass up on WHT....

Read full review
S

seoSpaceship.com

NC, United States

AYK Solutions offers unmatched top tier support. They have gone above and beyond time and time agai...

Read full review
ARIN Cisco Supermicro cPanel Intel Microsoft