UC-7420/7410 User’s Manual

Managing Communication

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:

Host A

eth0: 192.168.2.171

eth0: 192.168.2.172

local net

OpenVPN A

eth1: 192.168.2.173

eth0: 192.168.8.173

Internet

ixp0: 192.168.8.174

ixp1: 192.168.2.174

Host B

local net

OpenVPN B

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”.

4-22

Page 74
Image 74
Moxa Technologies UC-7420/7410 user manual Now ping Host B from Host a by typing