Basic Routing: VyOS router configuration, network address translation (NAT) and firewalling

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • Introductory video on setting up a VyOS router with basic private network Network Address Translation (NAT). Learn how to start from a blank CLI configuration, and use Kali Linux to test internal and external network connections.
  • НаукаНаука

Комментарии • 28

  • @wkm001
    @wkm001 2 года назад

    This is the fastest 41.5 minutes I've had in a long time. Great vid!

  • @chrisjchalifoux
    @chrisjchalifoux 3 месяца назад

    Ty for the video i am juest starting out wit vyos

  • @alexanderg9106
    @alexanderg9106 Год назад

    excelent work and with the errors it keeps it authentic.

  • @3bloons
    @3bloons 2 года назад

    Quite handy! Planning on doing a VyOS install and managing it with ansible.

  • @jacobsilva421
    @jacobsilva421 2 года назад +2

    For your Kali VM's, how are the network adapters set up? (Bridged, NAT, Host-Only)?

  • @aRandomHomelabber
    @aRandomHomelabber 9 месяцев назад

    Thank you for this video!

  • @mrmotomoto
    @mrmotomoto 2 года назад

    Man! This video is so great! As someone who studied math-cs, I didn’t get to take all these cool networking classes CS students take. Now I’m learning it on my own through my homelab and this was a great help in tying some concepts together.
    May I ask, if you read the comments, what class is this? I’m hoping to find the syllabus online to use as a roadmap. Is it U of L’s graduate program? Being a refresher lab?

    • @AdrianLauf
      @AdrianLauf  2 года назад

      Thanks for the comment! I wrote this lab for our graduate network security class (CSE 613). That class is part of our graduate certificate in cybersecurity. Glad you found it helpful!

  • @JoeContrerasGenesisJoeC
    @JoeContrerasGenesisJoeC 7 месяцев назад

    Excellent, Thanks.

  • @ravitejatirunagari728
    @ravitejatirunagari728 10 месяцев назад

    That's a great explanation there. I have did all the steps and able to reach the destination gateway but not the destination endpoint IP address, is there any thing I'm missing it out.

  • @lamapasang
    @lamapasang 8 месяцев назад

    Do you happen to know why iam getting this error when setting:
    # set nat source rule 10 outbound-interface 'eth0'
    i get nat source rule [eth0] is not valid set failed
    my WAN is on eth0

  • @doveshouse
    @doveshouse 11 месяцев назад

    Could I use a vyos if I wanted to build my own managed network switch but didn't need layer3 routing capability?

  • @soufianetaoufik7830
    @soufianetaoufik7830 2 года назад

    I have all the virtual machines set up, the only problem is how am i gonna make vyatta work as a router, I have created 5 NICs already but Im a bit confused how am i gonna set up the lab based on t a termonology of having a dmz, private net and a public. For my school labs i just set up the interfaces etc and everything works fine, but for my home lab it is confusing.

  • @R3l3ntl3sss
    @R3l3ntl3sss 2 года назад

    Thanks doc!

  • @thathandsomedevil0828
    @thathandsomedevil0828 Год назад

    Hey Adrian, quick one, what version of VyOS did you use? I downloaded a rolling update version and it looks like it does not have an eth1. Only eth0 and lo. I am unable to commit any changes because any other configuration step to set up an eth1 or eth2 fails. The console reports that the interfaces do not exist. Is this normal?

    • @AdrianLauf
      @AdrianLauf  Год назад +2

      Hi there, we used VyOS 1.1.8, which is considerably outdated at this time. While some of the newer builds have a few command changes, they should mostly be similar. Missing eth1 however shouldn't be a change between versions. Sounds like your hardware (or virtual hardware) isn't being picked up. Make sure you have two physical NIC interfaces (or virtual NICs if you're virtualizing) and it should work.

    • @thathandsomedevil0828
      @thathandsomedevil0828 Год назад

      @@AdrianLauf Nice one. I think it must be the fatigue of my late night shift but you just reminded me that I can add more NICs to the VyOS guest in my hypervisor. XD
      Still though, thanks for the response. Your video is very instrumental and informative of the subject!! :}

    • @AdrianLauf
      @AdrianLauf  Год назад

      @@thathandsomedevil0828 Glad to hear!

    • @thathandsomedevil0828
      @thathandsomedevil0828 Год назад

      ​@@AdrianLauf Hello Again! Sorry to dredge this topic once more but I have a query regarding dns forwarding with the vyos router.
      My internal vms can ping IP addresses but not domain names. I have set the service dns forwarding with the following parameters:
      Allow-from (internal vm network range)
      Listen-address (vyos interface IP address internal vms connect to)
      Listen-on (vyos interface name facing internal vms)
      Name-server (Google name server IP address)
      But queries from my internal vms only work with IP addresses not domain names. Am I missing something?
      Many thanks in advance!!

  • @DanielsGameVault
    @DanielsGameVault 2 года назад

    What's your (expert) opinion on PfSense by comparison ? I sure hope this turns into a series of yours, because it's precisely the project I'm working on myself: a home router of my own. I actually wish to make the thing WAY overpowered for its particular application. Maybe you can do a vid on switches and other network stuff. Simple things which takes you from the ground up, so the average Joe can at least get a general idea :D

    • @AdrianLauf
      @AdrianLauf  2 года назад +1

      Glad you enjoyed the video! There are many competent products out there. PfSense is definitely one of them. I personally really like Ubiquiti's EdgeRouter series, they're easy to program, and have lots of power. I use the EdgeRouter 4 series, they are quite overpowered for most home use cases, which is what I'd like it to be! I'll see if I can put up videos on more advanced topics in the future.

    • @DanielsGameVault
      @DanielsGameVault 2 года назад

      Just had a look at EdgeRouters prices over here out of curiosity, because I thought they'd cost an arm and a leg, but they're not THAT expensive TBH. In comparison, how would a run of the mill motherboard+CPU+DDR4 RAM setup stack up ? I guess it all comes down to the network hardware rather than the CPU/RAM. I was looking at some Intel NICs I could add onto my MB, though I believe at that point the main bottleneck will be the ISP and clients rather than the router machine itself. I just happened to have some motherboards laying around which I could equip and repurpose as a router (maybe a NAS too to replace my antique off the shelf one... throw some WD golds in it and....). I ran some very unscientific tests with both a rather old MB and a Xeon CPU and a more recent i7 and DDR4 RAM and the newer setup scored slightly better, but that probably comes down to the different network ICs they use....still, I cranked it WAY up to like 32Gbs of DDR4 ECC RAM because I scored some sticks rather cheap, so why not :))

    • @AdrianLauf
      @AdrianLauf  2 года назад

      @@DanielsGameVault Yeah, that's one of the reasons I like them - enterprise features at sane prices. Your PC-based setup would have an advantage in a super-small sheer packet test, but the MIPS CPUs on those EdgeRouters do support hardware offloading to the network system, which makes them VERY fast. And, when considering power consumption vs throughput and packet rates, the EdgeRouters win hands down, because they're heavily optimized for the job.

    • @DanielsGameVault
      @DanielsGameVault 2 года назад

      @@AdrianLauf Also the size aspect - an OTS router is going to be much more compact than what's essentially a desktop PC running a Xeon in my closet :)) I also had a look at Mikrotik, for the record. Not a network expert by any means, so I'm not sure what path I should choose. For my home use, I think I'm starting to consider the OTS solution more, because it's purposely built for the job...duuh :))

    • @guyl6308
      @guyl6308 2 года назад +1

      @@DanielsGameVault I purchased a mini-PC AWOW AK-34 and I have been running VyOS 1.2.7 on it as my everyday home router and it is a pure joy! Before that I was using an EdgeRouter ER-X but it lacked power, especially during VPN encryption. On the contrary, my mini-PC sports an Intel CPU (J3455) (roughly equivalent in power to an i3) but WITH AES-NI microprocessor instructions, which is THE thing you want for fast VPN...

  • @baconreaper666
    @baconreaper666 2 года назад

    Huh… looks like junOS. Very easy to understand

  • @thetooth
    @thetooth Год назад

    Just how many routers you got running there bud?