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
F

Francesco

Great servers, Great Service, Awesome uptime! Our company has been working with AYKSolutions for alm...

Read full review
J

Jesse

ON, Canada

- always respond fast - excellent pricing - great products

Read full review
A

Anthony J

FL, United States

Very courteous, professional, and willing to help. They truly care about client based relationships...

Read full review
P

Pierre

QC, Canada

My first experience with VPS and I din't really know what to do or what to expect. AykSolutions.com...

Read full review
ARIN Cisco Supermicro cPanel Intel Microsoft