• No results found

Network Security CS 192

N/A
N/A
Protected

Academic year: 2021

Share "Network Security CS 192"

Copied!
15
0
0

Loading.... (view fulltext now)

Full text

(1)

Network Security

CS 192

Firewall Rules

(2)

Today’s topics

• Client Web Auth paper

(3)

Additional Resources

• Required:

– FIS Chapter 10

• Reference:

(4)

Firewall Rulesets

• A Rule defines how a firewall should process a

(5)

Rule Chains

• To organize groups of rules, many firewalls allow you to define “chains” that consist of a set of rules in a particular order.

– The chains can be included in other ‘chains’ leading to a hierarchical arrangement.

– Typically there are default chains corresponding to the 3 core paths of packets:

• INPUT, OUTPUT, FORWARD

(6)

Rule structure

• The core pieces of any rule are:

– Action

– Source (IP, port, and state)

– Destination (IP, prot and state)

• So our notation will be

– (action, source, destination)

– {host | net}:port for source or destination

• The order of rules matters, meaning the first rule that matches a particular packet will be the one that

(7)

Example Network

Firewall Internet

DMZnet

(8)

DNS

• DNS firewalls are complex because it is a required service that must access untrusted information and is relied on by many other services.

• Often two classes of DNS names:

– Internal network names (often trusted)

– External network names (must never be trusted)

Security Modes for DNS:

– Proxy

(9)

Simple DNS

• Simple setup (can leak dns info)

– One shared DNS server provides all information about corpdomain. It is located in the DMZ (dmz-dnsserver) – Outgoing DNS Queries

• (allow, corpnet, any:DNS)

– Incoming DNS requests

(10)

Split DNS

• Two DNS servers run, one internal with full data (called corp-dnsserver) and one external with

minimal data (called dmz-dnsserver). • Rules

– Outgoing DNS Queries

• (allow, corpnet, corp-dnsserver:DNS)

• (allow, corp-dnsserver, dmz-dnsserver:DNS) • (deny, corpnet, any:DNS)

– Incoming DNS requests

• (allow, any, dmz-dnsserver:DNS)

(11)

Split DNS issues

• More overhead then direct DNS queries

• Apps that require valid DNS entries for clients will fail without additional work

– The client will connect from an internal IP address which the external server cannot lookup (because dmz DNS

server does not return detailed information about internal machines.

– Need to create ‘fake’ entries in dmz DNS for any client. These entries need to match both forward and reverse lookups.

• *.3.2.127.in-addr.arpa IN PTR UNKNOWN.example.com

(12)

WWW

• The core web protocols of HTTP and HTTPS are

fairly behaved as they use TCP and have a well-structured client-server model.

• Basic policy

– (allow, corpnet, any:HTTP)

– (allow, any, dmz-webserver:HTTP) – (deny, any, any:HTTP)

• If you use a web proxy you can replace the first rule:

(13)

NTP

• NTP uses UDP packets and involves bi-directional communication. Luckily the ports used are constant so a straightforward rule works.

• If vulnerabilities in NTP client software exist, then firewall protection becomes difficult as

uni-directional openings are not possible.

• Instead of allowing connection to any ntp server, you may restrict it to only a few ‘approved’ servers by

removing the ‘any’ rules and adding 2 rules for each server you want.

• Rule:

(14)

SSH

• Two models:

– Allow SSH directly to internal clients.

• Simple;

• Lets users connect to their machines directly; • No additional servers/machines required; • (allow, any, corpnet:SSH)

– Bastion Login gateway

• Allows centralized controls on external access;

• More secure as two machines must be broken through;

(15)

Information Slide

• Lecture slides, course updates, and assignments can be obtained at the course web page

References

Related documents

We hypothesized that patients who have concerns about the potential adverse consequences of AEDs and doubts about the personal necessity of AEDs would be more nonadherent and that

Customer may utilize the one hundred-twenty (120) days from issuance of such notice to cure the specified default (or in the event of a default that requires in excess of one

• Write a function that takes the initial velocity of the baseball and the launch angle as input variables, uses ode45 to compute the trajectory, and returns the range

• Work with pupils, parents and senior leaders to plan, implement and monitor the impact of the agreed support and intervention plan for children eligible for pupil premium •

• Other relevant studies and existing cases of ICT-enabled innovation for learning also provide the conceptual framework for the proposed CCR dimensions, embedding core principles

Stress and strain, stress-strain relationship and elastic constants, Mohr’s circle for plane stress and plane strain, shear force and bending moment diagrams, bending and

Comparison of detection of Bovine virus diarrhea virus antigen in various types of tissue and fluid samples collected from persistently infected cattle .... Bovine viral diarrhea

Eighty-eight percent of employers agree that they are supportive of their employees working past age 65 and delaying retirement, including 49 percent that “strongly agree” and