Page top

OMRON

無停電電源装置Japan

オムロン ソーシアルソリューションズ株式会社

PPTP LAN型接続

PPTP LAN型接続

■説明

PPTP LAN型接続の設定例を紹介します。

本社はプロバイダーとの契約で固定IPアドレス61.xx.xx.75を使用しています。
支店側から本社側宛の通信を契機としてPPTPを自動接続します。

※show config 実行時と「管理コマンド・設定(設定メンテナンス)」で初期値のパラメータは表示されません。

■設定内容・・・テキストファイルのダウンロードはこちら

■本社

ip address 192.168.3.1/24
ip dhcp address 192.168.3.2/99
ip dhcp server on
ip filter 1 pass in * 192.168.3.1/32 PPTP remote 0
ip filter 2 pass in * 192.168.3.1/32 PPTP_TUNNEL remote 0
ip filter 59 reject out * 169.254.0.0/16 * wanany
ip filter 60 reject dns qtype 6
ip filter 61 restrict out * * tcpfin * * wanany
ip filter 62 restrict out * * NETBIOS wanany
ip filter 63 restrict out * * tcp_udp 137-139 * wanany
ip filter 64 restrict out * * udp 137 53 wanany
ip nat 1 192.168.3.1/PPTP 61.xx.xx.75 remote 0
ip nat 2 192.168.3.1/PPTP_TUNNEL 61.xx.xx.75 remote 0
ip nat 64 */* 61.xx.xx.75 remote 0
ip ras accept on
ip rip off
ip route 192.168.2.0/24/10 remote 1 static
ip spi mode off
ipsec mode off
ipv6 common filter 1 pass in * * NDP_NS ether1 nolog
ipv6 common filter 2 pass out * * NDP_NS ether1 nolog
ipv6 common filter 3 pass in * * NDP_NA ether1 nolog
ipv6 common filter 4 pass out * * NDP_NA ether1 nolog
ipv6 common filter 5 pass in * * NDP_NS ether2 nolog
ipv6 common filter 6 pass out * * NDP_NS ether2 nolog
ipv6 common filter 7 pass in * * NDP_NA ether2 nolog
ipv6 common filter 8 pass out * * NDP_NA ether2 nolog
ipv6 common filter 9 pass in * * NDP_RS ether1 nolog
ipv6 common filter 10 pass out * * NDP_RA ether1 nolog
ipv6 common filter 11 pass in * * NDP_RS ether2 nolog
ipv6 common filter 12 pass out * * NDP_RA ether2 nolog
remote 0 disconnect idle 0
remote 0 pppoe keepalive on
remote 0 pppoe always on
remote 0 send id XXXX@omron.co.jp
remote 0 send password XXXX
remote 1 answer permit on
remote 1 call auth mschapv2
remote 1 disconnect idle 0
remote 1 encrypt use mppe-128
remote 1 receive id OMRONTEST
remote 1 receive password OMRONPASSWORD

■支店

ip address 192.168.2.1/24
ip dhcp server on
ip filter 59 reject out * 169.254.0.0/16 * wanany
ip filter 60 reject dns qtype 6
ip filter 61 restrict out * * tcpfin * * wanany
ip filter 62 restrict out * * NETBIOS wanany
ip filter 63 restrict out * * tcp_udp 137-139 * wanany
ip filter 64 restrict out * * udp 137 53 wanany
ip rip off
ip route 192.168.3.0/24/1/50 pptp 61.xx.xx.75
ip spi mode off
ipsec mode off
ipv6 common filter 1 pass in * * NDP_NS ether1 nolog
ipv6 common filter 2 pass out * * NDP_NS ether1 nolog
ipv6 common filter 3 pass in * * NDP_NA ether1 nolog
ipv6 common filter 4 pass out * * NDP_NA ether1 nolog
ipv6 common filter 5 pass in * * NDP_NS ether2 nolog
ipv6 common filter 6 pass out * * NDP_NS ether2 nolog
ipv6 common filter 7 pass in * * NDP_NA ether2 nolog
ipv6 common filter 8 pass out * * NDP_NA ether2 nolog
ipv6 common filter 9 pass in * * NDP_RS ether1 nolog
ipv6 common filter 10 pass out * * NDP_RA ether1 nolog
ipv6 common filter 11 pass in * * NDP_RS ether2 nolog
ipv6 common filter 12 pass out * * NDP_RA ether2 nolog
remote 0 disconnect idle 0
remote 0 pppoe keepalive on
remote 0 pppoe always on
remote 0 send id XXXX@omron.co.jp
remote 0 send password XXXX
remote 1 disconnect idle 0
remote 1 mode lan
remote 1 encrypt use mppe-128
remote 1 number 61.xx.xx.75
remote 1 send id OMRONTEST
remote 1 send password OMRONPASSWORD

■解説

■本社

ip filter 1 pass in * 192.168.3.1/32 PPTP remote 0
    remote 0 受信側:192.168.3.1宛のPPTPを通します
    ※ ip filter 1 pass in * 192.168.3.1/32 tcp * 1723 remote 0 と同じ設定です
ip filter 2 pass in * 192.168.3.1/32 PPTP_TUNNEL remote 0
    remote 0 受信側:192.168.3.1宛のPPTP_TUNNELを通します
    ※ ip filter 2 pass in * 192.168.3.1/32 gre remote 0 と同じ設定です
ip nat 1 192.168.3.1/PPTP 61.xx.xx.75 remote 0
    192.168.3.1のPPTP とグローバルIPアドレス 61.xx.xx.75 を関連付けます
    ※ip nat 1 192.168.3.1/tcp/1723 61.xx.xx.75 remote 0 と同じ設定です
ip nat 2 192.168.3.1/PPTP_TUNNEL 61.xx.xx.75 remote 0
    192.168.3.1のPPTP_TUNNEL とグローバルIPアドレス 61.xx.xx.75 を関連付けます
    ※ip nat 2 192.168.3.1/gre 61.xx.xx.75 remote 0 は同じ設定です
ip nat 64 */* 61.xx.xx.75 remote 0
    NAPTを設定します
ip ras accept on
    相手先からのリモートアクセスを受け付けます
ip route 192.168.2.0/24/10 remote 1 static
    192.168.2.0/24 の経路を remote 1に設定します
ip spi mode off
    SPI機能をオフに設定します
remote 1 answer permit on
    相手からの着信に応答します
remote 1 call auth mschapv2
    認証方式をMS-CHAPv2に設定します
remote 1 disconnect idle 0
    自動切断しない設定にします
remote 1 encrypt use mppe-128
    MPPE 128bitで暗号化を行います
remote 1 receive id OMRONTEST
    着信時の認証に使用するユーザIDを設定します
remote 1 receive password OMRONPASSWORD
    着信時の認証に使用するパスワードを設定します

■支店

ip route 192.168.3.0/24/1/50 pptp 61.xx.xx.75
    192.168.3.0/24 の経路を PPTPサーバ (61.xx.xx.75) に設定します
ip spi mode off
    SPI機能をオフに設定します
remote 1 disconnect idle 0
    自動切断しない設定にします
remote 1 mode lan
    接続モードをLAN型に設定します
remote 1 encrypt use mppe-128
    MPPE 128bitで暗号化を行います
remote 1 number 61.xx.xx.75
    PPTPサーバーアドレスを設定します
remote 1 send id OMRONTEST
    認証で使用するユーザIDを設定します
remote 1 send password OMRONPASSWORD
    認証で使用するパスワードを設定します