Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I ensure iptables gets up before any network adapter gets up?

And can network be stopped to be brought up if there is an error in the firewall rules?

For exiting and future network adapters. With existing I mean adapters I am right now are of (ex: cabled network adapter). But if I add another adapter later (3g, wifi, whatever), I want them to be protected by the firewall without thinking about it.

And no. Using /etc/rc.local is not very safe. Network could get up before rc.local was run.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.