Shiva Logo

Tunnel Types

There are three types of tunnels:

  • Site-to-Site

  • Single-User

  • Full Access

If two networks want to communicate and not be subject to the packets being hijacked while en route, tunnels can be established between the networks. This assumes, of course, that two networks want to communicate safely and are both protected by firewalls. The tunnels can be started either inside or outside of a firewall. When a tunnel is started inside a firewall, then the packets entering or leaving the tunnel do not need to pass through the gateway and are not subject to the firewall rules that the gateway is configured to follow. If a tunnel is started outside the firewall, then packets entering or leaving the tunnel must pass through the gateway. They are then subjected to the firewall rules before passing through the gateway.

The Shiva VPN products implement tunnels using authentication methods and encryption techniques. Since the traffic passing between two Shiva VPN components is encrypted, it is as if the data is traveling in a tunnel.

For more information, see the following topics:

Site-to-Site Tunnels

Single-User Tunnels

Full Access Tunnel Example One

Limited Access Tunnel Example One

Multiuser Tunnels

Full Access Tunnel Example Two

Limited Access Tunnel Example Two

Site-to-Site Tunnels

A site-to-site tunnel is defined between two devices with fixed IP addresses. A fixed IP address implies that the device is always present and the Shiva VPN component on the other end of the tunnel can initiate communication with the fixed device. This behavior can be overridden on one end of the tunnel, if desired. A site-to-site tunnel is usually defined when the tunnel is between two networks and both ends of the tunnel are available through LanRover VPN Gateway devices.

A site-to-site tunnel is fully defined with the following components:

  • IP address of the opposing LanRover VPN Gateway

  • Secure profile to be applied to the communication

  • Color (mode) of the tunnel

  • IP route pushing packets into the tunnel

The IP address of the opposing LanRover VPN Gateway highlights the fact that a tunnel cannot exist without a Shiva VPN component on the other end. A secure profile defines how the establishment of the tunnel should be authenticated and how the communication should be secured. The mode of the tunnel specifies where the tunnel terminates. Finally, the IP route specifies which packets should enter the tunnel.

The following example illustrates a secure tunnel, which secures all communication between two networks.

Click graphic to enlarge the image.

A Secure Tunnel

Tunnel Definition Parameters LanRover VPN Gateway A LanRover VPN Gateway B

Opposing gateway

198.53.144.120

205.250.128.240

Secure profile (must be previously defined)

Very strict

Very strict

Tunnel mode

Red

Red

IP route

IP route

192.168.10.0 255.255.255.0 198.53.144.120

IP route

10.1.1.0 255.255.255.0 205.250.128.240

Note that the tunnel has to be defined on both LanRover VPN Gateway devices. Therefore, when you specify the opposing VPN Gateway on device A, point at device B. Also, define the same secure profile on both VPN Gateways. The tunnel mode, however, can be different on each VPN Gateway. Finally, the route statements tell the VPN Gateways which packets should enter the tunnel.

Single-User Tunnels

A single-user tunnel is defined between a fixed device and one with no fixed IP address, which implies that the device on the other end of the tunnel is not always present or may change its address. A single-user tunnel is usually defined on a LanRover VPN Gateway when the other end of the tunnel is a Shiva VPN Client.

You can assign a known IP address to the remote device using network address translation (NAT). This address is known as the Client IP. When a tunnel has been established with the remote device, all packets coming from the remote device will have their actual source address replaced with the Client IP address.

Click graphic to enlarge the image.

Network Address Translation

A single-user tunnel is fully defined with the following components:

  • User name of the opposing LanRover VPN Client

  • Secure profile to be applied to the communication

  • Color (mode) of the tunnel

  • Client IP if NAT is being used

Identify the opposing Shiva VPN device by a user name instead of an IP address. The Secure Profile defines how the establishment of the tunnel is authenticated and how the communication is secured. The mode of the tunnel specifies where the tunnel terminates. The IP route is no longer required.

Full Access Tunnel Example One

The following table describes a tunnel that allows a remote user (called chris) full access to the red (trusted) network available through VPN Gateway A, while not allowing access to the network available through VPN Gateway B.

Tunnel Definition Parameters LanRover VPN Gateway A Shiva VPN Client

Remote user name

chris

