SlideShare a Scribd company logo
FortiNet/Ansible solution
Part 2
Presented by: Salim Haniff
(shaniff@parabellyx.com)
INTRODUCTIONINTRODUCTION
Second of 4 in the lecture series
Set up 2 CentOS servers on VLAN_100 and VLAN_200
Verify that they are able to communicate as
instructed by firewall policy
BACKGROUNDBACKGROUND
Our FortiGate Appliance was configured via Ansible
to create VLAN_100 and VLAN_200, and firewall
policies
This ensures network separation between Dev and
Prod environment
Separate servers will now need to be installed in the
respected zones
WHY CENTOS?WHY CENTOS?
Free alternative to RedHat Enterprise Linux
Lots of information online to help troubleshoot
issues
Easy to implement VLAN, network bridges and VMs
SETTING UP CENTOSSETTING UP CENTOS
The installations for both the Dev and Prod servers
used a minimal installation
Ensures we don't have a lot of packages on the
servers
We need to disable NetworkManager since it
sometimes conflicts with network setting
$ sudo systemctl stop NetworkManager
$ sudo systemctl disable NetworkManager
CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON
DEV SERVERDEV SERVER
All network configurations are stored in
/etc/sysconfig/network-scripts/
To find which interface is active run
Here we can see interface enp3s0 is our main
network interface
Backup the configuration
$ ip a
$ sudo cp ifcfg-enp3s0 $HOME/
CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON
DEV SERVERDEV SERVER
We will now install the libvirt package to help us
bring up a virtual switch and help with launching
VMs.
$ sudo yum -y install libvirt
$ sudo systemctl enable libvirtd
$ sudo systemctl start libvirtd
CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON
DEV SERVERDEV SERVER
Change the settings of the ifcfg-enp3s0 file to reflect
the changes below
BOOTPROTO="none"
DEVICE="enp3s0"
ONBOOT="yes"
TYPE="Ethernet"
CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON
DEV SERVERDEV SERVER
Create new file called ifcfg-enp3s0.100 . This
denotes that this interface will use VLAN_100
Notice the we added the parameter BRIDGE, this will
tell the virtual bridge to use this interface as the
uplink to the network.
DEVICE="enp3s0.100"
BOOTPROTO="None"
ONBOOT="yes"
VLAN=yes
BRIDGE="virbr0"
CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON
DEV SERVERDEV SERVER
Create a new file called ifcfg-virbr0 . This is the
virtual network bridge configuration.
DEVICE="virbr0"
BOOTPROTO="static"
ONBOOT="yes"
IPADDR="10.1.1.2"
PREFIX=24
NETWORK=10.1.1.0
VLAN=yes
GATEWAY=10.1.1.1
DNS=8.8.8.8
TYPE="Bridge"
CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON
DEV SERVERDEV SERVER
One final setting that needs to be configured is
loading the 802.1q kernel module that enables
VLAN. To enable this module, enter the following
command:
Now reboot the server and check that the server
comes up.
$ sudo sh -c 'echo "8021q" > /etc/modules-load.d/8021q.conf
CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON
PROD SERVERPROD SERVER
Exact same procedure that we did on the Dev server
This time our main network interface is enp2s0
CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON
PROD SERVERPROD SERVER
Settings for ifcfg-enp2s0
TYPE="Ethernet"
BOOTPROTO="none"
DEVICE="enp2s0"
ONBOOT="yes"
CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON
PROD SERVERPROD SERVER
Settings for ifcfg-enp2s0.200
BOOTPROTO="none"
DEVICE="enp2s0.200"
ONBOOT="yes"
VLAN=yes
BRIDGE="virbr0"
CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON
PROD SERVERPROD SERVER
Settings for ifcfg-virbr0
DEVICE="virbr0"
BOOTPROTO="static"
IPADDR="10.1.2.10"
NETMASK="255.255.255.0"
GATEWAY="10.1.2.1"
DNS1="8.8.8.8"
ONBOOT="yes"
TYPE="Bridge"
VLAN=yes
CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON
PROD SERVERPROD SERVER
One final setting that needs to be configured is
loading the 802.1q kernel module that enables
VLAN. To enable this module, enter the following
command:
Now reboot the server and check that the server
comes up.
$ sudo sh -c 'echo "8021q" > /etc/modules-load.d/8021q.conf
VERIFICATIONVERIFICATION
Now both of our servers are now configured. We
need to test them.
With your workstation, set the network device to
VLAN_200 and try to ping 10.1.1.1 and 10.1.2.1
Now try to ping 10.1.1.2 and 10.1.2.10
Finally, try SSHing to both of those boxes
WRAPPING UPWRAPPING UP
We now have a dev and prod servers running on
their own network
Our workstation is now able to communicate to
both of them
In the next tutorial, we will install Wordpress on
both the Dev and Prod servers.
If you have any questions or feedback, please reach
out to me ( ) or our staff.
Contact info will be provided below.
shaniff@parabellyx.com

