メニューを飛ばして本文へ


Vine Linux

検索

カスタム検索

5.4. 接続の設定

5.4.1. tkpppoeによる設定

ここでは、パッケージ rp-pppoe-gui の tkpppoe コマンドでの設定方法を説明します。

pppoe-setup を用いて設定する場合の説明は 項5.4.3. 「pppoe-setupによる設定」 を参照してください。

警告

設定の不整合が起こることがありますので pppoe-setup と tkpppoe を同時に使用しないでください。

スーパーユーザ(root)で tkpppoe コマンドを実行します。

# tkpppoe

5.4.2. 標準設定

tkppoe と pppoe-setup[8]での設定で必要となる項目です。プロバイダの資料などをご確認ください。

基本設定 , 接続名

tkpppoe では、ユーザ名やパスワードなど、接続先ごとに設定を保存しておくことができます。プロバイダの名前や回線の種類などで名前をつけておきます。

設定ファイルは /etc/ppp/rp-pppoe-gui/conf.接続名 になります。

ユーザ名

PPPoE 接続用の(ユーザ)ログイン名を指定します。メールアカウント名ではありませんので注意して下さい。

username@domainname というものであれば、 tkpppoe では @の左側 を ユーザ名 username として利用します。 pppoe-setup では、@とドメイン名(@の右側)も含めて username@domainname という形を利用します。

ネットワーク

tkpppoe では @の右側 を ネットワーク名 domainname として利用します。

パスワード

PPPoE 接続用のパスワードを入力します。入力内容は表示されません。入力を間違えた場合は、Ctrl-U を押して最初から入力しなおします。

NIC と DNS , イーサネット・インタフェース

LANカード、LANボードのデバイス名を指定します。 通常 /dev/eth0 ですが、pppoe-setup , tkpppoe ともに、/dev/ の部分を除いて eth0 という形で利用します。

複数の LANカードなどを利用している場合は /etc/modprobe.conf

alias eth数字 モジュール名

という記述を見てデバイスの数字を指定してください。

$ cat /etc/modprobe.conf

また /var/log/messages にも情報があるかもしれません。

# grep "[Ee]th" /var/log/messages

DNS設定

From Server:プロバイダの資料に「設定する必要はありません」と書かれている場合はこれを利用します。

Specify:プロバイダの資料で DNSサーバの IPアドレスが指定されている場合はこれを選択し、下の プライマリDNS と セカンダリDNS の欄にそれぞれの IPアドレスを入力します。セカンダリDNS のIPアドレスがない場合、セカンダリDNS は空欄のままでかまいません。

Do not Adjust:PPPoE での接続時に DNSの設定を変更しません。

オプション , root以外のユーザの使用を許可

一般ユーザでも接続先の変更、接続と切断の切替えを許可するのであればチェックをつけてください。

同期 PPP を使用

アナログ電話回線は非同期回線ですが、ADSL や FTTH は同期回線なのでチェックをつけたままにしておきます。

ファイアウォール

StamdAlone: PPPoE 接続を利用するのがこの PCだけで、他の PC などが繋がっていなければこの設定を選択してください。

Masquerading: この PC を Internet gateway として利用し、他の PC なども繋ぐのであればこの設定を選択してください。

None: ファイアウォールに関してすでに何らかの設定がある場合にはこれを選択してください。

Vine Linux では、インストール時とインストール後に、ファイアウォールの設定を行えるようになっているので、適切に設定されていればここでは None を選択しておきます。ファイアウォールの設定はここでしか行わないというのであれば StamdAlone か Masquerading のふさわしいものを選んでください。

StandAlone を選んだ場合には /etc/ppp/firewall-standalone が、 Masquerading を選んだ場合には /etc/ppp/firewall-masq が、ファイアウォールの設定ファイルとして用いられます。 必要に応じて書き変えてください。

また、利用しないを選んだ場合には、ファイアウォールの設定を参照してください。

5.4.3. pppoe-setupによる設定

ここでは、パッケージ rp-pppoe の pppoe-setup コマンドでの設定方法を説明します。

警告

設定の不整合が起こる可能性がありますので pppoe-setup と tkpppoe を同時には使用しないでください。

スーパーユーザ(root)で pppoe-setupコマンドを実行します。

# pppoe-setup
Welcome to the Roaring Penguin PPPoE client setup.  First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...

Looks good!  Now, please enter some information:

USER NAME

