Shiva Logo

Firewall Functions

Each VPN Gateway has at least two physical interfaces (that is, two Ethernet cards). Each interface is assigned a color, either red or black. If both interfaces have the same color, the LanRover VPN Gateway will not perform any firewall functions between the interfaces. In this case, the LanRover VPN Gateway becomes a router (or bridge) and an encryptor.

When two interfaces on a LanRover VPN Gateway have different colors, packets arriving at one interface must pass through the firewall to move to the other interface.

Click graphic to enlarge the image.

LanRover VPN Gateway as a Firewall

For more information, see the following topics:

Stateless

Stateful

Filters

One-Way Out Firewall Rules

One-Way In Firewall Rules

Inbound Proxy

Outbound Proxy

Stateless

The LanRover VPN Gateway is instructed to allow or disallow all packets traveling between the red (trusted) and black (untrusted) network. The LanRover VPN Gateway checks each packet as it arrives to ensure it is valid. If the packet matches the filter rule (shown in the following table), it passes from one interface to the other. The LanRover VPN Gateway then immediately looks for the next incoming packet. This is called stateless filtering, since the LanRover VPN Gateway does not remember that a packet passed through a filter rule. If a packet is considered invalid, it is simply not allowed entry to the red (trusted) network.

Parameter Description Parameter Value Comments

From IP address

10.1.1.193

User chris is assigned Client IP 10.1.1.193.

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) and crosses to the red (trusted).

NAT

No

 

Protocol

TCP

HTTP is transported by means of TCP, not UDP.

Stateful

All other firewall rules are stateful, which means that a communication session is established between a device inside the firewall (on the red network) and a device outside the firewall (on the black network). In this way when a device on a red (trusted) network (in the case of a one-way outbound link or outbound proxy) makes a request to a device on a black (untrusted) network that requires a response, the response is allowed back into the network.

The LanRover VPN Gateway is also configured to allow data packets from the black (untrusted) network to establish a link with a specific IP address inside the red (trusted) network. In this case, the LanRover VPN Gateway stores the IP address of the computer sending the data packets from the black (untrusted) network, so if the link is dropped and tries to reestablish, the LanRover VPN Gateway remembers the IP address of the computer that created the initial link. This type of stateful connection is known as an inbound proxy or one-way in firewall rule. The only difference between an inbound proxy and a one-way in firewall rule is the point at which a data packet is removed from encapsulation and the firewall rules are applied.

The inbound data packets from the originating device look directly for the IP address of the LanRover VPN Gateway, not the real address of the destination computer. When the data packet arrives at the gateway, the gateway checks the validity of the packet, maintains the state of the transmission, and the packets are permitted or denied based on the stateful rules configured in the LanRover VPN Gateway. Only if the packet is permitted by the firewall rule is it then routed to the destination computer according to the IP addressing information it carries.

Click graphic to enlarge the image.

A Firewalled LAN

Filters

Filters are used to allow or block (permit or deny) the flow of packets through the LanRover VPN Gateway. The source device initiating the session can be either on the red (trusted) or the black (untrusted) subnet. Think of a filter as a hole through the firewall through which specified devices can communicate. Packets passing through a filter are not modified in any way and no state information is maintained.

Click graphic to enlarge the image.

Example of a Filter

If you want a public domain name server (DNS) to execute on a machine on a red network, define a filter as described in the following table.

Parameter Description Parameter Value Comments

To IP address

0.0.0.0

Do not limit which addresses can access or be accessed by the DNS.

To subnet

0.0.0.0

 

To port

53

DNS updates are requested on this port.

From IP address

198.53.144.2

You allow only the DNS machine to be addressed on the red (trusted) network.

From subnet

255.255.255.255

 

From port

53

Make DNS requests on this port.

Protocol

TCP

Make DNS requests and refreshes over TCP, not UDP.

Action

permit

You allow access.

One-Way Out Firewall Rules

One-way out firewall rules allow devices on a red (trusted) network to establish communication sessions with devices on a black (untrusted) network. One-way out firewall rules allow users on routed red (trusted) subnets to have access to services on a black (untrusted) subnet.