More Related Content

PDF
PDF
[2015-11월 정기 세미나]K8s on openstack
PDF
20141102 VyOS 1.1.0 and NIFTY Cloud New Features
PPTX
Основные понятия и аспекты построения отказоустойчивых Site-to-Site VPN на ASA
PPTX
Introduction to nexux from zero to Hero
DOCX
PDF
Installation of pfSense on Soekris 6501
[2015-11월 정기 세미나]K8s on openstack
20141102 VyOS 1.1.0 and NIFTY Cloud New Features
Основные понятия и аспекты построения отказоустойчивых Site-to-Site VPN на ASA
Introduction to nexux from zero to Hero
Installation of pfSense on Soekris 6501

What's hot (20)

PPTX
Setting up Cisco WSA Proxy in Transparent and Explicit Mode
PDF
Cumulus networks conversion guide
PPTX
Factory setup wsa_9.2_v1.0
PDF
Next Generation Security Solution
PDF
Step by-step installation of a secure linux web dns- and mail server
PDF
Rabbit mq簡介(上)
PPT
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
PDF
Отказоустойчивость с использованием Cisco ASA Clustering
PPTX
The Switch as a Server - PuppetConf 2014
PDF
The latest developments from OVHcloud’s bare metal ranges
PPTX
Fiware testbed from hardware to openstack
PDF
Dev stacklabguide
PPTX
Is OpenStack Neutron production ready for large scale deployments?
PPTX
OSDC 2014 ONIE by Nat Morris
PDF
Open Networking for Your OpenStack
PPTX
Differences of the Cisco Operating Systems
PDF
SecurityPI - Hardening your IoT endpoints in Home.
PPTX
Power of Open SDN- The Vendor Neutral Approach to Optimizing Your Network 09...
PPT
Cisco data center support
Setting up Cisco WSA Proxy in Transparent and Explicit Mode
Cumulus networks conversion guide
Factory setup wsa_9.2_v1.0
Next Generation Security Solution
Step by-step installation of a secure linux web dns- and mail server
Rabbit mq簡介(上)
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
Отказоустойчивость с использованием Cisco ASA Clustering
The Switch as a Server - PuppetConf 2014
The latest developments from OVHcloud’s bare metal ranges
Fiware testbed from hardware to openstack
Dev stacklabguide
Is OpenStack Neutron production ready for large scale deployments?
OSDC 2014 ONIE by Nat Morris
Open Networking for Your OpenStack
Differences of the Cisco Operating Systems
SecurityPI - Hardening your IoT endpoints in Home.
Power of Open SDN- The Vendor Neutral Approach to Optimizing Your Network 09...
Cisco data center support
Ad

Similar to Fortinet Ansible Solution Part 2 (20)

