Moxa ioPAC 5542-C-T — настройка OpenVPN: создание конфигурации и маршрутизации [43/52]
Превью страниц
Страница 43 /
52
![Moxa ioPAC 5542-IEC-T [43/52] Ntp server client](/views2/1201435/page43/bg2b.png)
ioPAC RTU Software RTU Communications
4-18
#----------------------------------Start------------------------------
#!/bin/sh
# value after “-net” is the subnet behind the remote peer
route add -net 192.168.4.0 netmask 255.255.255.0 gw $5
#---------------------------------- end ------------------------------
Create a configuration file named B-tun.conf and an executable script file named B-tun.sh on OpenVPN B:
remote 192.168.8.173
dev tun
secret /etc/openvpn/secrouter.key
cipher DES-EDE3-CBC
auth MD5
tun-mtu 1500
tun-mtu-extra 64
ping 40
ifconfig 192.168.4.174 192.168.2.173
up /etc/openvpn/B-tun.sh
#----------------------------------Start------------------------------
#!/bin/sh
# value after “-net” is the subnet behind the remote peer
route add -net 192.168.2.0 netmask 255.255.255.0 gw $5
#---------------------------------- end ------------------------------
Note that the parameter “ifconfig” defines the first argument as the local internal interface and the second
argument as the internal interface at the remote peer.
Note that $5 is the argument that the OpenVPN program passes to the script file. Its value is the second
argument of ifconfig in the configuration file.
3. Check the routing table after you run the OpenVPN programs, by typing the command:
# route
Destination Gateway Genmsk Flags Metric Ref Use Iface
192.168.4.174 * 255.255.255.255 UH 0 0 0 tun0
192.168.4.0 192.168.4.174 255.255.255.0 UG 0 0 0 tun0
192.168.2.0
*
255.255.255.0
U
0
0
0
eth1
192.168.8.0 * 255.255.255.0 U 0 0 0 eth0
NTP Server/Client
Refer to the System Time Setting section in Chapter 3 for more information.
Содержание
150- Www moxa com product
- Iopac rtu software user s manual
- First edition july 2013
- Www moxa com support
- Trademarks
- Technical support contact information
- Iopac rtu software user s manual
- Disclaimer
- Copyright notice
- Table of contents
- Introduction
- Supported products
- Software architecture
- Related documents
- Overview
- Iopac rtu software introduction
- Journaling flash file system jffs2
- Iopac rtu software introduction
- Software package
- Iopac rtu software introduction
- Getting started
- Modifying network settings with the serial console
- Iopac rtu software getting started
- Hardware and software requirements
- Development procedure
- Developing the first program
- Configuring the ethernet interface
- Modifying network settings over the network
- Iopac rtu software getting started
- Connect an rtu to a linux pc
- Install the toolchain onto the pc
- Develop code compile the program
- Set cross compiler glibc environment variables
- Root localhost telnet 192 68 27 54 trying 192 68 27 54 connected to 192 68 27 54 escape character is moxa login
- Root localhost telnet 192 68 27 54
- Root localhost path usr local arm linux bin path
- Root localhost mount dev cdrom mnt cdrom root localhost sh mnt cdrom software toolchain arm linux_vx x sh
- Root localhost cd tmp root localhost tmp mkdir example root localhost tmp cp r mnt cdrom software sample hello_world tmp example
- Root localhost cd tmp example hello_world root localhost tmp example hello_world make
- Iopac rtu software getting started
- Upload run the program
- Root moxa home chmod x hello_world root moxa home hello_world
- Root moxa df h
- Root localhost tmp example hello_world make usr local arm linux bin arm linux gcc i usr local arm linux include i usr local arm linux include rtu o hello_world hello_world o l usr local arm linux lib lpthread lmxml l usr local arm linux lib rtu lmoxa_rtu lrtu_common ltag wl rpath lib rtu wl allow shlib undefined
- Root localhost tmp example hello_world ftp 192 68 27 54
- Root localhost telnet 192 68 27 54
- Put hello_world
- Iopac rtu software getting started
- Rtu management
- Upgrading the firmware
- System information
- Iopac rtu software rtu management
- Firmware upgrade and default settings
- Attention
- Iopac rtu software rtu management
- Recovering the firmware
- Iopac rtu software rtu management
- Loading factory defaults
- Iopac rtu software rtu management
- Enabling and disabling daemons
- Iopac rtu software rtu management
- Run level settings
- Iopac rtu software rtu management
- Iopac rtu software rtu management
- System time setting
- Setting the time manually
- Updating the time with ntp client
- Updating the time automatically
- Iopac rtu software rtu management
- Ntp server setting
- Iopac rtu software rtu management
- Executing scheduled commands with cron daemon
- Software lock
- Iopac rtu software rtu management
- Rtu communications
- Modbus tcp master and slave
- Iopac rtu software rtu communications
- Internet configuration
- Enabling the telnet ftp server
- Disabling the telnet ftp server
- Telnet ftp
- Iptables
- Iopac rtu software rtu communications
- Iopac rtu software rtu communications
- Observe and erase chain rules
- Iopac rtu software rtu communications
- Examples
- Iopac rtu software rtu communications
- Examples
- Define policy for chain rules
- Append or delete rules
- Nat snat
- Iopac rtu software rtu communications
- Iopac rtu software rtu communications
- Enabling nat at bootup
- Iopac rtu software rtu communications
- Ppp dial up service
- Port forwarding dnat
- Iopac rtu software rtu communications
- Example 1 connecting to a ppp server over a simple dial up connection
- Iopac rtu software rtu communications
- How to check the connection
- Example 2 connecting to a ppp server over a hard wired link
- Setting up a machine for incoming ppp connections
- Iopac rtu software rtu communications
- Iopac rtu software rtu communications
- Setting up the iopac rtu controller as an nfs client
- Sending mail
- Openvpn
- Nfs network file system client
- Iopac rtu software rtu communications
- Example
- Setup 1 ethernet bridging for private networks on different subnets
- Iopac rtu software rtu communications
- Setup 2 ethernet bridging for private networks on the same subnet
- Iopac rtu software rtu communications
- Setup 3 routed ip
- Iopac rtu software rtu communications
- Ntp server client
- Iopac rtu software rtu communications
- Serial configuration
- Port trunking
- Modbus rtu master
- Iopac rtu software rtu communications
- Rtu data acquisition
- I o data access
- Battery backup sram
- Active opc server
- Millisecond timestamp
- Iopac rtu software rtu data acquisition
- Rtu programming
- Using c c
- Steps for installing the linux toolchain
- Programming guide
- Memory usage
- Linux toolchain
- Iopac rtu software rtu programming
- Iopac rtu software rtu programming
- Compilation for applications
- On line debugging with gdb
- Library and apis
- Iopac rtu software rtu programming
- Editor
- A system commands
- System commands
- File manager
- Process
- Network
- Moxa special utilities
- Iopac rtu software system commands
Похожие устройства
-
Moxa ioPAC 5542-HSPA-IEC-TТехнические характеристики -
Moxa ioPAC 5542-HSPA-IEC-TРуководство по аппаратной части -
Moxa ioPAC 5542-HSPA-IEC-TИнструкция по эксплуатации -
Moxa ioPAC 5542-IEC-TТехнические характеристики -
Moxa ioPAC 5542-IEC-TРуководство по аппаратной части -
Moxa ioPAC 5542-IEC-TИнструкция по эксплуатации -
Moxa ioPAC 5542-HSPA-C-TРуководство по аппаратной части -
Moxa ioPAC 5542-HSPA-C-TТехнические характеристики -
Moxa ioPAC 5542-HSPA-C-TИнструкция по эксплуатации -
Moxa ioPAC 5542-C-TРуководство по аппаратной части -
Moxa ioPAC 5542-C-TТехнические характеристики -
Moxa 85M-5401-TТехнические характеристики
Узнайте, как создать конфигурационный файл и скрипт для OpenVPN, а также проверить таблицу маршрутизации. Полезные советы и команды для настройки.