>>> Enter your PPPoE user name (default hoge@localhost): 

ログインユーザ名を入力し Enterキーを押します。

INTERFACE

>>> Enter the Ethernet interface connected to the DSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(default eth0): 

デバイス名を入力し Enterキーを押します。 (default eth0) と書かれているので、何も入力せずに Enterキーを押すと eth0 を入力したのと同じことになります。

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped.  If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses.  You may have some problems with demand-activated links.
>>> Enter the demand value (default no): 

オンデマンド接続を利用するかを、切断までのアイドル時間(秒) か no(利用しない) で答えます。何も入力せずに Enterキーを押すと no(利用しない) になります。

オンデマンド接続については 項4.5. 「オンデマンド接続」 を参照してください。

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
>>> Enter the DNS information here: 

DNSサーバの設定をします。何も指定がなければ server とすべて小文字で入力しEnterキーを押してください。 プロバイダから DNS サーバのIP アドレスを指定されている場合は、 プライマリDNS のIPアドレスを入力して Enterキーを押してください。

DNSの IPアドレスを入力した場合
Please enter the IP address of your ISP's secondary DNS server.
If you just presss enter, I will assume there is only one DNS server.
>>> Enter the secondary DNS server address here: 

プライマリDNS のIPアドレスを入力した場合には続けてセカンダリDNS のIPアドレスを入力します。 セカンダリDNS の指定がなければ Enterキーを押してください。

PASSWORD

>>> Please enter your PPPoE password: 

PPPoE接続用のパスワードを入力して Enterキーを押してください。

>>> Please re-enter your PPPoE password: 

確認のため、もう一度パスワードを入力して Enterキーを押してください。

FIREWALLING

Please choose the firewall rules to use.  Note that these rules are
very basic.  You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security.  If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself.  Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc.  If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.

The firewall choices are:
0 - NONE: This script will not set any firewall rules.  You are responsible
          for ensuring the security of your machine.  You are STRONGLY
          recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
                for a LAN
>>> Choose a type of firewall (0-2): 

ファイアウォールについての設定を行います。0 1 2 のどれかと Enterキーを押してください。

0 - 設定しない: ファイアウォールに関してすでに何らかの設定がある場合にはこれを選択してください。

1 - スタンドアローン: PPPoE 接続を利用するのがこの PCだけで、他の PC などが繋がっていなければこの設定を選択してください。

2 - マスカレード: この PC を Internet gateway として利用し、他の PC なども繋ぐのであればこの設定を選択してください。

Vine Linux では、インストール時とインストール後に、ファイアウォールの設定を行えるようになっているので、適切に設定されていればここでは 0 を選択しておきます。ファイアウォールの設定はここでしか行わないというのであれば 1 か 2 のふさわしいものを選んでください。

スタンドアローン を選んだ場合には /etc/ppp/firewall-standalone が、 マスカレード を選んだ場合には /etc/ppp/firewall-masq が、ファイアウォールの設定ファイルとして用いられます。 必要に応じて書き変えてください。

また、利用しないを選んだ場合には、ファイアウォールの設定を参照してください。

** Summary of what you entered **

Ethernet Interface: eth0
User name:          username@domainname
Activate-on-demand: No
DNS:                Do not adjust
Firewalling:        NONE

>>> Accept these settings and adjust configuration files (y/n)? 

デバイス名、ユーザ名、オンデマンド接続、DNSサーバ、ファイアウォールのそれぞれの設定が正しいか確認してください。 問題がなければ y を、問題があれば n を押して Enterキーを押します。

n を選択した場合

n を選択するとログインユーザ名から設定しなおしになります。 ログインパスワード以外の項目は (default 設定した値) となり、設定したものが記憶されているので Enterキーだけで同じものを選択できます。

Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets
  (But first backing it up to /etc/ppp/pap-secrets-bak)
  (But first backing it up to /etc/ppp/chap-secrets-bak)



Congratulations, it should be all set up!

Type 'pppoe-start' to bring up your PPPoE link and 'pppoe-stop' to bring
it down.  Type 'pppoe-status' to see the link status.

設定内容が、/etc/ppp/pppoe.conf/etc/ppp/pap-secrets/etc/ppp/chap-secrets に書き込まれました。 バックアップファイルが /etc/ppp/pap-secrets-bak /etc/ppp/chap-secrets-bak に作成されています。

これで設定は完了です。



[8] pppoe-setup は、以前は adsl-setup という名前でした。