No network address translation (NAT) is performed when a session is established through a one-way out firewall rule. Therefore, the source address of the packets leaving the red (trusted) network must be routable on the black (untrusted) network. Routable means that the devices on the black (untrusted) network know how to send packets to the source address.

If you want to allow people on the red (trusted) network to browse the World Wide Web on the Internet, define a oneway out firewall rule as described in the following table.

Parameter Description Parameter Value Comments

From IP address

198.53.144.0

This address allows anyone on the red (trusted) network whose IP address starts with 198.53.144.

From subnet mask

255.255.255.0

 

From application port

ALL

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

To IP address

0.0.0.0

This address allows you to go to any Web site on the Internet.

To subnet mask

0.0.0.0

 

To application port

80

Web servers usually listen on this port.

Protocol

TCP

HTTP is transported by means of TCP, not UDP.

One-Way In Firewall Rules

One-way in firewall rules allow devices on a black (untrusted) network to establish communication sessions with devices on the red (trusted) network. No network address translation (NAT) is performed when a session is established through a stateful one-way in firewall rule. One-way in firewall rules can grant access to services executing on devices on a red (trusted) subnet having routed IP addresses.

If you want to allow SMTP mail from people on the Internet to be sent into the mail server, define a one-way in rule as described in the following table.

Parameter Description Parameter Value Comments

From IP address

0.0.0.0

The mail can come from any IP address.

From subnet mask

0.0.0.0

 

From application port

ALL

The application port used to send the mail is usually unknown.

To IP address

198.53.144.2

Assumes that the mail record associated with your domain name points to this address.

To subnet mask

255.255.255.255

The mail must arrive at this IP address only.

To application port

25

The SMTP mail server listens on this port.

Protocol

TCP

SMTP is transported by means of TCP, not UDP.

Inbound Proxy

Inbound proxies allow devices on a black (untrusted) subnet to establish communication sessions with a device on a red (trusted) subnet. Inbound proxies can grant access to services executing on devices on a red (trusted) subnet having unrouted or private IP addresses. When you define an inbound proxy, the devices on the black (untrusted) network must address their packets to the black (untrusted) interface of the LanRover VPN Gateway. The VPN Gateway then looks at where the packet originated, what the destination address is, what the destination port is, and decides to which address on the red (trusted) network to send the packet.

Click graphic to enlarge the image.

Inbound and Outbound Proxies

If you want to allow SMTP mail from people on the Internet to be sent into a mail server, define an inbound proxy as described in the following table.

Parameter Description Parameter Value Comments

Inbound proxy IP

10.1.1.2

This is where the packets should end up.

From IP address

0.0.0.0

The mail could come from any IP address.

From subnet mask

0.0.0.0

 

From application port

ALL

The application port used to send the mail is usually unknown.

To IP address

205.250.128.21

Assumes that the mail record associated with your domain name points to this address.

To subnet mask

255.255.255.255

The mail must arrive at this IP address only.

To application port

25

The SMTP mail server listens on this port.

Protocol

TCP

SMTP is transported by means of TCP, not UDP.

Outbound Proxy

Outbound proxies allow devices on a red subnet to establish communication with devices on black subnets. The outbound proxy function performs a network address translation (NAT) on any packets passing through the proxy. Outbound proxies are, therefore, often used to allow users on unrouted red subnets to have access to services on a black subnet.

If you want to allow people on the red network to browse the World Wide Web on the Internet, define an outbound proxy as described in the following table.

Parameter Description Parameter Value Comments

Outbound proxy IP

205.250.128.240

The address the packets take on as they exit the red (trusted) network.

From IP address

10.1.1.0

This address allows anyone on the red (trusted) network whose IP address starts with 10.1.1 to go out to the black (untrusted) network.

From subnet mask

255.255.255.0

 

From application port

ALL

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

To IP address

0.0.0.0

This address allows you to go to any Web site on the Internet.

To subnet mask

0.0.0.0

 

To application port

80

Web servers usually listen on this port.

Protocol

TCP

HTTP is transported by means of TCP, not UDP.

Related Information

Tunnel Types

Virtual Private Networking (VPN)

[ Top of Page... ]

[ Back to Shiva Configurator Directory ]