Our Sponsors
Login Form



Vyatta Tutorials

Use Vyatta to Limit Guest Network Bandwidth

A problem many of us have in our offices or our homes is the need to have Guest access to our network but not hog all the bandwidth. What I did here is use Vyatta Quality of Service (QoS) settings to limit the bandwidth on a guest network through a traffic shaping policy. You can add other QoS rules like prioritizing VIOP if you wish but as that is more complex, I'm not covering it in this article, I'm just focusing on all bandwidth.

Last Updated (Friday, 28 October 2011 20:04)

 

Publish an internal web server with Vyatta

So you have Vyatta running and you want to publish your interal webserver to the internet. This is a simple article on how to forward internet requests to the external Vyatta interface to an internal server. Some call it Port Forwarding but Vyatta calls this DNAT. They have a few examples listed in the security documentation but I think the documentation is missing this example. You can easily use to open any other type of server to the internet you just need to change the destination port.

First, login to the Vyatta console and enter configuration mode, this is done by typing “configure” in the console.

#configure

Now lets create a rule to open the internal webserver to the internet.
Before we begin I need to let you know the assumptions that are made below. First, the extenal interface is eth1. Second, I'm forwarding HTTP. Third, the IP address is 192.168.1.10.
I also want to point out that I do not apply a outside-address as the Vyatta documentation shows. This is not needed unless you have multiple external IP address and want to have a one to one IP address mapping.

#set service nat rule 20 type destination
#set service nat rule 20 inbound-interface eth1
#set service nat rule 20 protocol tcp
#set service nat rule 20 destination port http
#set service nat rule 20 inside-address address 192.168.1.10
#commit
#save
#exit
Now anyone on the internet should be able to access your internal web server.

If you want to publish HTTPS, simply use this above rule as a template and increment the rule by one and change “port http” to “port https”. This will forward both http and https ports to your internal web server.

If you don’t increment the rule by one, you will overwrite nat rule 10 instead of creating nat rule 11.

Happy Routing!

Last Updated (Wednesday, 09 December 2009 22:57)

 

Vyatta Quick Setup

This is a quick guide setup guide for the Vyatta open source router. This article assumes that you have already installed Vyatta either on physical hardware or in a virtual machine. For more information on creating a private network in ESXi Server see this article.

Vyatta can be downloaded from http://www.vyatta.org

Version 6.3 has a new LiveCD installer so there is a little work to get it going.

Last Updated (Friday, 28 October 2011 20:06)

 

Vyatta Clear All Setting

OK, you followed the tutorial and then nothing works. You try to figure out what happened but, no luck. To quickly reset Vyatta to the default configuration do the following.

Make sure you are in configuration mode, this is done by typing “configure” in the console.

#configure

Next type

#load /opt/vyatta/etc/config.boot.default
#save

That's it, you are back to the default Vyatta configuration and you need to load all of your settings.

Last Updated (Monday, 04 October 2010 20:38)

 

Create an ESXi Private Network with Vyatta

I needed a solution to create a private network for virtual machines in my ESXi server allowing only limited access to my home office network. I tried using m0n0wall and pfSense routers and although they are great gateways, they did not have the capability that I was looking for. Vyatta is an open source router that did exactly what I needed. (Thanks to Neil for pointing out a couple of the steps had some Typo's and an extra command)

If you have never worked with a router before it can be a bit challenging to figure out. Fortunately, Vyatta does a good job documenting example configurations and there are plenty of other resources that can be Goggled. The main issue that I had is that many of the sites I found with examples had incorrect documentation and command syntax issues. Make sure you consult the Vyatta documentation for the version of Vyatta that you download and I suggest you write the steps down as you go. In my case, I also took snapshots as I made configuration changes. Creating the snapshots allowed me to quickly undo the mistakes I made while initially configuring the system.

The first step is to download Vyatta from http://www.vyatta.org

Follow the direction here to get Vyatta up and running. Please note that confguring Vyatta from that link can create a private network in ESXi too. This article just takes it a litter further by adding firewall rules.

Once connectivity is verified it’s time to create the firewall rules to give access only to the machines on the VM Network that you want. In my case, I want my private network to have access to DNS, a www server, and a file server. When creating firewall rules, I leave plenty of digits between rules. That way I can add rules in between if necessary. The rule name used below is PVToutFilter you can use any rule name that you would like. I use PVToutFilter for private out filter. That way I know why I created the rule.

Start by adding firewall rules to get to a DNS server (do this twice incrementing the rule number by 1 if you add a second DNS server)

#set firewall name PVToutFilter rule 10 action accept
#set firewall name PVToutFilter rule 10 source address 192.168.1.0/24
#set firewall name PVToutFilter rule 10 destination address <enter DNS IP here>
#set interfaces ethernet eth1 firewall out name PVToutFilter



Create the firewall rules to get to www server

#set firewall name PVToutFilter rule 15 action accept
#set firewall name PVToutFilter rule 15 source address 192.168.1.0/24
#set firewall name PVToutFilter rule 15 destination address <enter www server IP here>
#set interfaces ethernet eth1 firewall out name PVToutFilter



Create the firewall rules to get to file share

#set firewall name PVToutFilter rule 20 action accept
#set firewall name PVToutFilter rule 20 source address 192.168.1.0/24
#set firewall name PVToutFilter rule 20 destination address <enter share IP here>
#set interfaces ethernet eth1 firewall out name PVToutFilter



Now its time to set firewall rules to block other traffic to the VM Network

#set firewall name PVToutFilter rule 50 action drop
#set firewall name PVToutFilter rule 50 source address 192.168.10.0/24
#set firewall name PVToutFilter rule 50 destination address <enter net and mask here. example 192.168.5.0/24>
#set interfaces ethernet eth1 firewall out name PVToutFilter
#commit

 



Once the configuration is set you can exit configuration mode

#exit

Congratulations, you have just secured your Private Network from your VM Network. If you want to allow internet access from your Private Network, all you need to do is have a proxy server on the VM Network and create a Firewall rule for the Private Network to have access to the proxy IP address.

Last Updated (Friday, 28 October 2011 18:34)