Gns3 Azure

Posted : admin On 1/25/2022

Networking with GNS3. You can set up a lab for a class that focuses on allowing students to emulate, configure, test, and troubleshoot virtual and real networks using GNS3 software. For detailed information on how to set up this type of lab, see Setup a lab to teach a networking class. Project Lead the Way (PLTW). An unexpected error has occurred. Error Message: Unexpected end of JSON input Report Feedback Return to Home page.

  1. Gns3 Azure Cloud
  2. Gns3 Azure Data
  3. Gns3 Azure
  4. Gns3 Azure Portal

Welcome to the first blog post in this new series on GNS3 in Azure. The first part of this series will cover how to setup GNS3 on Azure. I’ll share with you what works and what doesn’t so that you don’t have to waste your time finding out. I’ll then cover how to add appliances to GNS3 specifically using the Sophos network security appliances (the Sophos XG firewall and the Sophos UTM). I’ll then conclude by covering how to get internet connectivity working from within your lab environment.

For those that may not be aware, GNS3 is a great application that is used by hundreds of thousands of network engineers worldwide to emulate, configure, test and troubleshoot virtual and real networks (and hundreds of thousands is not an exxageration). It was originally developed by a guy named Jeremy Grossman, who originally created the application to help him to study for his CCNP exam.

On a personal level, GNS3 really helped me to develop my computer networking skills and I’ve used it to better understand a many networking protocols and concepts especially in my earlier days in IT. I’ve built complex and fully automated lab environments based on GNS3 in the past and I still use those environments till today but sadly as I moved around to different roles, I’ve not had the chance to redesign the earlier environments on the latest version of GNS3 until now. Which is where this series come in – As I’m getting rid of most of my physical servers that I used to use for testing and relying mainly on my Azure test environments, I thought I’ll share the things that I’ve learned more recently with you around setting up a GNS3 lab environment on Azure.

Gns3 Azure Cloud

Enjoy!

Pre-Requisite

High-Level Steps

[code language=”bash”]
cd /tmp
curl https://raw.githubusercontent.com/GNS3/gns3-server/master/scripts/remote-install.sh gns3-remote-install.sh
bash gns3-remote-install.sh –with-iou –with-i386-repository
[/code]

[code language=”bash”]
apt-get install uml-utilities
tunctl -t tap1
ifconfig tap1 192.168.1.254 netmask 255.255.255.0 up
[/code]

[code language=”bash”]
crontab -e
[/code]

[code language=”bash”]
@reboot /usr/sbin/tunctl -t tap1 /sbin/ifconfig tap1 192.168.1.254 netmask 255.255.255.0 up
[/code]

[code language=”bash”]
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
[/code]

Gns3 in azure

[code language=”bash”]
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 ! -d 192.168.1.0/24 -j MASQUERADE
iptables -A FORWARD -i tap1 -j ACCEPT
[/code]

[code language=”bash”]
iptables -A INPUT -i tap1 -j ACCEPT
[/code]

Gns3 azure

[code language=”bash”]
iptables -A FORWARD -i eth0 -j ACCEPT
[/code]

[code language=”bash”]
iptables -A INPUT -i eth0 -j ACCEPT
[/code]

      • iptables-persistent
Gns3

Gns3 Azure Data

[code language=”bash”]
sudo apt-get install iptables-persistent
[/code]

  • If you update your firewall rules and want to save the changes, run this command:

Gns3 Azure

[code language=”bash”]
sudo netfilter-persistent save
[/code]

[code language=”bash”]
sysctl -w net.ipv4.ip_forward=1
[/code]

[code language=”bash”]
vim /etc/sysctl.conf
Uncomment net.ipv4.ip_forward=1
sysctl -p /etc/sysctl.conf
[/code]

Gns3 Azure Portal

[code language=”bash”]
echo 1 > /proc/sys/net/ipv4/ip_forward
[/code]