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
J

Jahanzeb

Punjab, Pakistan

Simply the best. have been using them from last 2 years. Remember Dedicated servers are hardware so...

Read full review
A

A.L

IL, United States

AYK Solutions has provided me with a very cost effective hosting service with great uptime and lots...

Read full review
C

Cory

GA, United States

I have been with ayksolutions for around 5 years and have been thoroughly impressed with them. All s...

Read full review
S

Soren

Without doubt the most professional and friendly support team i have ever experienced. These guys ar...

Read full review
ARIN Cisco Supermicro cPanel Intel Microsoft