Posts with the tag firewall
The blog post describes how to install the firewall distribution pfSense based on FreeBSD in a kernel based virtual machine (KVM) on Ubuntu 10.10.
Specialities: you either need two NICs or a single one with VLANs as pfSense requires you to define at least one WAN and one LAN interface.
set up your rules:
1.As 1st rule (INPUT 1) allow all traffic on loopback adapter lo (so your programs on localhost can communicate if all other traffic is blocked later)
sudo iptables -I INPUT 1 -i lo -j ACCEPT
2.Allow incoming traffic on port 80:
sudo iptables -A...