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
V

Valentine

PEMBROKESHIRE, United Kingdom

AYKSolutions is thee best hosting solution I have found in 10 years of searching. I'm very grateful...

Read full review
W

WorldTruthorg

FL, United States

I have never experienced a more professional and personal client-based service such as I am enjoying...

Read full review
D

D Smith

Dedicated Semi-Managed Server Review I've been using AYKSolutions for about 2 years now and their su...

Read full review
A

Arlen A

WA, United States

Best customer service I've encountered anywhere. Great product at a great price.

Read full review
ARIN Cisco Supermicro cPanel Intel Microsoft