vyatta as a virtual router

Some very nice examples by Gene on how to setup vyatta as a router on this page;


Masquerade Natting;

set service nat rule 10 source address
set service nat rule 10 outbound-interface eth0
set service nat rule 10 type masquerade

set service nat rule 20 source address
set service nat rule 20 outbound-interface eth0
set service nat rule 20 type masquerade

Essentially every thing leaving from these two networks will be natted via the eth0 interface. i.e. they will be using the same IP as eth0 for their requests.

Static Nat Route (pinhole);

set service nat rule 2 inbound-interface eth0
set service nat rule 2 protocol tcp
set service nat rule 2 type destination
set service nat rule 2 description “Web Server1”
set service nat rule 2 destination address
set service nat rule 2 destination port 81
set service nat rule 2 inside-address address
set service nat rule 2 inside-address port 80

This rule takes everything that hits port 81 on and sends it through to (which is another routeable network) — in this case a directly attached network on eth1.


74 Replies to “vyatta as a virtual router”

  1. I wanted to post you that little bit of word to finally thank you so much as before with the superb guidelines you have shared on this website. This has been so tremendously generous with people like you to give openly what exactly most of us could have supplied as an ebook in making some money for their own end, particularly considering that you might well have done it in case you considered necessary. These creative ideas likewise acted to provide a good way to fully grasp that other people have the same eagerness just as my own to realize lots more when considering this matter. I know there are a lot more enjoyable instances up front for people who scan through your site.

  2. I think this is one of the most important information for me. And i am glad reading your article. But should remark on few general things, The website style is great, the articles is really nice : D. Good job, cheers

  3. I’ve been browsing online more than 3 hours today, yet I by no means found any attention-grabbing article like yours. It is pretty worth sufficient for me. Personally, if all webmasters and bloggers made good content material as you probably did, the web might be a lot more useful than ever before.

  4. Thank you for any other informative website. Where else could I am getting that type of information written in such a perfect way? I have a challenge that I am simply now working on, and I’ve been on the glance out for such information.

  5. I simply want to mention I am just beginner to blogging and seriously enjoyed this blog site. Probably I’m likely to bookmark your website . You definitely come with outstanding articles and reviews. Thanks for sharing with us your webpage.

  6. I simply couldn’t go away your website prior to suggesting that I really loved the standard info an individual provide for your visitors? Is going to be again often in order to investigate cross-check new posts

  7. I and my friends were actually reading the excellent points found on the blog and then then I had a horrible suspicion I never thanked the web site owner for them. All the people are actually for that reason thrilled to read through them and now have quite simply been taking advantage of them. Thanks for getting so thoughtful and then for deciding upon varieties of awesome issues millions of individuals are really needing to discover. My personal honest regret for not saying thanks to you sooner.

  8. Excellent blog right here! Additionally your web site quite a bit up fast! What host are you the use of? Can I am getting your affiliate link for your host? I desire my site loaded up as quickly as yours lol

  9. Good site! I really love how it is easy on my eyes and the data are well written. I’m wondering how I could be notified whenever a new post has been made. I have subscribed to your RSS feed which must do the trick! Have a nice day!

  10. I precisely desired to thank you very much once again. I am not sure what I might have undertaken without those solutions provided by you over this topic. This has been the terrifying crisis for me personally, nevertheless looking at a new specialised technique you handled it took me to cry for delight. Now i’m thankful for your service and hope that you recognize what a great job that you are carrying out instructing some other people with the aid of your web site. I know that you haven’t got to know any of us.