PDF
[Cook book] ansible 4_dell emc networking
PPTX
Network configuration and installation of ssh.pptx
PDF
Dhcp
PDF
Alta disponibilidad en GNU/Linux
ODP
Securing the network for VMs or Containers
ODT
Centos failover link
PDF
Configuration Firewalld On CentOS 8
PDF
Domino9on centos6
PDF
2015.10.05 Updated > Network Device Development - Part 1: Switch
PDF
Linux hpc-cluster-setup-guide
PDF
PDF
CentOS Server Gui Initial Configuration
PPTX
Hardware accelerated switching with Linux @ SWLUG Talks May 2014
PDF
Installing & Configuring IBM Domino 9 on CentOS
PDF
Tutorial CentOS 5 untuk Webhosting
PDF
Configuring Netgate Appliance Integrated Switches on pfSense 2.4.4 - pfSense ...
DOCX
PDF
Tópicos - LVS Instalacao Slack11
PPTX
High performance content hosting
PDF
install CentOS 6.3 minimal on Hyper-V
[Cook book] ansible 4_dell emc networking
Network configuration and installation of ssh.pptx
Dhcp
Alta disponibilidad en GNU/Linux
Securing the network for VMs or Containers
Centos failover link
Configuration Firewalld On CentOS 8
Domino9on centos6
2015.10.05 Updated > Network Device Development - Part 1: Switch
Linux hpc-cluster-setup-guide
CentOS Server Gui Initial Configuration
Hardware accelerated switching with Linux @ SWLUG Talks May 2014
Installing & Configuring IBM Domino 9 on CentOS
Tutorial CentOS 5 untuk Webhosting
Configuring Netgate Appliance Integrated Switches on pfSense 2.4.4 - pfSense ...
Tópicos - LVS Instalacao Slack11
High performance content hosting
install CentOS 6.3 minimal on Hyper-V
Ad

Recently uploaded (20)

PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PDF
Introduction to the IoT system, how the IoT system works
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PPT
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
PPTX
newyork.pptxirantrafgshenepalchinachinane
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPT
Ethics in Information System - Management Information System
PPTX
Funds Management Learning Material for Beg
PPTX
international classification of diseases ICD-10 review PPT.pptx
PDF
Paper PDF World Game (s) Great Redesign.pdf
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
E -tech empowerment technologies PowerPoint
PPTX
Introduction to Information and Communication Technology
PDF
Exploring VPS Hosting Trends for SMBs in 2025
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Introduction to the IoT system, how the IoT system works
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
SASE Traffic Flow - ZTNA Connector-1.pdf
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
Job_Card_System_Styled_lorem_ipsum_.pptx
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
newyork.pptxirantrafgshenepalchinachinane
An introduction to the IFRS (ISSB) Stndards.pdf
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Ethics in Information System - Management Information System
Funds Management Learning Material for Beg
international classification of diseases ICD-10 review PPT.pptx
Paper PDF World Game (s) Great Redesign.pdf
522797556-Unit-2-Temperature-measurement-1-1.pptx
E -tech empowerment technologies PowerPoint
Introduction to Information and Communication Technology
Exploring VPS Hosting Trends for SMBs in 2025
Unit-1 introduction to cyber security discuss about how to secure a system

