Ubuntu-Server 6.10 防火墙系统安装

豆豆网   技术应用频道   2007年03月04日  【字号: 收藏本文

本文详细介绍Ubuntu-Server 6.10 防火墙系统安装

  Now do:

  apt-get update

  apt-get install openssh-server

  Edit /etc/network/interfaces and add the following at the bottom:

auto eth1
iface eth1 inet static
  address    192.168.1.1
  netmask      255.255.255.0
  broadcast  192.168.1.255
  network    192.168.1.0

  Note that the rest of this tuto assumes that you actually make the settings for eth1 as shown.

  My full/etc/network/interfaces looks like this:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
  address    192.168.1.1
  netmask    255.255.255.0
  broadcast  192.168.1.255
  network    192.168.1.0

  As you can see my eth0 gets its settings using DHCP.

  Save the file. Next do:

  /etc/init.d/networking restart

  You can do the rest of this tuto from your workstation, either linux or the other one (must have putty), so you can actually copy and paste. Just login to 192.168.1.1 as root and get on with it.

  Make sure that the network settings of your workstation match the settings of your server's eth1

来源:howtoforge    责编:豆豆技术应用

正在加载评论...