Moxa V2401-CE [62/108] Routed ip

Moxa V2401-CE [62/108] Routed ip
V2401/2402 Series Linux User’s Manual Managing Communications
3-35
Routed IP
1. Set up four machines, as shown in the following diagram.
2. On machine OpenVPN A, modify the remote address in configuration file
/etc/openvpn/tun.conf.
3. Next, modify the routing table in script file /etc/openvpn/tun.sh.
# point to the peer
remote 192.168.8.174
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.2.173 192.168.4.174
up /etc/openvpn/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-----------------------------

Содержание

Похожие устройства

Скачать