Fortinet Ansible Solution Part 2

  • 1. FortiNet/Ansible solution Part 2 Presented by: Salim Haniff (shaniff@parabellyx.com)
  • 2. INTRODUCTIONINTRODUCTION Second of 4 in the lecture series Set up 2 CentOS servers on VLAN_100 and VLAN_200 Verify that they are able to communicate as instructed by firewall policy
  • 3. BACKGROUNDBACKGROUND Our FortiGate Appliance was configured via Ansible to create VLAN_100 and VLAN_200, and firewall policies This ensures network separation between Dev and Prod environment Separate servers will now need to be installed in the respected zones
  • 4. WHY CENTOS?WHY CENTOS? Free alternative to RedHat Enterprise Linux Lots of information online to help troubleshoot issues Easy to implement VLAN, network bridges and VMs
  • 5. SETTING UP CENTOSSETTING UP CENTOS The installations for both the Dev and Prod servers used a minimal installation Ensures we don't have a lot of packages on the servers We need to disable NetworkManager since it sometimes conflicts with network setting $ sudo systemctl stop NetworkManager $ sudo systemctl disable NetworkManager
  • 6. CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON DEV SERVERDEV SERVER All network configurations are stored in /etc/sysconfig/network-scripts/ To find which interface is active run Here we can see interface enp3s0 is our main network interface Backup the configuration $ ip a $ sudo cp ifcfg-enp3s0 $HOME/
  • 7. CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON DEV SERVERDEV SERVER We will now install the libvirt package to help us bring up a virtual switch and help with launching VMs. $ sudo yum -y install libvirt $ sudo systemctl enable libvirtd $ sudo systemctl start libvirtd
  • 8. CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON DEV SERVERDEV SERVER Change the settings of the ifcfg-enp3s0 file to reflect the changes below BOOTPROTO="none" DEVICE="enp3s0" ONBOOT="yes" TYPE="Ethernet"
  • 9. CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON DEV SERVERDEV SERVER Create new file called ifcfg-enp3s0.100 . This denotes that this interface will use VLAN_100 Notice the we added the parameter BRIDGE, this will tell the virtual bridge to use this interface as the uplink to the network. DEVICE="enp3s0.100" BOOTPROTO="None" ONBOOT="yes" VLAN=yes BRIDGE="virbr0"
  • 10. CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON DEV SERVERDEV SERVER Create a new file called ifcfg-virbr0 . This is the virtual network bridge configuration. DEVICE="virbr0" BOOTPROTO="static" ONBOOT="yes" IPADDR="10.1.1.2" PREFIX=24 NETWORK=10.1.1.0 VLAN=yes GATEWAY=10.1.1.1 DNS=8.8.8.8 TYPE="Bridge"
  • 11. CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON DEV SERVERDEV SERVER One final setting that needs to be configured is loading the 802.1q kernel module that enables VLAN. To enable this module, enter the following command: Now reboot the server and check that the server comes up. $ sudo sh -c 'echo "8021q" > /etc/modules-load.d/8021q.conf
  • 12. CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON PROD SERVERPROD SERVER Exact same procedure that we did on the Dev server This time our main network interface is enp2s0
  • 13. CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON PROD SERVERPROD SERVER Settings for ifcfg-enp2s0 TYPE="Ethernet" BOOTPROTO="none" DEVICE="enp2s0" ONBOOT="yes"
  • 14. CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON PROD SERVERPROD SERVER Settings for ifcfg-enp2s0.200 BOOTPROTO="none" DEVICE="enp2s0.200" ONBOOT="yes" VLAN=yes BRIDGE="virbr0"
  • 15. CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON PROD SERVERPROD SERVER Settings for ifcfg-virbr0 DEVICE="virbr0" BOOTPROTO="static" IPADDR="10.1.2.10" NETMASK="255.255.255.0" GATEWAY="10.1.2.1" DNS1="8.8.8.8" ONBOOT="yes" TYPE="Bridge" VLAN=yes
  • 16. CONFIGURING THE NETWORK ONCONFIGURING THE NETWORK ON PROD SERVERPROD SERVER One final setting that needs to be configured is loading the 802.1q kernel module that enables VLAN. To enable this module, enter the following command: Now reboot the server and check that the server comes up. $ sudo sh -c 'echo "8021q" > /etc/modules-load.d/8021q.conf
  • 17. VERIFICATIONVERIFICATION Now both of our servers are now configured. We need to test them. With your workstation, set the network device to VLAN_200 and try to ping 10.1.1.1 and 10.1.2.1 Now try to ping 10.1.1.2 and 10.1.2.10 Finally, try SSHing to both of those boxes
  • 18. WRAPPING UPWRAPPING UP We now have a dev and prod servers running on their own network Our workstation is now able to communicate to both of them In the next tutorial, we will install Wordpress on both the Dev and Prod servers. If you have any questions or feedback, please reach out to me ( ) or our staff. Contact info will be provided below. shaniff@parabellyx.com