( the VPN's name)

Secure profile (must be previously defined)

dial-up

Accept peer proposal or same parameters as dial-up profile

Tunnel mode

Red

Not applicable

IP route

Not required

Not applicable

Client IP

0.0.0.0 (not required)

Not applicable

In the previous table, user chris is given complete access to the trusted network.

Limited Access Tunnel Example One

The following figure shows how to use a combination of a tunnel and a firewall rule to give a remote user limited access to the trusted network.

Click graphic to enlarge the image.

Source Address Change

For example, to allow a remote user (called leslie) access to the Web Server available through VPN Gateway A while not allowing access to the rest of that network or to the network available through VPN Gateway B, a tunnel is defined for the user to the black (untrusted) side of the VPN Gateway and a firewall rule is created to allow the traffic from the black (untrusted) network to the red (trusted) network. In this case a Client IP is used to assign the remote user a known IP address on the red (trusted) network. This address is needed in order to identify the remote user in the firewall rule.

Tunnel Definition Parameters LanRover VPN Gateway A LanRover VPN Gateway B

Remote user name

leslie

No access

Secure profile (must be previously defined)

dialup

Not applicable

Tunnel mode

Black

Not applicable

IP route

Not required

Not applicable

Client IP

10.1.1.193

Not applicable

Firewall Rule

The following table describes the firewall rule for the previous example.

Parameter Description Parameter Value Comments

From IP address

10.1.1.193

User leslie is being assigned Client IP 10.1.1.193.

From subnet mask

255.255.255.255

 

From application port

ALL

The application port used to make the HTTP (www) request is usually unknown.

To IP address

10.1.1.2

The Web Server's IP address.

To subnet mask

255.255.255.255

Access Web Server only.

To application port

80

Web servers usually listen on this port.

Action

Stateful

 

Direction

Inbound

The group comes from the black (untrusted) network and crosses to the red (trusted) network.

NAT

No

 

Protocol

TCP

HTTP is transported by means of TCP, not UDP.

Multiuser Tunnels

A multiuser tunnel is defined between a fixed device and a group of remote users, which implies that the devices on the other end of the tunnel are not always present or may change their addresses. A multiuser tunnel is usually defined on a LanRover VPN Gateway for the ease of administration, simplification of the overall configuration, and to limit the number of Shiva VPN Client users that can access the network through the VPN Gateway at any given time.

Any member of the remote user group that attempts to connect through the tunnel when the preset number of other users are already connected is refused. This feature is useful for large organizations in that it allows them to prioritize access through the VPN Gateway by groups, thereby avoiding situations where important tunnel requests are refused because all 1024 available sessions are in use.

Any remote device that connects successfully is given one of a preset group of IP addresses with which it appears on the network, accessible through the Gateway. Hence, all connections using multiuser tunnels use network address translation (NAT). A multiuser tunnel is fully defined with the following components:

  • Group name

  • Number of users that can establish tunnels at any given time and associated NAT IP addresses (known as Client IP)

  • Secure profile to be applied to the communication

  • Color (mode) of the tunnel

The group of opposing Shiva VPN devices is now identified by a group name. The secure profile defines how the establishment of the tunnel should be authenticated and how the communication should be secured. The mode of the tunnel specifies where the tunnel terminates. The IP route is no longer required.

Note: If the authentication method specified in the secure profile associated with a multiuser tunnel is a challenge phrase, the same challenge phrase must be given out to each member of the group. This is not recommended.

Full Access Tunnel Example Two

The following table shows a tunnel that allows a group (called audit) full access to the red (trusted) network available through VPN Gateway A, while not allowing access to the network available through VPN Gateway B. Note that a maximum of 30 members of the group are allowed to use the tunnel at once.

Tunnel Definition Parameters LanRover VPN Gateway A LanRover VPN Gateway B

Group name

audit

No access

Client IP

10.1.1.193

Not applicable

Number of clients

30

 

Secure profile (must be previously defined)

dial-up

Not applicable

Tunnel mode

Red

Not applicable

IP route

Not required

Not applicable

In the previous table, group audit is given complete access to the trusted network.

Limited Access Tunnel Example Two

The next table shows how to use a combination of a tunnel and a firewall rule to give a group limited access to the red (trusted) network. For example, to allow a group called sales access to the Web server available through VPN Gateway A while not allowing access to the rest of that network or to the network available through VPN Gateway B, a tunnel is defined for the group to the black side of the VPN Gateway and a firewall rule is created to allow the traffic from the black (untrusted) network to the red (trusted) network.

Tunnel Definition Parameters LanRover VPN Gateway A LanRover VPN Gateway B

Group name

sales

No access

Client IP

10.1.1.193

Not applicable

Number of clients

30

Not applicable

Secure profile (must be previously defined)

dial-up

Not applicable

Tunnel mode

Black

Not applicable

IP route

Not required

Not applicable

Firewall Rule

The firewall rule is explained in the following table.

Parameter Description Parameter Value Comments

From IP address

10.1.1.192

 

From subnet mask

255.255.255.224

A maximum of 30 users with addresses starting from 10.1.1.193 are allowed through the firewall.

From application port

ALL

The application port used to make the HTTP (www) request is usually unknown.

To IP address

10.1.1.2

The Web Server's IP address.

To subnet mask

255.255.255.255

Access Web Server only.

To application port

80

Web servers usually listen on this port.

Action

Stateful

 

Direction

Inbound

The group comes from the black (untrusted) network and crosses to the red (trusted) network.

NAT

No

 

Protocol

TCP

HTTP is transported by means of TCP, not UDP.

Related Information

Firewall and Tunnels Overview

Virtual Private Networking (VPN)

[ Top of Page... ]

[ Back to Shiva Configurator Directory ]