Skip to main content

Setting Up the Netfilter Firewall with iptables and ufw

  • Chapter
Beginning Ubuntu LTS Server Administration
  • 879 Accesses

Abstract

Most settings discussed so far involve security measures that make your server internally secure. You must also consider, however, that something or someone from the outside world will try to connect to your server, so you need some security at that level, too. The best way to achieve this security is with a firewall. If your server is connected to the Internet directly, you must have a firewall running on it. Netfilter, which is the default choice for all Linux distributions, is the firewall that is implemented in the Linux kernel. The iptables command gives you complete freedom to manipulate the Netfilter firewall. In day-to-day use, both names get confused frequently, but both refer to the same firewall. Ubuntu Server also offers a solution to make Netfilter administration easy: the uncomplicated firewall (ufw). In the second part of this chapter you’ll learn how to use ufw.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Sander van Vugt

About this chapter

Cite this chapter

van Vugt, S. (2008). Setting Up the Netfilter Firewall with iptables and ufw. In: Beginning Ubuntu LTS Server Administration. Apress. https://doi.org/10.1007/978-1-4302-1081-8_12

Download citation

Publish with us

Policies and ethics