~ubuntu-branches/ubuntu/vivid/ubuntu-kylin-docs/vivid

« back to all changes in this revision

Viewing changes to ubuntu-kylin-help/C/net-firewall-on-off.page

  • Committer: Package Import Robot
  • Author(s): Lei Luo
  • Date: 2014-04-10 14:58:12 UTC
  • Revision ID: package-import@ubuntu.com-20140410145812-9mfgq3xleqy0l89f
Tags: 14.04.3

* Add "Replaces" field in debian control file to automatically remove
  ubuntu-docs before installation.
* Merge ubuntu-docs changes.
* Update zh_CN tranlation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<page xmlns="http://projectmallard.org/1.0/"
 
2
      type="topic" style="task"
 
3
      id="net-firewall-on-off">
 
4
 
 
5
  <info>
 
6
    <link type="guide" xref="net-security"/>
 
7
    <desc>You can control which programs can access the network. This helps to keep your computer secure.</desc>
 
8
 
 
9
    <revision pkgversion="3.4.0" date="2012-02-20" status="final"/>
 
10
    <revision version="13.10" date="2013-09-15" status="review"/>
 
11
 
 
12
    <credit type="author">
 
13
      <name>Paul W. Frields</name>
 
14
      <email>stickster@gmail.com</email>
 
15
    </credit>
 
16
    <credit>
 
17
      <name>Jeremy Bicha</name>
 
18
      <email>jbicha@ubuntu.com</email>
 
19
    </credit>
 
20
 
 
21
    <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
 
22
  </info>
 
23
 
 
24
  <title>Enable or block firewall access</title>
 
25
 
 
26
  <p>Ubuntu comes equipped with the <app>Uncomplicated Firewall</app> (<app>ufw</app>) but the firewall is not enabled by default. Because Ubuntu does not have any open network services (except for basic network infrastructure) in the default installation, a firewall is not needed to block incoming attempted malicious connections.</p>
 
27
 
 
28
  <p>For more information about how to use ufw, see the <link href="https://wiki.ubuntu.com/UncomplicatedFirewall">online documentation</link>.</p>
 
29
 
 
30
<section id="ufw-enable">
 
31
 <title>Turn the firewall on or off</title>
 
32
  <p>To turn on the firewall, enter <cmd>sudo ufw enable</cmd> in a terminal. To turn off ufw, enter <cmd>sudo ufw disable</cmd>.</p>
 
33
</section>
 
34
 
 
35
<section id="ufw-filter">
 
36
 <title>Allow or block specific network activity</title>
 
37
  <p>Many programs are built to offer network services. For instance, you can share content, or let someone view your desktop remotely. Depending on which additional programs you install, you may need to adjust the firewall to allow these services to work as intended. UfW comes with a number of rules already pre-configured. For instance, to allow <app>SSH</app> connections, enter <cmd>sudo ufw allow ssh</cmd> in a terminal. To block ssh, enter <cmd>sudo ufw block ssh</cmd>.</p>
 
38
  <p>Each program that provides services uses a specific <em>network port</em>. To enable access to that program's services, you may need to allow access to its assigned port on the firewall. To allow connections on port 53, enter <cmd>sudo ufw allow 53</cmd> in a terminal. To block port 53, enter <cmd>sudo ufw block 53</cmd>.</p>
 
39
  <p>To check the current status of ufw, enter <cmd>sudo ufw status</cmd> in a terminal.</p>
 
40
</section>
 
41
 
 
42
<section id="gufw">
 
43
 <title>Use ufw without a terminal</title>
 
44
  <p>You can also install <app>gufw</app> if you prefer to set up the firewall without using a terminal. To install, click <link href="apt:gufw">this link</link>.</p>
 
45
  <p>You can launch this program by searching for <app>Firewall Configuration</app> in the <gui>Dash</gui>. The program does not need to be kept open for the firewall to work.</p>
 
46
</section>
 
47
 
 
48
</page>
 
 
b'\\ No newline at end of file'