Data is sent across networks in a series of packets.
Data is sent across networks in a series of packets.
Data is sent across networks in a series of packets.
Let's Look!
Download Me!!!!
https://www.wireshark.org/
A firewall can be either a physical device or piece of software that allows us to set rules on what types of network traffic we allow into our networks or to communicate with hosts(computers/servers) on our network.
Network Based Firewalls
A network based firewall is usually a physical device placed at strategic locations on the network to allow/deny traffic from entering segments of the network.
Host Based Firewalls
A host based firewall is usually a virtualized piece of software on a computer/server that will allow/deny network traffic to communicate with services on that machine.
Application Based Firewalls
An application based firewall is a virtualized piece of software that analyzes the contents of a data packet to allow/deny that data to reach the application.
Ingress Traffic
Ingress or inbound traffic are data packets that have originated from another location and are targeting a machine on your network.
Egress Traffic
Egress or outbound traffic are data packets that are originating from a machine on your network and have another destination.
Network and host based firewall rules generally filter traffic on a few criteria:
In Windows, you can filter by network "type" as well.
iptables (kinda)
ufw
$ sudo ufw enable
$ sudo ufw status
Block a single IP:
$ sudo ufw deny from 15.15.15.51 # Block on ALL interfaces
$ sudo ufw deny in on eth0 from 15.15.15.51 # Block only on a single interface
Allow traffic to a certain port:
# Allow all traffic to a single port from a network
$ sudo ufw allow from 15.15.15.0/24 to any port 22
Block outgoing mail:
$ sudo ufw deny out 25,587
Allow traffic to a certain port:
# Allow only tcp traffic to a single port from a network range
$ sudo ufw allow proto tcp from 15.15.15.0/24 to any port 22
Default Policies:
$ sudo ufw default allow outgoing
$ sudo ufw default deny incoming
NOTE: This could lock YOU out too...
Select Program or Ports and finish steps