Managing and Directing Network Traffic with Linux

Slides:



Advertisements
Similar presentations
Routing Routing in an internetwork is the process of directing the transmission of data across two connected networks. Bridges seem to do this function.
Advertisements

IP Routing Static Routing Information management 2 Groep T Leuven – Information department 2/14 The Router Router Interface is a physical.
Ipchains and Iptables Linux operating system natively supports packet-filtering rules: Kernel versions 2.2 and earlier support the ipchains command. Kernel.
Routing Basics By Craig Lindstrom. Overview Routing Process Routing Process Default Routing Default Routing Static Routing Static Routing Dynamic Routing.
1 Network Address Translation (NAT) Relates to Lab 7. Module about private networks and NAT.
Mod 10 – Routing Protocols
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Vocabulary URL = uniform resource locator: web address protocol –set of rules that networked computers follow in order to share data and coordinate communications.
© N. Ganesan, All rights reserved. Chapter IP Routing.
Introduction An introduction to the software and organization of the Internet Lab.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
NetFilter – IPtables Firewall –Series of rules to govern what Kind of access to allow on your system –Packet filtering –Drop or Accept packets NAT –Network.
Linux Networking #2 Dr. Michael L. Collard 1.
Routing and Routing Protocols Routing Protocols Overview.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Objectives: Chapter 5: Network/Internet Layer  How Networks are connected Network/Internet Layer Routed Protocols Routing Protocols Autonomous Systems.
1 Chapter Overview Routing Principles Building Routing Tables.
1.4 Open source implement. Open source implement Open vs. Closed Software Architecture in Linux Systems Linux Kernel Clients and Daemon Servers Interface.
1 TCP/IP Internetting ä Subnet layer ä Links stations on same subnet ä Often IEEE LAN standards ä PPP for telephone connections ä TCP/IP specifies.
1 TCP/IP Networking. 2 TCP/IP TCP/IP is the networking protocol suite most commonly used with UNIX, Windows, NT and most other OS’s. TCP/IP defines a.
Firewalling With Netfilter/Iptables. What Is Netfilter/Iptables? Improved successor to ipchains available in linux kernel 2.4/2.6. Netfilter is a set.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
TCP/IP Protocol Suite 1 Chapter 16 Upon completion you will be able to: Host Configuration: BOOTP and DHCP Know the types of information required by a.
Module 1: Configuring Routing by Using Routing and Remote Access.
Basic Routing Principles V1.2. Objectives Understand the function of router Know the basic conception in routing Know the working principle of router.
How to connect to the Internet 1998/12/09 KEIO University, JAPAN Mikiyo
Linux Routing. Why use Linux as a router? Its cheap. Linux has low hardware requirements. A properly configured P166 Mhz computer would have no problems.
Basic Linux Router I Router, a device that... Working on OSI Layer 3 (Network Layer) Connected to more than one networks Finding.
1.4 Open source implement. Open source implement Open vs. Closed Software Architecture in Linux Systems Linux Kernel Clients and Daemon Servers Interface.
University of the Western Cape Chapter 12: Routing Protocols Interior and Exterior Routing Protocols Aleksandar Radovanovic.
LINUX® Netfilter The Linux Firewall Engine. Overview LINUX® Netfilter is a firewall engine built into the Linux kernel Sometimes called “iptables” for.
1 CNLab/University of Ulsan Chapter 19 Firewalls  Packet Filtering Firewall  Application Gateway Firewall  Firewall Architecture.
Wireless Access Point. What is a WAP?  A Wireless access point (WAP) is a device that allows a wireless device to connect to a wired network.
Cisco Routers Routers collectively provide the main feature of the network layer—the capability to forward packets end-to-end through a network. routers.
Routing with Linux 'cause you really love the command line
Dynamic Routing on a Fast Data Plane
Kapitel 19: Routing. Kapitel 21: Routing Protocols
Working at a Small-to-Medium Business or ISP – Chapter 6
Introduction An introduction to the software and organization of the Internet Lab.
COMPUTER NETWORKS CS610 Lecture-39 Hammad Khalid Khan.
Network layer Jarkom Dasar – Week 6 Aisyatul Karima, 2012.
Network Address Translation (NAT)
ECE 544: Middlebox lab Abhigyan Sharma.
A Typical Connection Scenario
Routing Protocols (RIP, OSPF, and BGP)
Host Configuration: BOOTP and DHCP
COMP 3270 Computer Networks
Chapter 6 – Routing.
Network Address Translation (NAT)
Chapter 4: Routing Concepts
Network Design & Analysis
Network Architecture Introductory material
Routing.
Introduction An introduction to the software and organization of the Internet Lab.
UNIT III ROUTING.
Routing and Switching Essentials v6.0
Review of Important Networking Concepts
BGP Overview BGP concepts and operation.
Host Configuration: BOOTP and DHCP
After 3.2 Revised
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 4: Planning and Configuring Routing and Switching.
Routing Fundamentals and Subnets
Addressing the Network – IPv4
Linux and TCP/IP Networking
Working at a Small-to-Medium Business or ISP – Chapter 6
Module 12 Network Configuration
Figure 6.11 Configuration for Example 4
Routing.
Longest Mask Matching What happens if one of the organizations is not geographically close to the others, like in Figure No problem, as long as the.
Multicasting Unicast.
Presentation transcript:

Managing and Directing Network Traffic with Linux Oscar Mederos

Network Architecture Networks are interconnected through routers and gateways A router interconnects 2 networks A gateway defines the start of a network All gateways are routers, not all routers are gateways

TCP/IP traffic routing in Linux Edit /etc/sysctl.conf & uncomment net.ipv4.ip_forward=1 Your computer can now route packets! Define your interfaces in /etc/networking/interfaces Set eth0 to dhcp, eth1 to static & assign it an IP

Kernel modules Enable the following kernel modules ip_tables nf_conntrack nf_conntrack_ftp iptable_nat nf_nat_ftp

IP chains & the gateway Set IP chains to NAT packets & allow traffic re- direction from eth0 to eth1 -A POSTROUTING -o "eth1" -j MASQUERADE -A FORWARD -i "eth0" -o "eth1" -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT -A FORWARD -i "eth0" -o "eth1" -j ACCEPT -A FORWARD -j LOG

Host configurations In linux route add default gw *eth1 IP In windows visit your connection settings for tcp/ip and point your gateway to the IP of the linux host we just set up as a gateway All hosts must have IP addresses on the same network as the router's internal network interface

Quagga Quagga is a network routing software suite providing implementations of Open Shortest Path First (OSPF), Routing Information Protocol (RIP), Border Gateway Protocol (BGP)

Quagga The Quagga architecture consists of a core daemon (zebra) which is an abstraction layer to the underlying Unix kernel and presents the Zserv API over a Unix-domain socket or TCP socket to Quagga clients. The Zserv clients typically implement a routing protocol and communicate routing updates to the zebra daemon.