个人工具

UbuntuHelp:Firewall

来自Ubuntu中文

Wikibot讨论 | 贡献2009年11月17日 (二) 19:08的版本 (创建新页面为 '{{From|https://help.ubuntu.com/community/Firewall}} {{Languages|UbuntuHelp:Firewall}} == Introduction == The Linux kernel includes the <code><nowiki>netfilter</nowiki></code> su...')

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

Introduction

The Linux kernel includes the netfilter subsystem, which is used to manipulate or decide the fate of network traffic headed into or through your server or desktop system. All modern Linux firewall solutions use this system for packet filtering. The kernel's packet filtering system would be of little use to administrators without a userspace interface to manage it. This is the purpose of iptables. When a packet reaches your server, it will be handed off to the netfilter subsystem for acceptance, manipulation, or rejection based on the rules supplied to it from userspace via iptables. Thus, iptables is all you need to manage your firewall if you're familiar with it, but many frontends are available to simplify the task. The upshot of all this is that users can configure the firewall to allow certain types of network traffic to pass into and out of a system (for instance SSH or web server traffic). This is done by opening and closing TCP and UDP ports in the firewall, and can be configured in more detail by restricting access to specific IPs or IP address ranges. Read on for options about managing the firewall.

Managing the Firewall

Here are your options for manipulating the firewall in Ubuntu. Each program has its own wiki page describing how to install and configure it.

iptables

Iptables is the traditional interface for configuring the firewall in Linux operating systems, as explained above. All configuration is performed from the terminal.

Uncomplicated Firewall

UFW (Uncomplicated Firewall) is a frontend for iptables and is particularly well-suited for host-based firewalls. UFW was developed specifically for Ubuntu (but is available in other distributions), and is also configured from the terminal. Gufw is a graphical frontend to UFW, and is recommended for beginners. UFW was introduced in Ubuntu 8.04 LTS (Hardy Heron), and is available by default in all Ubuntu installations after 8.04 LTS.

Firestarter

Firestarter is a popular graphical frontend for configuring iptables in Linux systems, however it is no longer actively maintained. IconsPage?action=AttachFile&do=get&target=IconNote.png Please note that it conflicts with ufw.

See Also

Other:

External Links