Moxa Technologies UC-7420/7410 User Manual

Page 74

Advertising
background image

UC-7420/7410 User’s Manual

Managing Communication

4-22

virtual device, it sends the traffic to its peer.

7. To create an indirect connection to Host B from Host A, you need to add the following

routing item:

route add –net 192.168.4.0 netmask 255.255.255.0 dev eth0

To create an indirect connection to Host A from Host B, you need to add the following routing
item:

route add –net 192.168.2.0 netmask 255.255.255.0 dev eth0

Now ping Host B from Host A by typing:

ping 192.168.4.174

A successful ping indicates that you have created a VPN system that only allows authorized
users from one internal network to access users at the remote site. For this system, all data is
transmitted by UDP packets on port 5000 between OpenVPN peers.

8. To shut down OpenVPN programs, type the command:

# killall -TERM openvpn

Setup 2: Ethernet Bridging for Private Networks on the Same Subnet

1. Set up four machines as shown in the following diagram:

OpenVPN A

OpenVPN B

Host A

eth0: 192.168.2.171

Host B

eth0: 192.168.2.172

ixp0: 192.168.8.174

eth1: 192.168.2.173

local net

local net

InternetInternet

ixp1: 192.168.2.174

eth0: 192.168.8.173

2. The configuration procedure is almost the same as for the previous example. The only

difference is that you will need to comment out the parameter “up” in
“/etc/openvpn/A-tap0-br.conf” and “/etc/openvpn/B-tap0-br.conf”.





Advertising